| name | code-review |
| description | On-demand code review checklist. Use when reviewing code changes, doing a PR review, self-reviewing before committing, or checking code quality after implementation. Covers readability, correctness, performance, security, and maintainability. |
Code Review Skill
When to Use
- Before opening a PR
- When reviewing someone else's code
- As a self-review after implementation
- When Manager or Engineer requests a quality check
Phase 1: Understand Before Judging
Before reviewing any line, understand the intent:
- What problem does this change solve?
- What was the alternative approach? Why was this one chosen?
- Is this a refactor, a new feature, a bug fix, or a hotfix?
If the intent is unclear, ask โ don't guess.
Phase 2: Correctness
Phase 3: Readability
Phase 4: Performance
Phase 5: Security
Phase 6: Maintainability
Report Format
Use this format to structure feedback:
## Code Review: [PR / Feature Name]
### Summary
[1-2 sentences on overall quality โ not praise, just calibration]
### Required Changes (Blockers)
- **[file:line]** โ [Issue]. [Why it matters]. [How to fix].
### Suggested Changes (Non-blocking)
- **[file:line]** โ [Observation]. [Better approach].
### Observations (No action needed)
- [Pattern worth noting for future reference]
### Verdict
APPROVE โ
/ REQUEST CHANGES โ / APPROVE WITH SUGGESTIONS โ ๏ธ
Severity Calibration
- Required: Correctness, security, or data integrity issues. PR cannot merge as-is.
- Suggested: Code quality, readability, or performance improvements. Merge after author acknowledges.
- Observations: Style, patterns, or educational notes. No action required.