requesting-code-review — Claude Code skill: install and use
Sends completed work to a reviewer subagent after a task, major feature, or before merging to main. It keeps the review focused on the change and its requirements.
/plugin marketplace add obra/superpowers
/plugin install superpowers@superpowers-devWhat requesting-code-review does
This skill delegates review to a general-purpose subagent. The reviewer receives a short change description, requirements, and the starting and ending Git commits. It does not need the full session history, so the review stays focused on the work product.
The workflow gets BASE_SHA and HEAD_SHA from Git, then fills in the code-reviewer.md template. Critical findings should be fixed right away, Important findings before moving on, and Minor findings can wait. If a reviewer is wrong, the workflow calls for a technical response backed by code or tests.
Install it if your agent workflow uses subagents or you want a review gate before merging. For a one-off edit with no Git range, the extra process is probably unnecessary.
What it helps with
- send a Git commit range to a reviewer subagent
- review a major feature before merging to main
- check changes against a plan or requirements
- sort review findings by Critical, Important, and Minor
- get a fresh review after a complex bug fix
Example prompts for the agent
- “Request a code review for the current changes before merging to main.”
- “Get BASE_SHA and HEAD_SHA after this task, then send the requirements to the reviewer.”
- “Review this implementation against `docs/superpowers/plans/deployment-plan.md` using requesting-code-review.”
How to install requesting-code-review
1Plugin marketplace
/plugin marketplace add obra/superpowers/plugin install superpowers@superpowers-devThis installs the whole superpowers plugin with all its skills
2Skills CLI (Vercel)
npx skills add obra/superpowers --skill requesting-code-review -a claude-code3Manually: put the files in place
~/.claude/skills/requesting-code-review/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/requesting-code-review/
1Skills CLI (Vercel)
npx skills add obra/superpowers --skill requesting-code-review -a codex2Manually: put the files in place
.agents/skills/requesting-code-review/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/requesting-code-review/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install obra/superpowers requesting-code-review2Manually: put the files in place
.github/skills/requesting-code-review/SKILL.mdPlatform CLI
gemini skills install https://github.com/obra/superpowers --path skills/requesting-code-reviewManually: put the files in place
.devin/skills/requesting-code-review/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set16
The whole set →Similar
Questions about requesting-code-review
How do I install requesting-code-review in Claude Code?
Add the skill with npx skills add obra/superpowers --skill requesting-code-review -a claude-code. You can also install the plugin with /plugin marketplace add obra/superpowers, then /plugin install superpowers@superpowers-dev.
What does requesting-code-review do?
It sends a change to a general-purpose reviewer subagent with requirements and a Git commit range. The skill then directs the agent to address findings by priority.
What does the reviewer need?
Provide a description of the work, the plan or requirements, plus BASE_SHA and HEAD_SHA. The request format is in code-reviewer.md.
Source text
SKILL.md · MIT
---
name: requesting-code-review
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
---
# Requesting Code Review
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.
## When to Request Review
**Mandatory:**
- After each task in subagent-driven development
- After completing major feature
- Before merge to main
**Optional but valuable:**
- When stuck (fresh perspective)
- Before refactoring (baseline check)
- After fixing complex bug
## How to Request
**1. Get git SHAs:**
```bash
BASE_SHA=$(git rev-parse HEAD~1) # or: git merge-base origin/main HEAD
HEAD_SHA=$(git rev-parse HEAD)
```
**2. Dispatch code reviewer subagent:**
Dispatch a `general-purpose` subagent, filling the template at [code-reviewer.md](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
**3. Act on feedback:**
- Fix Critical issues immediately
- Fix Important issues before proceeding
- Note Minor issues for later
- Push back if reviewer is wrong (with reasoning)
## Example
```
[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 | cut -d' ' -f1)
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
[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]
```
## Common Rationalizations
| 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 and the evaluation live in its context, and only the findings come 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. |
## Red Flags
**Never:**
- Skip review because "it's simple"
- Ignore Critical issues
- Proceed with unfixed Important issues
- Argue with valid technical feedback
**If reviewer wrong:**
- Push back with technical reasoning
- Show code/tests that prove it works
- Request clarification
See template at: [code-reviewer.md](code-reviewer.md)
© Jesse Vincent · MIT · obra/superpowers