/superpowers:requesting-code-reviewfrom superpowers
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Ships in superpowers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Dispatch a code reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history.
Core principle: Review early, review often.
Mandatory:
Optional but valuable:
1. Get git SHAs:
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. Dispatch code reviewer subagent:
Dispatch a general-purpose subagent, filling the template at code-reviewer.md
Placeholders:
{DESCRIPTION} - Brief summary of what you built{PLAN_OR_REQUIREMENTS} - What it should do{BASE_SHA} - Starting commit{HEAD_SHA} - Ending commit{REVIEW_FILE} - Where the reviewer writes its full review — name it
yourself (workspace or /tmp) so you know where the detail lives3. Act on feedback:
The reviewer returns a short contract — verdict, severity counts, one-liners for Critical/Important, and the review-file path. Act from the one-liners; open the review file only when a fix genuinely needs the full detail. When you dispatch a fixer, pass it the review-file path, not pasted findings.
For a high-stakes review — final pre-merge, an architecture-changing diff,
security-sensitive code — consider one more pass once the first reviewer's
verdict is otherwise clean or "with fixes" already applied: dispatch the same
code-reviewer.md template, same REVIEW_FILE-per-review
convention, to a different model than the one that did the primary review —
a fast, cheap, low-reasoning-effort model is fine here (e.g. a low-effort
pass on a lightweight model). The point isn't more scrutiny from a stronger
model, it's a different one: a second architecture is less likely to share
the first reviewer's blind spots. This is judgment-call, never mandatory —
skip it for routine changes.
Treat its contract like any other reviewer's: fix Critical/Important findings, note Minor ones, push back with reasoning if it's wrong. Don't loop a third time chasing consensus — one second opinion, then proceed.
[Just completed Task 2: Add verification function]
You: Let me request code review before proceeding.
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
HEAD_SHA=$(git rev-parse HEAD)
[Dispatch code reviewer subagent]
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
REVIEW_FILE: /tmp/review-task2.md
[Subagent returns]:
Verdict: With fixes. 0 Critical, 1 Important, 1 Minor.
- indexer.ts:130 — missing progress indicators for long operations
Full review: /tmp/review-task2.md
You: [Fix progress indicators]
[Continue to Task 3]
| Excuse | Reality |
|---|---|
| "I'll just review the diff myself instead of dispatching a reviewer" | You're the coordinator — reviewing the diff inline burns the context window you need to keep driving the work. Dispatch a reviewer subagent: the diff, the evaluation, and the full report live in its context and its review file — only the short contract comes back to you. |
| "The reviewer needs my whole session history to understand the change" | Hand it precisely crafted context, never your session's history. That keeps the reviewer on the work product, not your thought process. |
Never:
If reviewer wrong:
See template at: code-reviewer.md
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dotknewt/awesome-agency --plugin superpowers15 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/executing-plansUse when you have a written implementation plan to execute in a separate session with review checkpoints