| name | code-review |
| description | Use when completing tasks, implementing major features, or before merging. Covers both performing self-review and responding to external review feedback. |
Code Review
When to Review
Mandatory:
- After each task in a plan
- After completing a major feature
- Before merge to main
Optional but valuable:
- When stuck (fresh perspective)
- Before refactoring
- After fixing complex bug
Self-Review Checklist
Before marking any task complete, review your own work:
Spec Compliance
Code Quality
Testing
Git Hygiene
Requesting Human Review
When presenting work for review:
## What was implemented
[Brief description]
## Changes
[Files changed, key decisions]
## Verification
[Test output, verification evidence]
## Concerns
[Anything uncertain or worth discussing]
Use todo summary to show overall progress.
Receiving Review Feedback
The Response Pattern
- READ — Complete feedback without reacting
- UNDERSTAND — Restate the requirement in own words (or ask)
- VERIFY — Check against codebase reality
- EVALUATE — Technically sound for THIS codebase?
- RESPOND — Technical acknowledgment or reasoned pushback
- IMPLEMENT — One item at a time, test each
Forbidden Responses
- "You're absolutely right!" (performative)
- "Great point!" (performative)
- "Let me implement that now" (before verification)
Instead: Restate the technical requirement. Ask clarifying questions. Just fix it.
When to Push Back
Push back when:
- Suggestion breaks existing functionality
- Reviewer lacks full context
- Violates YAGNI (unused feature)
- Technically incorrect for this stack
- Conflicts with prior architectural decisions
How: Use technical reasoning. Reference working tests/code. Ask specific questions.
Implementation Order
For multi-item feedback:
- Clarify anything unclear FIRST
- Then implement:
- Blocking issues (breaks, security)
- Simple fixes (typos, imports)
- Complex fixes (refactoring, logic)
- Test each fix individually
- Verify no regressions
Acknowledging Correct Feedback
✅ "Fixed. [Brief description]"
✅ "Good catch — [issue]. Fixed in [location]."
✅ [Just fix it and show the code]
❌ Long apologies
❌ Defending why you were wrong
❌ Over-explaining
State the correction factually and move on.