| name | code-review |
| description | Use when reviewing code changes, pull requests, or diffs. Provides a structured review framework covering correctness, security, performance, readability, and test coverage. |
Code Review
Review Order
Always review in this order to catch the most critical issues first:
- Correctness — Does it do what it's supposed to?
- Security — Does it introduce vulnerabilities?
- Performance — Are there obvious bottlenecks?
- Maintainability — Is it readable and well-structured?
- Tests — Is the change adequately tested?
Correctness Checklist
Security Checklist
Performance Checklist
Maintainability Checklist
Test Checklist
Feedback Tone
- Be specific: "This query will N+1 on
users.posts — use include: { posts: true }" not "fix the query"
- Distinguish severity: use
[blocker], [suggestion], [nit] prefixes
- Explain the why behind concerns, not just what to change
- Acknowledge good decisions: "Good call extracting this into a hook"
Output Format
## Summary
[1-3 sentence overall assessment]
## Blockers
- [blocker] <file>:<line> — <issue and why it matters>
## Suggestions
- [suggestion] <file>:<line> — <improvement and rationale>
## Nits
- [nit] <file>:<line> — <minor style/naming note>
## Positive Notes
- <what was done well>