/superpowers:requesting-code-reviewfrom superpowers
Dispatches a focused code reviewer subagent after completing tasks, implementing features, or before merging. Provides git SHAs and context to catch issues early.
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. This keeps the reviewer focused on the work product, not your thought process, and preserves your own context for continued work.
Core principle: Review early, review often.
Mandatory:
Optional but valuable:
1. Get git SHAs:
# For task review, use the commit recorded before the task started.
# For whole-branch review, use the branch merge-base.
BASE_SHA=$(git merge-base main HEAD 2>/dev/null || git merge-base master HEAD)
HEAD_SHA=$(git rev-parse HEAD)
Do not use HEAD~1 unless you are certain the work is exactly one commit. For
multi-commit work, HEAD~1 silently drops earlier commits from review.
2. Dispatch code reviewer subagent:
Dispatch a worker-capable reviewer subagent, filling the template at code-reviewer.md.
In Codex, use the worker-capable multi-agent tool exposed in the active session (see codex-tools.md). Wait for the reviewer result and close the finished subagent after handling it.
If no worker-capable multi-agent tool is available, do not claim independent review was performed. Stop and tell your human partner which review path is blocked. Ask them to enable Codex multi-agent support or provide another review channel before proceeding past Critical or Important work.
Placeholders:
{DESCRIPTION} - Brief summary of what you built{PLAN_OR_REQUIREMENTS} - What it should do{BASE_SHA} - Starting commit{HEAD_SHA} - Ending commit3. Act on feedback:
[Just completed Task 2: Add verification function]
You: Let me request code review before proceeding.
BASE_SHA=<commit recorded before Task 2 started>
HEAD_SHA=$(git rev-parse HEAD)
[Dispatch code reviewer subagent; in Codex, use the active worker subagent tool]
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
[Subagent returns]:
Strengths: Clean architecture, real tests
Issues:
Important: Missing progress indicators
Minor: Magic number (100) for reporting interval
Assessment: Ready to proceed
You: [Fix progress indicators]
[Continue to Task 3]
Subagent-Driven Development:
Executing Plans:
Ad-Hoc Development:
Never:
If reviewer wrong:
See template at: code-reviewer.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub smallocean43658/codex-superpowers --plugin superpowers14 skills in this plugin
/brainstormingUse when designing new functionality, creating features, building components, adding user-facing behavior, or changing product requirements 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/finishing-a-development-branchUse when implementation is complete, tests pass, or work is ready for merge, PR, cleanup, handoff, or branch integration/receiving-code-reviewUse when receiving, evaluating, or responding to code review feedback, reviewer comments, requested changes, or technical criticism/subagent-driven-developmentUse when executing implementation plans with independent tasks in the current session