requesting-code-review
Skill8 starsChanged 7 months agoMITView on GitHub
Use when presenting code changes to a human for review — dispatches code-review-battery. Self-fires on intent to present (see Cardinal Rule in skill body). Skips battery dispatch if valid sentinel exists for clean HEAD. Always runs battery before presenting, never after.
155 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- NousResearch/hermes-agenttheir own version, first seen Nov 13, 2026
- rakaarwaky/agents-arwakytheir own version, first seen Oct 6, 2026
- LayneChai/superpowers-dshtheir own version, first seen Oct 3, 2026
- HanksChen0110/skillstheir own version, first seen Oct 3, 2026
- delorenj/skillstheir own version, first seen Oct 2, 2026
- lsy041015/orchestratheir own version, first seen Oct 2, 2026
Used with
Projects with it also use diagnosing-superpowers, workflow-runner and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
obraSkilldiagnosing-superpowers
Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.
Also in 6 projects that use this
MorningStar0709Skillworkflow-runner
Run an agency-orchestrator style YAML workflow inside the current Trae conversation by simulating or coordinating multiple roles. Use when the user provides a `.yaml` or `.yml` workflow, asks for multi-role collaboration, says things like “用多个角色一起评审这个 PRD”“多角色协作”“先生成工作流再执行”“让产品经理、架构师、QA 一起看一下”, or wants roles such as product manager, architect, reviewer, or QA to work together. Supports layered execution, role prompting, variable interpolation, document-backed inputs, and parallel steps only when the current environment has a clear subagent mapping. Do not use for ordinary implementation plans, simple code changes, or tasks already covered by `writing-plans`, `executing-plans`, `subagent-driven-development`, or single-purpose review/debug skills.
Also in 5 projects that use this
MorningStar0709Skillchinese-git-workflow
Configure Git for domestic platforms and manage branching strategies suitable for Chinese teams. Use when the user asks to configure remotes, set up SSH, or manage Git workflows for Gitee, Coding, Jihu GitLab, or CNB, including requests like "配置国内 Git", "设置 Gitee 远程仓库", "推荐适合小团队的 Git 流程".
Also in 4 projects that use this
kevinnftSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
aivrarSkillsdlc-review
Review Kanban handoffs and route verified outcomes.
Also in 5 projects that use this
braxtonROSE4Skillsongwriting-and-ai-music
Songwriting craft, AI music generation prompts (Suno focus), parody/adaptation techniques, phonetic tricks, and lessons learned. These are tools and ideas, not rules. Break any of them when the art calls for it.
Also in 11 projects that use this
Other versions155 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- KalarisLabs/Skill-Doctor★ 1311% same
- socialadsmentor/sam-agentic-harness★ 410% same
- ehm3dk/claude-skills-for-pms★ 311% same
Wrote their own version · 152
- obra/superpowers★ 314ksame name
- NousResearch/hermes-agent★ 267ksame name
- jnMetaCode/superpowers-zh★ 8.3ksame name
- openai/plugins★ 7.3ksame name
- GanyuanRan/Aegis★ 1.3ksame name
- coco-research/coco★ 437same name
- Ibrahim-3d/orchestrator-supaconductor★ 380same name
- theexperiencecompany/gaia★ 306same name
- aivrar/portable-hermes-agent★ 232same name
- graniet/kheish★ 221same name
142 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- guidance/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- guidance/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- blast-radius-checkSkill
- brainstormingSkill
- branch-flow-gateSkill
- branch-sync-gateSkill
- codebase-reconSkill
- codeowners-drift-auditSkill
- code-review-batterySkill
- cognitive-complexity-refactoringSkill
- debateSkill
- debug-conductorSkill
- dispatching-parallel-agentsSkill
- domain-buildSkill
- evidence-adjudicatorSkill
- executing-plansSkill
- external-cli-auditSkill
- feature-developmentSkill
- field-rename-verificationSkill
- finishing-a-development-branchSkill
- git-branch-conventionsSkill
- gitlab-cliSkill
- hotfix-charterSkill
- implementation-trackerSkill
- infra-config-investigatorSkill
- investigation-stateSkill
- kernel-splitSkill
- llm-behavior-investigatorSkill
- llm-skill-reviewSkill
- merge-authorization-gateSkill
- micro-harsh-reviewSkill
- output-verificationSkill
- pre-commit-gateSkill
- progressive-code-review-gateSkill
- progressive-harsh-reviewSkill
- providing-code-reviewSkill
- pr-triage-gateSkill
- push-authorization-gateSkill
- receiving-code-reviewSkill
- reproduction-experiment-investigatorSkill
- requirements-validation-pmSkill
- requirements-validationSkill
- scope-tripwireSkill
- session-handoffSkill
- skills-hierarchy-tuningSkill
- sp-bughuntSkill
- state-consistency-investigatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- timeline-trace-investigatorSkill
- token-estimationSkill
- unified-commit-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- experimental-self-promptingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 5 are common, 6 are distinctive, and 3 are very specific to this project.
5
Common
Most of the 146 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 78
Every message that presents work to the human for review MUST open with the clearance line:
- Distinctive: line 85
If you cannot produce this line, you have not run battery on HEAD.
- Distinctive: line 105
If battery has not run: Run it now, before writing a single word of the response.
- Distinctive: line 114
Before presenting ANY work as "ready/done/complete" to a human
- Distinctive: line 115
After completing a major feature or bug fix
- Common: line 116
Before merge to main
- Distinctive: line 117
Before offering to commit, push, or create a PR
- Common: line 118
After each task in subagent-driven development
- Common: line 121
When stuck (fresh perspective)
- Common: line 122
Before refactoring (baseline check)
- Common: line 123
After fixing a complex bug
- Very specific: line 137
Follow the code-review-battery procedure:
- Very specific: line 140
Dispatch: all activated reviewers in parallel via sub-agent-code-reviewer
- Very specific: line 155
Only proceed to presenting work as "ready" when battery verdict is PASS or PASS_WITH_NITS (with nits fixed).
“Common” is measured: kept by at least 6 in 10 of the 146 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Wrong skill? Pre-commit/push →
unified-commit-gate. Reviewing someone else's PR →providing-code-review. Implementing feedback you received →receiving-code-review. Inter-agent file handoff →inter-agent-review-protocol.
Requesting Code Review
Dispatch code-review-battery to catch issues before they cascade. The battery dispatches up to 7 specialist reviewers in parallel — each focused on a distinct set of review dimensions — producing deeper analysis than any single-pass review.
Core principle: Review early, review often.
🔴 Before Asking the Human to Review
Apply this protocol whenever you are about to show a human your work — PR links, summaries, "here's what I built," "please review my changes." Run this check before writing that message.
Step 1 — Read the sentinel, HEAD SHA, and worktree state:
SENTINEL="$(git rev-parse --show-toplevel 2>/dev/null || echo .)/.code-review-cleared"
cat "$SENTINEL" 2>/dev/null || echo "NO CLEARANCE"
echo "HEAD: $(git rev-parse HEAD 2>/dev/null || echo 'unknown')"
git diff --quiet && git diff --cached --quiet && echo "WORKTREE_CLEAN" || echo "WORKTREE_DIRTY"Step 2 — Decide:
| Result | Action |
NO CLEARANCE | STOP. Run code-review-battery first. Do not write the review request. |
| Sentinel SHA ≠ HEAD SHA | STOP. Changes were made after last review. Re-run code-review-battery. |
Sentinel valid for HEAD but WORKTREE_DIRTY | STOP. Staged/unstaged changes exist that battery didn't review. Commit or stash, then re-run battery. |
v1|SHA|PASS|... or PASS_WITH_NITS, SHA matches HEAD, AND WORKTREE_CLEAN | Proceed — include the clearance line in your message (see Step 3) |
| Anything else | STOP. Sentinel is malformed. Delete .code-review-cleared, re-run battery. |
Step 3 — Include the clearance in your human-facing message:
Every message that presents work to the human for review MUST open with the clearance line:
🔍 Review cleared: PASS | SHA: abc12345 | 2026-04-02T21:29ZThis is not optional decoration. It lets the human verify at a glance that battery ran on exactly the code being reviewed. If you cannot produce this line, you have not run battery on HEAD. Run it now.
🔴 The Cardinal Rule
The INTENT TO PRESENT is the trigger — not the words you use.
The moment you are forming a response to the human that describes code you wrote — that is the trigger. Before the words exist. Not after you say "done". Before you start writing the sentence.
This applies unconditionally. No threshold for simplicity. No exception for small fixes. No exception for "the user will just look at the diff themselves." Every response. Every time.
| Internal state (INTENT) | Required gate |
| Forming a response that describes code changes | Battery must have PASSED |
| About to commit or push | Battery must have PASSED; sentinel must exist |
| About to share an MR/PR link | Sentinel must exist for HEAD |
| About to write a completion summary | Battery must have PASSED |
| ANY moment of transitioning from "working" to "reporting" | This IS the trigger. There is no hesitation threshold. |
If battery already ran and sentinel exists for HEAD: Evidence confirmed. Do not re-dispatch. Note the clearance and proceed.
If battery has not run: Run it now, before writing a single word of the response.
The autonomous review is not the human's job to request. You must do it yourself, every time, before the response is formed.
Why this rule exists: See the 2026-04-02b incident in verification-before-completion Incident History. The gate failed because the implementation→reporting transition was not recognized as a trigger despite an explicit incident log entry from earlier the same session. The fix: trigger on INTENT, not on output language.
When to Use / When to Request Review
Always (hard gates):
- Before presenting ANY work as "ready/done/complete" to a human
- After completing a major feature or bug fix
- Before merge to main
- Before offering to commit, push, or create a PR
- After each task in subagent-driven development
Also valuable:
- When stuck (fresh perspective)
- Before refactoring (baseline check)
- After fixing a complex bug
How to Request
1. Gather context
BASE_SHA=$(git merge-base HEAD main) # or origin/dev, origin/main
HEAD_SHA=$(git rev-parse HEAD)
git diff $BASE_SHA..$HEAD_SHA # the diff to review2. Dispatch code-review-battery
Follow the code-review-battery procedure:
- Triage the diff → select relevant specialist reviewers
- Dispatch all activated reviewers in parallel via
sub-agent-code-reviewer - Each reviewer gets: reviewer prompt + full diff + source context (callers, field readers, state types)
- Aggregate findings → triple-filter → classify Implement/Defer/Reject
3. Act on findings
| Severity | Action |
| Critical | Fix immediately. Re-dispatch battery. |
| Important | Fix before proceeding. Re-dispatch if >1 fixed. |
| Minor | Fix now or document for follow-up. |
| Reviewer wrong | Push back with technical reasoning and evidence. |
4. Confirm verdict
Only proceed to presenting work as "ready" when battery verdict is PASS or PASS_WITH_NITS (with nits fixed).
Integration with Workflows
| Workflow | When to Review |
| Subagent-driven development | After EACH task — catch issues before they compound |
| Feature development | After implementation, before presenting options |
| Ad-hoc development | Before merge or when stuck |
| Finishing a branch | Step 0 of finishing-a-development-branch dispatches code-review-battery directly |
Anti-Patterns
| Wrong | Right |
| Skipping review because "it's simple" | Complexity doesn't determine risk |
| Ignoring Critical findings | Critical = broken if shipped |
| Proceeding with unfixed Important findings | Fix first, then re-dispatch |
| Arguing with valid technical feedback | Push back only with evidence |
| Presenting work as "ready" then reviewing | Review first, present second |
Companion Skills
- code-review-battery: The review engine this skill dispatches
- progressive-code-review-gate: Fires at commit time (uses battery) — handles "ready to commit/push" triggers
- verification-before-completion: Completion gate that requires review evidence
- providing-code-review: Engineering rigor checklist (informs reviewer focus)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

