home / skills / jackspace / claudeskillz / code-review_mrgoonie

code-review_mrgoonie skill

/skills/code-review_mrgoonie

This skill helps enforce rigorous code review by validating feedback, coordinating reviews, and verifying evidence before claiming completion.

This is most likely a fork of the code-review skill from mamba-mental
npx playbooks add skill jackspace/claudeskillz --skill code-review_mrgoonie

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
5.3 KB
---
name: code-review
description: Use when receiving code review feedback (especially if unclear or technically questionable), when completing tasks or major features requiring review before proceeding, or before making any completion/success claims. Covers three practices - receiving feedback with technical rigor over performative agreement, requesting reviews via code-reviewer subagent, and verification gates requiring evidence before any status claims. Essential for subagent-driven development, pull requests, and preventing false completion claims.
---

# Code Review

Guide proper code review practices emphasizing technical rigor, evidence-based claims, and verification over performative responses.

## Overview

Code review requires three distinct practices:

1. **Receiving feedback** - Technical evaluation over performative agreement
2. **Requesting reviews** - Systematic review via code-reviewer subagent
3. **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
1. Get git SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
2. Dispatch code-reviewer subagent via Task tool with: WHAT_WAS_IMPLEMENTED, PLAN_OR_REQUIREMENTS, BASE_SHA, HEAD_SHA, DESCRIPTION
3. 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

1. Technical rigor over social performance - No performative agreement
2. Systematic review processes - Use code-reviewer subagent
3. Evidence before claims - Verification gates always

Verify. Question. Then implement. Evidence. Then claim.

Overview

This skill enforces rigorous code review behavior: receive feedback with technical scrutiny, request systematic reviews via a code-reviewer subagent, and require fresh verification evidence before any completion claims. It prevents performative agreement, reduces false completion reports, and integrates with subagent-driven development and pull request workflows. Follow the protocols to prioritize evidence and correctness over social comfort.

How this skill works

When feedback arrives, the skill prescribes a read→understand→verify→evaluate→respond→implement cycle that stops work if items are unclear or technically questionable. For completed work it automates requesting a review by collecting git SHAs and dispatching a code-reviewer subagent with implementation context. Before any status claim, it requires running the exact verification command, capturing output, and attaching that evidence to the claim.

When to use it

  • When you receive code review comments that are unclear or technically questionable
  • After finishing a task or major feature in subagent-driven development
  • Before merging to main or creating a pull request
  • When about to claim tests pass, build succeeds, or a bug is fixed
  • When you need a fresh, independent inspection (stuck or complex bug)

Best practices

  • Never reply with performative agreement; restate requirements and ask clarifying questions
  • Do not implement suggested changes before verifying their correctness or relevance
  • After each task, dispatch the code-reviewer subagent with BASE_SHA, HEAD_SHA, description and plan
  • Require fresh verification output (command + results) before claiming completion
  • Classify feedback: fix Critical immediately, address Important before progressing, and log Minor items for later

Example use cases

  • A teammate leaves ambiguous review comments — stop, request clarification and technical justification before changing code
  • Completed a refactor — collect BASE_SHA/HEAD_SHA and request automated subagent review before opening the PR
  • Finished tests locally and about to close the task — run the test command, capture zero-failure output, and attach it before marking done
  • Stuck on a bug — request code-reviewer subagent review to get a second-pass inspection
  • Preparing to merge to main — run verification gates, resolve Critical review items, then merge

FAQ

What counts as valid verification evidence?

The exact command run and its raw output showing success (e.g., test runner output with 0 failures or build exit code 0).

When should I push back on a reviewer?

Push back when a suggestion is technically incorrect, breaks behavior, or lacks context—explain reasoning and request evidence or clarification.