requesting-code-review
Skill146 starsChanged 7 months agoMITView on GitHub
Structured code review against requirements, quality, and security standards. Invoke after meaningful code changes or before merge. Triggers on: "review my code", "code review", "check this before merge", "security review", "is this secure", "look over my changes", "second pair of eyes", "check the diff". Routed by using-superpowers or executing-plans after implementation.
187 other projects use a version of this.
Adopted by
Most recently taken up by
- DemonDamon/AgenticXtheir own version, first seen Nov 9, 2026
- roundpilot/superpowers-antigravitytheir own version, first seen Nov 8, 2026
- lingyired/status-triotheir own version, first seen Nov 8, 2026
- BrightGold70/skillstheir own version, first seen Nov 8, 2026
- supermorkat/qawa-arenatheir own version, first seen Nov 8, 2026
- Wasif-ZA/metatroopertheir own version, first seen Nov 8, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions 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.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
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 20 projects that use this
math-incSkillheartmula
Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.
Also in 9 projects that use this
Tommy-ywSkillwebhook-subscriptions
Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.
Also in 5 projects that use this
john-data-chenSkilltouchdesigner-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
- +3 more from Leodorareluctant259
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 187
- obra/superpowers★ 314ksame name
- NousResearch/hermes-agent★ 262ksame name
- jnMetaCode/superpowers-zh★ 8.4ksame name
- openai/plugins★ 7.8ksame name
- farm-fe/farm★ 5.6ksame name
- lingyired/status-trio★ 1.8ksame name
- GanyuanRan/Aegis★ 1.4ksame name
- pcvelz/superpowers★ 1.3ksame name
- math-inc/OpenGauss★ 1.3ksame name
- DemonDamon/AgenticX★ 1ksame name
177 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 repository23 other files it gives its agents.
- brainstormingSkill
- claude-md-creatorSkill
- context-managementSkill
- deliberationSkill
- dependency-managementSkill
- dispatching-parallel-agentsSkill
- error-recoverySkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- performance-investigationSkill
- premise-checkSkill
- receiving-code-reviewSkill
- refactoringSkill
- self-consistency-reasonerSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- token-efficiencySkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 173 edited versions we read keep these.
8
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 18
After completing a plan task or batch
- Distinctive: line 19
After major refactor/feature work
- Distinctive: line 20
Before merge or PR finalization
- Very specific: line 27
No remote, or origin/main not fetched: fall back to git merge-base main HEAD.
- Very specific: line 35
If a plan is in play, write the diff to a file first: bash ../subagent-driven-development/scripts/review-package PLAN_FILE BASE HEAD.
- Distinctive: line 46
When changes touch security-relevant areas, the code review must include a security pass.
- Distinctive: line 92
Identify the entry point: Start with the finding marked ASI in the red team summary.
- Distinctive: line 96
Re-assess the remaining findings: Update your list — remove resolved findings, re-prioritize if the fix changed the risk landscape.
- Very specific: line 100
Run one final regression check covering everything the fixes touched, scoped per verification-before-completion.
- Distinctive: line 106
If the red team report has zero Critical/High findings, skip the pipeline entirely.
- Distinctive: line 108
If the user explicitly says to skip auto-fix, respect that.
“Common” is measured: kept by at least 6 in 10 of the 173 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
Requesting Code Review
Request review early to catch issues before they spread.
When
- After completing a plan task or batch
- After major refactor/feature work
- Before merge or PR finalization
How
- Determine review range (
BASE_SHA->HEAD_SHA). Getting this wrong silently reviews the wrong thing:- Whole branch:
BASE_SHA=$(git merge-base origin/main HEAD)(substitute your default branch). Not a bareorigin/main— once main moves past your branch point, main's newer files appear in the diff as phantom deletions your branch never made, and the reviewer spends its pass on them. - A single task or batch: the commit recorded before the work started. Not
HEAD~1, which silently drops all but the last commit of a multi-commit task. - No remote, or
origin/mainnot fetched: fall back togit merge-base main HEAD. - Confirm the range is non-empty before dispatching —
git diff --stat BASE..HEAD. An empty range produces a confident "no issues found" review of nothing.
- Whole branch:
The review scope is always
git diff --name-only BASE_SHA..HEAD_SHA. Never take it fromcontext-snapshot.json: itschanged_filesare the commits since the last session start (or the last commit), not your review range.- The snapshot may add callers. If it exists and its
git_hashequalsgit rev-parse HEAD, then for each file in the review range that has ablast_radiusentry, add those callers to the reviewer prompt: "Changed files: [range list]. Also referenced by: [blast_radius callers]." If the hashes differ, ignoreblast_radius.
What
blast_radiusmeans. Each entry lists files containing a reference that resolves to the changed file's path — a relative import, or the repo path written out. It is deliberately incomplete: references that cannot be resolved (package-style imports, dynamic paths, aliases fromtsconfig) are dropped rather than guessed, so an empty list means "nothing was proven," not "nothing depends on this." Never widen review scope on a name match alone; if you need dependents the snapshot does not list, grep for them and say you did.blast_radius_methodrecords how the edges were derived. If it is missing, the snapshot came from a version that matched basenames as words — ignoreblast_radiusentirely and scope from the diff.- The snapshot may add callers. If it exists and its
- If a plan is in play, write the diff to a file first:
bash ../subagent-driven-development/scripts/review-package PLAN_FILE BASE HEAD. It refuses empty and non-descendant ranges outright, so the reviewer never receives a range that cannot mean what it claims. Pass the printed path to the reviewer. - Dispatch
superpowers-optimized:code-reviewerusingrequesting-code-review/code-reviewer.md. - Provide:
- What changed (from context snapshot or git diff)
- Scoped file list (changed files + blast radius callers if fresh snapshot available, or broad if not)
- Requirement or plan reference
- SHA range
- Short summary
Security Review (Built-In)
When changes touch security-relevant areas, the code review must include a security pass. This is not a separate step — it's part of every review where applicable.
Triggers automatically when changes touch:
- Authentication or authorization flows
- Input validation or output encoding
- API endpoints handling user data
- Secrets management or credential handling
- Cryptography, key management, or token generation
- Infrastructure, deployment, or CI/CD configs
Security checklist:
- OWASP Top 10 and CWE vulnerability scan
- OWASP API Security Top 10: broken object/function-level authorization, unrestricted resource consumption, SSRF, mass assignment, improper inventory management
- Input validation and injection risk (SQL, XSS, CSRF, command injection)
- Auth flow correctness (session handling, token expiry, privilege escalation, rate limiting on auth endpoints)
- Secrets handling (no hardcoded credentials, proper env var usage)
- Dependency vulnerabilities (known CVEs in imported packages)
- API hardening (security headers, CORS configuration, error message sanitization, rate limiting)
- Logging hygiene (no secrets in logs, adequate audit trail)
Severity enforcement:
- Critical/High security findings block merge until addressed or the user explicitly accepts the risk with documented rationale.
- Medium security findings should be fixed before merge unless explicitly deferred.
Adversarial Red Team (Optional)
For changes involving complex logic, concurrency, state management, or critical data paths, dispatch superpowers-optimized:red-team in parallel with the code reviewer.
Triggers when changes touch:
- State machines or multi-step workflows
- Concurrent access to shared resources
- Complex business logic with branching conditions
- Data transformation pipelines
- Retry/recovery/rollback logic
- Performance-critical paths handling large inputs
The red team agent finds concrete failure scenarios (specific inputs, race conditions, state corruption, resource exhaustion) that checklist-based review misses. It does NOT duplicate the security review — its focus is adversarial logic analysis, not OWASP/CWE compliance.
Red team critical findings block merge alongside security critical findings.
Auto-Fix Pipeline
When the red team report contains Critical or High findings, run the auto-fix pipeline. The pipeline is ASI-guided and iterative — fix one finding at a time, starting from the red team's designated ASI, then re-assess before proceeding. This prevents fixes from conflicting with each other when findings touch shared code.
Iteration loop:
- Identify the entry point. Start with the finding marked ASI in the red team summary. If no ASI is marked, start with the highest-severity finding.
- Write the failing test. Flesh out the test skeleton from the red team report into a real test and run it. It MUST fail — this proves the scenario is real. If the test passes, the finding was a false positive; skip it and note it in the triage, then re-identify the next ASI.
- Fix the code. Make the minimum change to pass the test. Do not refactor or improve surrounding code.
- Run a targeted re-check. Re-read only the files touched by the fix and check whether: (a) the fix introduced any new issues, and (b) any previously reported findings are now resolved as a side effect.
- Re-assess the remaining findings. Update your list — remove resolved findings, re-prioritize if the fix changed the risk landscape. Identify the new ASI.
- Repeat from step 2 until no Critical or High findings remain.
After the loop completes:
- Run one final regression check covering everything the fixes touched, scoped per
verification-before-completion. Fixes confined to one module: that module's suite plus its dependents. Fixes spanning modules or touching a shared contract: the full suite. - Report: findings fixed, false positives skipped, any regressions introduced and resolved.
Skip conditions:
- If the red team report has zero Critical/High findings, skip the pipeline entirely.
- Medium findings are tracked for later, not auto-fixed.
- If the user explicitly says to skip auto-fix, respect that.
Triage Rules
- Fix all Critical issues before proceeding.
- Fix Important issues unless user explicitly defers.
- Track Minor issues for later.
- Push back with evidence when feedback is incorrect.
Output Requirement
Review must include severity, file references, security findings (if applicable), and merge readiness verdict.
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.

