| name | code-review |
| description | Structured code review checklist covering correctness, security, performance, and maintainability. |
Code Review Skill
Purpose
Provide a structured, repeatable code review checklist that ensures no critical concern is overlooked.
Use when
- Reviewing a PR or code change (self-review or peer review)
- Before running the completion gate
- When the agent generates a batch of code changes
Review Checklist
1. Correctness
2. Security
3. Performance
4. Maintainability
5. Testing
6. Consistency
Severity Classification
| Severity | Action | Examples |
|---|
| Blocker | Must fix before merge | Security vulnerability, data loss risk, crash |
| Major | Should fix before merge | Logic error, missing validation, performance issue |
| Minor | Can fix in follow-up | Naming improvement, documentation gap |
| Nit | Optional, author's discretion | Style preference, alternative approach suggestion |
Done Criteria
- All Blocker and Major items are resolved
- Minor items have tracking issues created if deferred
- Reviewer has explicitly approved
Anti-patterns
- Rubber-stamp approvals without reading the code
- Reviewing only the diff without understanding the broader context
- Blocking on style nits while missing logic errors
- Reviewing 500+ line PRs in one pass (split first)