Requesting Code Review

Requesting Code Review

Has an agent dispatch a code reviewer subagent with git SHAs and requirements, then act on its feedback by severity before merging.

Skill files2 files
SKILL.md96 lines
1
---
2
name: requesting-code-review
3
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements
4
---
5
6
# Requesting Code Review
7
8
Dispatch 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
28
BASE_SHA=$(git rev-parse HEAD~1) # or: git merge-base origin/main HEAD
29
HEAD_SHA=$(git rev-parse HEAD)
30
```
31
32
**2. Dispatch code reviewer subagent:**
33
34
Dispatch 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
53
You: Let me request code review before proceeding.
54
55
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | cut -d' ' -f1)
56
HEAD_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
71
You: [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
95
See template at: [code-reviewer.md](code-reviewer.md)
96

© Jesse Vincent · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…