원클릭으로
requesting-code-review
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Initialize or audit a project's CLAUDE.md against best-practice criteria. Use on first-time setup ('init', 'set up project', 'first time in this repo'), when scanning a project to create CLAUDE.md, or when refreshing an existing CLAUDE.md against the current state of the codebase. Replaces Claude Code's default /init.
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
Check installed plugins for conflicts with super-agent-skills and suggest complementary MCP servers. Use to optimize your plugin setup.
Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.
Use 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
Hardens code against vulnerabilities. Use when handling user input, authentication, data storage, or external integrations. Use when building any feature that accepts untrusted data, manages user sessions, or interacts with third-party services.
| name | requesting-code-review |
| description | Use when completing tasks, implementing major features, or before merging to verify work meets requirements |
| phase | review |
| produces | ["review-report"] |
| chainsTo | ["wrap-up","finishing-a-development-branch"] |
| chainsFrom | ["superthink","subagent-driven-development","executing-plans","compound-engineering"] |
Dispatch super-agent-skills: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.
Core principle: Review early, review often.
Related: super-agent-skills:receiving-code-review — for responding to review feedback with technical rigor.
Mandatory:
Optional but valuable:
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:
Use Task tool with super-agent-skills:code-reviewer type, fill template at code-reviewer.md
Placeholders:
{WHAT_WAS_IMPLEMENTED} - What you just built{PLAN_OR_REQUIREMENTS} - What it should do{BASE_SHA} - Starting commit{HEAD_SHA} - Ending commit{DESCRIPTION} - Brief summary3. Act on feedback:
[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 super-agent-skills:code-reviewer subagent]
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
BASE_SHA: a7981ec
HEAD_SHA: 3df7661
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
[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]
Instruct the code-reviewer to evaluate across these dimensions:
references/security-checklist.md for full checklist.references/performance-checklist.md for full checklist.Small, focused changes are easier to review:
~100 lines changed → Good. Reviewable in one sitting.
~300 lines changed → Acceptable if it's a single logical change.
~1000 lines changed → Too large. Split it.
If a change is too large, ask the author to split using: vertical slices, by file group, or horizontal layers.
Before dispatching the reviewer, enforce the sizing rules as a hard gate:
# Count lines changed
LINES_CHANGED=$(git diff --stat $BASE_SHA..$HEAD_SHA | tail -1 | awk '{print $4+$6}')
| Lines changed | Action |
|---|---|
| ≤300 | Proceed with review |
| 301-1000 | Warn: "This change is large. Consider splitting." Proceed if author confirms. |
| >1000 | Block: "This change is too large to review effectively. Split it before requesting review." Do NOT dispatch reviewer. |
This enforces what "Change Sizing" recommends. A 2000-line review catches fewer bugs than two 1000-line reviews because reviewer attention degrades with size.
For security-sensitive changes (auth, user input, external data), the reviewer should additionally invoke super-agent-skills:security-and-hardening for a focused security review.
For performance-sensitive changes (database queries, rendering, data processing), the reviewer should additionally invoke super-agent-skills:performance-optimization for a focused performance review.
For architecture-significant changes (new abstractions, modified module boundaries, new public APIs), additionally dispatch super-agent-skills:architecture-reviewer for a focused design review.
When the reviewer finds Critical or Important issues, automate the fix-and-re-review cycle instead of manual back-and-forth.
Reviewer returns issues
│
├── Critical/Important issues found
│ │
│ ▼
│ Dispatch fix agent with reviewer feedback as instructions
│ │
│ ▼
│ Fix agent makes changes and commits
│ │
│ ▼
│ Re-dispatch reviewer to verify fixes
│ │
│ ├── Issues resolved → Proceed
│ └── Issues remain → Loop (max 3 rounds)
│
├── Only Minor/Nit issues → Proceed (note for later)
│
└── No issues → Proceed
| Thought | Reality |
|---|---|
| "The fix is obvious, skip re-review" | Obvious fixes introduce obvious bugs. Re-review is cheap. |
| "3 rounds is too many, just merge" | 3 rounds means the spec is broken. Merging broken code is more expensive. |
| "I'll fix it manually instead of dispatching" | Manual fixes pollute your context. Dispatch a fresh agent. |
Subagent-Driven Development:
Executing Plans:
Ad-Hoc Development:
| Thought | Reality |
|---|---|
| "It works, that's good enough" | Working code that's unreadable, insecure, or architecturally wrong creates debt that compounds. |
| "The tests pass, so it's good" | Tests are necessary but not sufficient. They don't catch architecture problems, security issues, or readability concerns. |
| "AI-generated code is probably fine" | AI code needs MORE scrutiny, not less. It's confident and plausible, even when wrong. |
| "We'll clean it up later" | Later never comes. The review is the quality gate — use it. |
Never:
If reviewer wrong:
See template at: requesting-code-review/code-reviewer.md
When review is complete and all issues are resolved, prompt the user:
"Review passed. What would you like to do next?"
A) Wrap up — update backlog, changelog, commit, move to next item B) Ship it — pre-merge checklist, merge/PR, branch cleanup C) Keep going — continue working, more changes needed
Or tell me what you'd like to do.
Route based on response:
super-agent-skills:wrap-upsuper-agent-skills:finishing-a-development-branch