code-review
npx machina-cli add skill zircote/agents/code-review --openclawCode Review
Trigger Phrases
Activate when user says:
- "review my code", "code review please", "check this code"
- "PR review", "pull request feedback", "merge review"
- "verify the changes", "validate my implementation", "check my work"
- "review feedback", "responding to review", "handling comments"
- "before I commit", "before merging", "ready to push"
- "is this done", "did I complete", "tests pass"
Guide proper code review practices emphasizing technical rigor, evidence-based claims, and verification over performative responses.
Overview
Code review requires three distinct practices:
- Receiving feedback - Technical evaluation over performative agreement
- Requesting reviews - Systematic review via code-reviewer subagent
- Verification gates - Evidence before any completion claims
Each practice has specific triggers and protocols detailed in reference files.
Core Principle
Technical correctness over social comfort. Verify before implementing. Ask before assuming. Evidence before claims.
When to Use This Skill
Receiving Feedback
Trigger when:
- Receiving code review comments from any source
- Feedback seems unclear or technically questionable
- Multiple review items need prioritization
- External reviewer lacks full context
- Suggestion conflicts with existing decisions
Reference: references/code-review-reception.md
Requesting Review
Trigger when:
- Completing tasks in subagent-driven development (after EACH task)
- Finishing major features or refactors
- Before merging to main branch
- Stuck and need fresh perspective
- After fixing complex bugs
Reference: references/requesting-code-review.md
Verification Gates
Trigger when:
- About to claim tests pass, build succeeds, or work is complete
- Before committing, pushing, or creating PRs
- Moving to next task
- Any statement suggesting success/completion
- Expressing satisfaction with work
Reference: references/verification-before-completion.md
Quick Decision Tree
SITUATION?
│
├─ Received feedback
│ ├─ Unclear items? → STOP, ask for clarification first
│ ├─ From human partner? → Understand, then implement
│ └─ From external reviewer? → Verify technically before implementing
│
├─ Completed work
│ ├─ Major feature/task? → Request code-reviewer subagent review
│ └─ Before merge? → Request code-reviewer subagent review
│
└─ About to claim status
├─ Have fresh verification? → State claim WITH evidence
└─ No fresh verification? → RUN verification command first
Receiving Feedback Protocol
Response Pattern
READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
Key Rules
- ❌ No performative agreement: "You're absolutely right!", "Great point!", "Thanks for [anything]"
- ❌ No implementation before verification
- ✅ Restate requirement, ask questions, push back with technical reasoning, or just start working
- ✅ If unclear: STOP and ask for clarification on ALL unclear items first
- ✅ YAGNI check: grep for usage before implementing suggested "proper" features
Source Handling
- Human partner: Trusted - implement after understanding, no performative agreement
- External reviewers: Verify technically correct, check for breakage, push back if wrong
Full protocol: references/code-review-reception.md
Requesting Review Protocol
When to Request
- After each task in subagent-driven development
- After major feature completion
- Before merge to main
Process
- Get git SHAs:
BASE_SHA=$(git rev-parse HEAD~1)andHEAD_SHA=$(git rev-parse HEAD) - Dispatch code-reviewer subagent via Task tool with: WHAT_WAS_IMPLEMENTED, PLAN_OR_REQUIREMENTS, BASE_SHA, HEAD_SHA, DESCRIPTION
- Act on feedback: Fix Critical immediately, Important before proceeding, note Minor for later
Full protocol: references/requesting-code-review.md
Verification Gates Protocol
The Iron Law
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
Gate Function
IDENTIFY command → RUN full command → READ output → VERIFY confirms claim → THEN claim
Skip any step = lying, not verifying
Requirements
- Tests pass: Test output shows 0 failures
- Build succeeds: Build command exit 0
- Bug fixed: Test original symptom passes
- Requirements met: Line-by-line checklist verified
Red Flags - STOP
Using "should"/"probably"/"seems to", expressing satisfaction before verification, committing without verification, trusting agent reports, ANY wording implying success without running verification
Full protocol: references/verification-before-completion.md
Integration with Workflows
- Subagent-Driven: Review after EACH task, verify before moving to next
- Pull Requests: Verify tests pass, request code-reviewer review before merge
- General: Apply verification gates before any status claims, push back on invalid feedback
Bottom Line
- Technical rigor over social performance - No performative agreement
- Systematic review processes - Use code-reviewer subagent
- Evidence before claims - Verification gates always
Verify. Question. Then implement. Evidence. Then claim.
Source
git clone https://github.com/zircote/agents/blob/main/skills/code-review/SKILL.mdView on GitHub Overview
Code Review enforces technical rigor in feedback, review requests, and verification before completion. It centers on three practices—receiving feedback with technical rigor over performative agreement, requesting reviews via a code-reviewer subagent, and verification gates requiring evidence before any status claims. This approach supports subagent-driven development and helps prevent false completion claims.
How This Skill Works
Code Review operates by applying three practices in sequence: receiving feedback with rigor, requesting reviews through the code-reviewer subagent, and enforcing verification gates before any completion claims. The process emphasizes avoiding performative agreement, confirming understanding, and verifying changes with evidence (tests, builds, and artifacts) before proceeding.
When to Use It
- Receiving feedback that is unclear or technically questionable.
- Completing tasks or major features that require formal review before proceeding.
- Before merging to the main branch or making completion claims.
- After fixing complex bugs or when external reviewers are involved.
- Moving to the next task only after fresh verification evidence is obtained.
Quick Start
- Step 1: When feedback arrives, restate the requirement and identify unclear items.
- Step 2: Ask clarifying questions or push back with technical reasoning; request a code-reviewer subagent if needed.
- Step 3: Before signaling completion, run tests/build verification and only then claim status with evidence.
Best Practices
- Restate requirements, ask clarifying questions, and push back with technical reasoning rather than agreement.
- Avoid any implementation before verification; don’t act on unclear items.
- Use the code-reviewer subagent to systematically request reviews after each task.
- Perform a YAGNI check: grep for actual usage before implementing suggested features.
- Verify changes against tests and builds; only claim completion with evidence.
Example Use Cases
- Reviewing a PR with unclear edge-case handling and requesting clarification.
- After finishing a major refactor, requesting a code-reviewer subagent check.
- Before merging, triggering verification to ensure tests pass.
- Responding to external reviewers by verifying changes technically and checking for breakage.
- Hitting a blocking comment and halting until evidence is provided.