Requesting code review: a fresh subagent checks Claude's work before you merge

by obra · MIT license · ★ 289,792 on GitHub · updated Sep 20

Requesting code review cover

Requesting code review is a free Claude skill by obra, part of the Superpowers collection. After a task, a major feature or before a merge, Claude hands the diff between two commits to a separate reviewer subagent with only the context it needs, never your session history. Critical issues get fixed immediately.

---
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

Overview

Dispatch a code reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history.

The SKILL.md below is the copy AgentAlley read and checked. The repo has changed it since; the other files are from commit 5bf4e78.

Manual install (npx, ZIP)
Claude Codenpx skills add obra/superpowers --skill requesting-code-review -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/obra/superpowers/tar.gz/5bf4e7801107 \ | tar -xz -C ~/.claude/skills --strip-components=2 superpowers-5bf4e7801107/skills/requesting-code-review
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/00a4c1bff4ded66b9c9b/requesting-code-review.zip" -OutFile "$env:TEMP\requesting-code-review.zip"; Expand-Archive "$env:TEMP\requesting-code-review.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md2.9 KB
  • code-reviewer.md6.3 KB
Read the files here
obra/5bf4e782 files
SKILL.md
Show the full text96 lines

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:

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

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 | 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

[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

1---
2name: requesting-code-review
3description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
4---
5 
6# Requesting Code Review
7 
8Dispatch a code reviewer subagent to catch issues before they cascade. The reviewer gets precisely crafted context for evaluation — never your session's history.
9 
10**Core principle:** Review early, review often.
11 
12## When to Request Review
13 
14**Mandatory:**
15- After each task in subagent-driven development
16- After completing major feature
17- Before merge to main
18 
19**Optional but valuable:**
20- When stuck (fresh perspective)
21- Before refactoring (baseline check)
22- After fixing complex bug
23 
24## How to Request
25 
26**1. Get git SHAs:**
27```bash
28BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
29HEAD_SHA=$(git rev-parse HEAD)
30```
31 
32**2. Dispatch code reviewer subagent:**
33 
34Dispatch a `general-purpose` subagent, filling the template at [code-reviewer.md](code-reviewer.md)
35 
36**Placeholders:**
37- `{DESCRIPTION}` - Brief summary of what you built
38- `{PLAN_OR_REQUIREMENTS}` - What it should do
39- `{BASE_SHA}` - Starting commit
40- `{HEAD_SHA}` - Ending commit
41 
42**3. Act on feedback:**
43- Fix Critical issues immediately
44- Fix Important issues before proceeding
45- Note Minor issues for later
46- Push back if reviewer is wrong (with reasoning)
47 
48## Example
49 
50```
51[Just completed Task 2: Add verification function]
52 
53You: Let me request code review before proceeding.
54 
55BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
56HEAD_SHA=$(git rev-parse HEAD)
57 
58[Dispatch code reviewer subagent]
59 DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
60 PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md
61 BASE_SHA: a7981ec
62 HEAD_SHA: 3df7661
63 
64[Subagent returns]:
65 Strengths: Clean architecture, real tests
66 Issues:
67 Important: Missing progress indicators
68 Minor: Magic number (100) for reporting interval
69 Assessment: Ready to proceed
70 
71You: [Fix progress indicators]
72[Continue to Task 3]
73```
74 
75## Common Rationalizations
76 
77| Excuse | Reality |
78|--------|---------|
79| "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. |
80| "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. |
81 
82## Red Flags
83 
84**Never:**
85- Skip review because "it's simple"
86- Ignore Critical issues
87- Proceed with unfixed Important issues
88- Argue with valid technical feedback
89 
90**If reviewer wrong:**
91- Push back with technical reasoning
92- Show code/tests that prove it works
93- Request clarification
94 
95See template at: [code-reviewer.md](code-reviewer.md)
96 
View all files on GitHub →

Details

Updated
Sep 20, 2026
License
MIT
Stars on the repo
★ 289,792
Checked
Source
obra/superpowers ↗
Creator
obra · 14 listings
View creator

Similar skills

See all →
SkillRequires technical rigor and verificationCode Review Receptionobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub starsSkillConduct high-quality, persona-driven code reviewsCode Review ExpertHoangNguyen0403/agent-skills-standard · by HoangNguyen0403Conduct high-quality, persona-driven code reviews. Use when reviewing PRs, critiquing code quality, or analyzing changes for team feedback.★ 569 GitHub starsSkillExplain something in the format that is fastestLLM output explainerJohnQinAMD/llm-output-explainer · by JohnQinAMDExplain something in the format that is fastest to understand, from controlled English (ASD-STE100 style), to a diagram, to an interactive HTML page, to a narrated explainer video. Check facts against their sources, using parallel subagents for independent evidence streams when the host supports them. Use when the user wants to understand a substantial concept, algorithm, code change, pull request, paper, benchmark result, or agent output, or asks for an explainer, diagram, HTML explanation, STE, or video. Not for one-line answers, drafting a pull request description, or code review.★ 4 GitHub starsPromptAct as a code review agent to evaluate and improve codef/prompts.chat · by Xiang FanAct as a code review agent to evaluate and improve code quality, style, and functionality.New listingPromptAct as an expert AI code reviewerCode review by coderabitf/prompts.chat · by Faisal BhuiyanYou are an expert AI code reviewer.New listingPromptAct as a code review expert to thoroughly analyze codeComprehensive code review expertf/prompts.chat · by Hyorim LeeAct as a code review expert to thoroughly analyze code for quality, efficiency, and adherence to best practices.New listing

More from obra

SkillBrainstorms ideas into designs before any creative workBrainstorming Ideas Into Designsobra/superpowers · by obraYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.★ 290k GitHub starsSkillRequires technical rigor and verificationCode Review Receptionobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub starsSkillDispatches parallel agentsDispatching parallel agentsobra/superpowers · by obraUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies★ 290k GitHub starsSkillExecutes plans with review checkpointsExecuting plansobra/superpowers · by obraUse when you have a written implementation plan to execute in a separate session with review checkpoints★ 290k GitHub starsSkillFinishes a development branchFinishing a development branchobra/superpowers · by obraUse when implementation is complete, all tests pass, and you need to decide how to integrate the work★ 290k GitHub starsSkillExecuting implementation plans with independent tasksSubagent driven developmentobra/superpowers · by obraUse when executing implementation plans with independent tasks in the current session★ 290k GitHub stars