/superpowers-custom:requesting-code-reviewfrom superpowers-custom
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Ships in superpowers-custom. 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:
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
HEAD_SHA=$(git rev-parse HEAD)
2. Build the review package:
<this skill's directory>/../subagent-driven-development/scripts/review-package --print-path "$BASE_SHA" "$HEAD_SHA"
--print-path prints only the path of the package (without it, the script
prints a wrote <path>: ... line); the package is
the stat summary, the AGENTS.md / CLAUDE.md files that govern the changed
files, and the diff with each hunk's whole enclosing function. It writes
under the self-ignored <repo-root>/.superpowers/sdd/.
3. 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{DIFF_FILE} - Review package path from step 24. Act on feedback:
[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)
DIFF_FILE=$(<this skill's directory>/../subagent-driven-development/scripts/review-package --print-path "$BASE_SHA" "$HEAD_SHA")
[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
DIFF_FILE: .superpowers/sdd/review-a7981ec..3df7661.diff
[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 and extract the magic number]
[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
npx claudepluginhub stanlrt/cc-superpowers-parallelised --plugin superpowers-custom14 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