| name | code-review |
| description | Review code changes for correctness, maintainability, tests, security, and user-facing impact. Use when asked to review a diff, pull request, or implementation plan. |
Code Review
When reviewing code, be direct and prioritize actionable findings.
If the user invoked a prompt or slash command with arguments, treat those arguments as the review scope/focus and cite them in the summary.
Use human_in_loop for every user-facing clarification or approval question. Do not ask those questions in plain assistant text.
Checklist
- Understand the requested behavior and the actual diff.
- Look for correctness bugs, edge cases, data loss risks, and security issues.
- Check whether tests cover the changed behavior.
- For implementation plans or PRDs, check that work is split into independently and quickly testable feature phases.
- Confirm docs, scripts, or examples were updated when behavior changed.
- Avoid nitpicks unless they affect maintainability or consistency.
Output Format
Use this structure:
- Findings ordered by severity, each with file path and line/context.
- Questions for unclear requirements or risky assumptions.
- Summary of what looks good and what should happen next.
If there are no findings, say so clearly and mention what you checked.