Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Dispatch a focused code-reviewer subagent after completing tasks to catch issues before they cascade
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: requesting-code-review3description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements4---56# Requesting Code Review78Dispatch 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.910**Core principle:** Review early, review often.1112## When to Request Review1314**Mandatory:**15- After each task in subagent-driven development16- After completing major feature17- Before merge to main1819**Optional but valuable:**20- When stuck (fresh perspective)21- Before refactoring (baseline check)22- After fixing complex bug2324## How to Request2526**1. Get git SHAs:**27```bash28BASE_SHA=$(git rev-parse HEAD~1) # or origin/main29HEAD_SHA=$(git rev-parse HEAD)30```3132**2. Dispatch code reviewer subagent:**3334Use Task tool with `general-purpose` type, fill template at `code-reviewer.md`3536**Placeholders:**37- `{DESCRIPTION}` - Brief summary of what you built38- `{PLAN_OR_REQUIREMENTS}` - What it should do39- `{BASE_SHA}` - Starting commit40- `{HEAD_SHA}` - Ending commit4142**3. Act on feedback:**43- Fix Critical issues immediately44- Fix Important issues before proceeding45- Note Minor issues for later46- Push back if reviewer is wrong (with reasoning)4748## Example4950```51[Just completed Task 2: Add verification function]5253You: Let me request code review before proceeding.5455BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')56HEAD_SHA=$(git rev-parse HEAD)5758[Dispatch code reviewer subagent]59DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types60PLAN_OR_REQUIREMENTS: Task 2 from docs/superpowers/plans/deployment-plan.md61BASE_SHA: a7981ec62HEAD_SHA: 3df76616364[Subagent returns]:65Strengths: Clean architecture, real tests66Issues:67Important: Missing progress indicators68Minor: Magic number (100) for reporting interval69Assessment: Ready to proceed7071You: [Fix progress indicators]72[Continue to Task 3]73```7475## Integration with Workflows7677**Subagent-Driven Development:**78- Review after EACH task79- Catch issues before they compound80- Fix before moving to next task8182**Executing Plans:**83- Review after each task or at natural checkpoints84- Get feedback, apply, continue8586**Ad-Hoc Development:**87- Review before merge88- Review when stuck8990## Red Flags9192**Never:**93- Skip review because "it's simple"94- Ignore Critical issues95- Proceed with unfixed Important issues96- Argue with valid technical feedback9798**If reviewer wrong:**99- Push back with technical reasoning100- Show code/tests that prove it works101- Request clarification102103See template at: requesting-code-review/code-reviewer.md104