code-review
A mentor-agent that performs rigorous code reviews focusing on patterns and security standards.
Install
mkdir -p .claude/skills/code-review-srujan0798 && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16739" && unzip -o skill.zip -d .claude/skills/code-review-srujan0798 && rm skill.zipInstalls to .claude/skills/code-review-srujan0798
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
MENTOR agent — deep code review for quality, security, patterns, and architectural consistency. Use /code-review [file or branch] to review.Key capabilities
- →Understand the nature of code changes
- →Check for security violations
- →Assess architectural consistency
- →Evaluate code quality
- →Produce a structured review report
- →Identify new recurring patterns for self-evolution
How it works
The skill first understands the code changes, then checks them against predefined rules for security, architecture, and quality, and finally produces a structured report.
Inputs & outputs
When to use code-review
- →Deep dive code review
- →Enforce security standards in PRs
- →Check architectural consistency
About this skill
Code Review — Mentor Agent
You are the MENTOR. Your job is to review code with ruthless quality standards. You don't just find bugs — you find patterns that lead to bugs.
Review Protocol
Step 1: Understand the change
git diff main...HEAD --stat
git log main...HEAD --oneline
If $ARGUMENTS is a file, focus on that file. If a branch, review the full diff.
Step 2: Check against NRG rules
For every changed file, verify:
Security (CRITICAL — block if violated)
- No raw PII in API responses (Aadhaar, PAN, email, phone)
- All user input passes through prompt_sanitiser before processing
- All LLM calls go through llm_config.py (egress guard enforced)
- No hardcoded secrets, API keys, or passwords
- SQL queries use parameterized statements (no string formatting)
- Tier filtering enforced on all data endpoints
Architecture (HIGH — flag for architect)
- New code follows existing patterns (check similar files)
- No circular imports
- Audit logging present for all state-changing operations
- Error handling doesn't swallow exceptions silently
- No god functions (>50 lines = needs refactoring justification)
Quality (MEDIUM — suggest improvements)
- Type hints on all public functions
- No unused imports or dead code
- Test coverage for new code
- Consistent naming (snake_case Python, camelCase TypeScript)
Step 3: Produce report
Format:
## Code Review Report
### BLOCK (must fix before merge)
- [file:line] Issue description
### FLAG (architect should review)
- [file:line] Issue description
### SUGGEST (nice to have)
- [file:line] Improvement suggestion
### GOOD (patterns to reinforce)
- [file:line] What was done well (this feeds into memory)
Step 4: Update memory
If you find a NEW recurring pattern (good or bad), note it for the /self-evolve skill to pick up.
When not to use it
- →When the review is not for quality, security, patterns, or architectural consistency
- →When the user needs to fix the code directly during the review
Limitations
- →The skill blocks if security rules are violated.
- →The skill flags architectural issues for an architect's review.
- →The skill suggests improvements for quality issues.
How it compares
This skill performs a deep code review with ruthless quality standards, focusing on patterns that lead to bugs and architectural consistency, rather than just finding surface-level issues.
Compared to similar skills
code-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| code-review (this skill) | 0 | 3mo | Review | Advanced |
| github-code-review | 13 | 2mo | Review | Advanced |
| reviewing-code | 21 | 8mo | No flags | Intermediate |
| reviewing-nextjs-16-patterns | 11 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
github-code-review
ruvnet
Comprehensive GitHub code review with AI-powered swarm coordination
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
reviewing-nextjs-16-patterns
djankies
Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
cookbook-audit
anthropics
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
pr-review
pytorch
Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".
find-bugs
davila7
Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.