| name | review |
| description | Perform a thorough code review with emphasis on security, correctness, and maintainability. Analyzes code changes and produces a structured review with actionable findings. |
| allowed-tools | Read, Glob, Grep, Bash |
Code Review
Perform a structured code review with security-first prioritization.
Process
- Identify the scope: either staged changes (
git diff --cached), a specific commit, or specified files
- Read each changed file completely to understand context
- Analyze changes against the review checklist below
- Produce a structured report
Review Checklist
Security (Critical)
Correctness (High)
Performance (Medium)
Maintainability (Standard)
Output Format
## Code Review: [scope description]
### Summary
[1-2 sentence overview of the changes and overall assessment]
### Findings
| # | Severity | File:Line | Finding | Suggestion |
|---|----------|-----------|---------|------------|
| 1 | CRITICAL | path:42 | ... | ... |
### Positive Observations
- [Things done well worth acknowledging]
### Verdict
[APPROVE / REQUEST CHANGES / NEEDS DISCUSSION]
Rules
- Always read the full file, not just the diff, to understand context
- Be specific: reference exact lines, not vague areas
- Distinguish between blocking issues and suggestions
- Acknowledge what is done well, not just problems