Agent Skill
Requesting code review (Superpowers)
Sends finished work to a reviewer subagent with the plan and a commit range, never the whole chat, then fixes critical and important issues first.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit 22f0b46, the version we read, wherever the install method supports it.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill requesting-code-review -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin install superpowers@claude-plugins-officialRun inside Claude Code. Installs the whole superpowers plugin from its default branch, not the pinned commit; the official marketplace is available by default.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill requesting-code-review -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill requesting-code-review -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install obra/superpowers skills/requesting-code-review --pin 22f0b463e7a5e579904dd6211a520321035526f7 --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill requesting-code-reviewPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
Tells the agent when to ask for a review and how. Review is mandatory after each task in subagent-driven development, after a major feature and before merging to main, and recommended when stuck, before a refactor and after a tricky bug fix. To request one, the agent records the base and head commit SHAs, then dispatches a general-purpose reviewer subagent using the template in code-reviewer.md, filled with a short description of what was built, the plan or requirements, and the commit range. The reviewer gets that context and nothing else, not the session history, so it judges the code rather than the conversation that produced it. Findings come back as critical, important and minor: fix critical ones now, important ones before moving on, and note the minor ones.
When to use it
Any agent session that runs long enough to produce a meaningful diff, and especially plan-driven work where small errors compound from task to task. It is a cheap second opinion that does not depend on a human being available.
When to skip it
Agents without subagents: the method relies on a reviewer with a fresh context. A reviewer that is the same model as the author also shares its blind spots, so it does not replace human review on risky changes.
Try it
You've finished task 3 of the plan. Request a code review of the commits
since task 2, using the plan in docs/plans/export.md as the requirements.
Fix anything critical before you continue.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- None declared
- Needs
- Git; Subagent support for the reviewer
- Client-specific fields
- None, spec fields only
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Read-only Git commands to get SHAs, and a subagent that reads the diff. No scripts, no allowed-tools. The fixes afterwards are normal edits.
At commit 22f0b46 the SKILL.md is 95 lines long. Alongside it:
code-reviewer.md
Alternatives
Receiving code review is the other half: how the agent should treat the feedback. For a deeper security pass on the same diff, use differential review. Our code review with Claude Code workflow puts the pieces together.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its MIT licence.
---
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)Related skills
Receiving code review (Superpowers)
Makes the agent check review comments against the code before acting on them, push back with reasons when they are wrong, and skip the flattery.
Subagent-driven development
Executes an implementation plan by handing each task to a fresh subagent, then reviewing its work before moving on. Best in agents with subagents.
Code review (Sentry)
Sentry's pull-request review checklist: correctness, design, test coverage and long-term impact, with Python, TypeScript and security patterns to flag.
Guides and recipes that use Requesting code review (Superpowers)
- Code review with Claude Code on every pull request
Write your checklist once, dry-run it locally, then review every pull request in GitHub Actions and post the findings.