review-code
Skill8 starsChanged 2 months agoMITView on GitHub
Runs one adaptive multi-agent code review of a PR, commit, or the whole codebase. Always covers six core dimensions (correctness, performance, code style, test coverage, error handling, simplicity/over-engineering) plus architecture and design patterns, then adds security, dependency, deep-performance, and UI/motion lanes when the change touches those areas. Critical and Major findings are adversarially verified before the severity-ranked report with file:line findings and fixes goes out in chat. Use when the user wants a thorough review, asks to review a PR or diff, or wants over-engineered code flagged. Analysis only: never edits code, commits, or applies fixes, and posts to GitHub only when explicitly asked. Not for a standalone security audit (use review-security), a standalone dependency audit (use review-deps), a standalone performance investigation (use review-perf), or a standalone UX/design critique (use review-design).
78 other projects use a version of this.
Adopted by
Most recently taken up by
- NemesLaszlo/claude-code-harnesstheir own version, first seen Nov 29, 2026
- NemesLaszlo/Agent-Collectiontheir own version, first seen Nov 29, 2026
- arumaekawa/codex-skillstheir own version, first seen Nov 29, 2026
- yamanidev/claude-code-configurationtheir own version, first seen Nov 29, 2026
- YauhenBichel/engineering-skillstheir own version, first seen Nov 29, 2026
- lyricat/agent-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use audit-test-suite, change-data-safely and 9 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.
yaohuangguanSkillaudit-test-suite
Find where an existing test suite is weak and decide what to test next, ranked by risk. Use this when asked to add missing tests, find gaps, raise coverage, assess test quality or see which areas are thin, even if the request only mentions a coverage percentage.
Also in 3 projects that use this
yaohuangguanSkillchange-data-safely
Change a database schema or stored data without breaking running code or losing data. Use this for any migration, new or changed column, backfill, bulk update, delete, index, or change to a stored format, including in small projects. Data mistakes are often impossible to undo.
Also in 3 projects that use this
mrdulasolutionsSkillclear-caches
Clear extension caches, analysis data, and drafts from the database. Use when testing sender lookups, analysis, or draft generation from a clean state.
Also in 3 projects that use this
GeiserXSkilldocs-loop
Use when the user asks to audit docs, check documentation for stale claims, or verify docs against the code.
Also in 3 projects that use this
mrdulasolutionsSkillelectron-devtools-testing
Test the Electron app interactively using Chrome DevTools Protocol. Use when the user asks to test, verify, or interact with the running app via browser automation.
Also in 3 projects that use this
GeiserXSkillfull-loop
Drive a repository to done with sergio-loop, then keep improving it with refine-loop at a descending theta. Use only when the user explicitly invokes full-loop.
Also in 3 projects that use this
- +1 more from mrdulasolutions
- +3 more from GeiserX
- +1 more from yaohuangguan
Other versions78 projects use a version of this.
Word for word · 1
- mgiovani/cc-arsenal★ 8100% same
Edited · 0
None found.
Wrote their own version · 77
- penpot/penpot★ 63ksame name
- pnpm/pnpm★ 37ksame name
- verdaccio/verdaccio★ 18ksame name
- NVIDIA-NeMo/DataDesigner★ 2.4ksame name
- OpenAEV-Platform/openaev★ 1.9ksame name
- bazel-contrib/rules_python★ 694same name
- wataru-maeda/react-native-boilerplate★ 521same name
- ankitvgupta/exo★ 494same name
- ankitvgupta/mail-app★ 494same name
- ninehills/skills★ 280same name
67 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 repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- anything-to-skillSkill
- ci-generateSkill
- ci-localSkill
- clotho-researchSkill
- codex-imagegenSkill
- create-ruleSkill
- create-skillSkill
- db-migrateSkill
- docker-initSkill
- docs-adrSkill
- docs-checkSkill
- docs-diagramSkill
- docs-initSkill
- docs-rfcSkill
- docs-updateSkill
- env-setupSkill
- find-skillsSkill
- fix-bugSkill
- git-commitSkill
- git-create-prSkill
- gitflowSkill
- git-releaseSkill
- git-syncSkill
- i18n-checkSkill
- implement-featureSkill
- improve-skillSkill
- inject-docsSkill
- jira-cliSkill
- motion-studioSkill
- optimize-ai-setupSkill
- orchestrateSkill
- oss-launchSkill
- prd-to-issuesSkill
- product-design-specSkill
- product-design-tokensSkill
- product-prdSkill
- project-illustratorSkill
- project-plannerSkill
- refactorSkill
- renderSkill
- review-depsSkill
- review-designSkill
- review-perfSkill
- review-planSkill
- review-securitySkill
- shipSkill
- stopslopSkill
- test-suiteSkill
- vrt-checkSkill
- wtfSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 67 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Every finding cites a file:line you read, pointing at the offending statement itself, not the block around it.
- Very specific: line 34
Every subagent call sets model explicitly: review, research and verify use sonnet, planning uses opus.
- Distinctive: line 108
Write the report in chat following references/report-template.md: lane-selection line, executive summary, severity and verdict statistics, …
- Distinctive: line 147
Does not modify code. For a deep standalone security, dependency, performance or design audit, use the matching sibling skill.
“Common” is measured: kept by at least 6 in 10 of the 67 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
Code Review
One review, adaptive lanes. The six core dimensions and the architecture lane always run. Security, deps, deep-performance and design/motion lanes join when the diff touches their area. Critical and Major findings are then attacked by a verifier before they reach the report.
Analysis only. Never edit code, commit, apply fixes, or run anything that mutates the repo. The report goes to chat. Run gh write commands (reviews, comments) only when the user explicitly asks to post.
Core rules
- Every finding cites a
file:lineyou read, pointing at the offending statement itself, not the block around it. No hypothetical issues, no estimated counts. - Review the diff, not the uncommitted working tree. Findings on changed lines are in-diff; findings on untouched lines of touched files are
preexisting. - Project rules (AGENTS.md, CLAUDE.md,
.claude/skills/*) are the style standard. A violation is a finding. Personal preference is not. - User context such as "another session is fixing X" is information, not an exclusion, unless the user says to exclude it.
- Strict by default: report every smell and rule violation, Nit included. Nothing is silently passed.
- Every subagent call sets
modelexplicitly: review, research and verify usesonnet, planning usesopus. Never leave it inherited, never usehaiku.
Workflow
Copy this checklist and tick each step. Do not start a step before the previous gate holds.
- [ ] 0. Scope: diff retrieved, file list and hunk ranges known (gate: non-empty diff)
- [ ] 1. Discovery: stack and project rules extracted into a numbered list (gate: list written)
- [ ] 2. Lane selection: lanes chosen with a one-line reason each (gate: printed)
- [ ] 3. Fan-out: all lane agents launched in ONE parallel batch (gate: all findings files written)
- [ ] 4. Consolidate: merged, deduplicated, routed to the right dimension
- [ ] 5. Verify: Critical/Major findings attacked, REJECTED dropped (gate: every survivor has a verdict)
- [ ] 6. Report: written in chat from the template
- [ ] 7. Post: ONLY if the user explicitly asked0. Scope
Parse arguments: a PR number (123, #123), a commit SHA, --all or none (whole codebase), and --focus <value>.
gh pr diff <pr> # PR
git fetch origin <base> && git diff origin/<base>...HEAD # fallback when gh fails (e.g. diff too large)
git show <sha> # commitCreate a scratch dir with mktemp -d (never inside the repo) and save the diff to <scratch>/pr.diff. Take the changed-file list from the same diff. From each hunk header @@ -a,b +c,d @@, the new-side range is lines c to c+d-1; anything outside those ranges is pre-existing. Re-reviewing after fixes is just a rerun: the diff is re-derived.
1. Discovery
Read the root and nested AGENTS.md / CLAUDE.md and .claude/skills/*. Turn every rule into a numbered checklist (comment policy, strict typing, file-size limits, empty __init__, no manual memo under React Compiler, and so on). This list goes into every agent prompt. Note the languages, frameworks and test setup.
2. Lane selection
| Lane | Findings file | Runs when the change touches | Prefix |
| core (agents 1-6) | core-<prefix>.json per agent (core-cl, core-pf, core-cs, core-tc, core-eh, core-oe) | always | CL PF CS TC EH OE |
| architecture (agent 7) | architecture.json | always | AP |
| security-fe | security-fe.json | UI, client auth, storage, cookies, CSP | SEC |
| security-be | security-be.json | server code, auth, config, IaC, CI | SEC |
| deps | deps.json | a manifest or lockfile | DEP |
| perf-deep | perf-deep.json | DB, queries, hot loops, bundle or render paths | PF |
| design-motion | design-motion.json | UI, CSS, component files | DM |
With --all, run every lane that applies to the repo. With --focus, run only the matching lane. Print the chosen lanes with a one-line reason each, and a reason for each skipped lane. Lane prompts, sibling composition and installed-skill detection: references/lanes.md. Architecture lens: references/architecture-patterns.md.
3. Fan-out
Launch every selected lane in one parallel batch, explicit model on each call. Each agent gets the rule checklist, the diff scope, and the finding contract, and writes <scratch>/findings/<lane>.json as {"lane": "...", "findings": [...]}. Core agent prompts, grep patterns and the finding shape: references/agent-prompts.md.
Each agent: grep for patterns in scope, read each match to confirm it is real, quote 5-10 lines with file:line, explain why it matters, classify severity, give a concrete fix.
| Severity | Meaning |
| Critical | Data loss, crashes, security holes, incorrect business logic |
| Major | Significant reliability or performance harm, real maintainability risk |
| Minor | Readability, consistency, small inefficiencies |
| Nit | Cosmetic or optional |
Gate: a lane whose findings file is missing or invalid is re-run once. If it fails again, the report names the lane as failed instead of silently omitting it.
Sequential fallback: with no subagent tool, run the same lanes as sequential Grep+Read passes in table order, the verification pass last. Same prompts, same findings files, same gates.
4. Consolidate
Run uv run <skill-dir>/scripts/merge_findings.py --findings <scratch>/findings --diff <scratch>/pr.diff --out <scratch> to dedupe (same path, lines within 2, same dimension or same title). If it is unavailable, merge by hand with the same rules: one primary finding, the other agents' versions in a collapsed <details> block. Move praise and "resolved" notes out of findings into Positive Observations. Route a finding to its true dimension: an over-engineered function that is also buggy is a CL- finding, not OE-. If Agent 6 and Agent 7 disagree on the same code, keep the OE removal and drop the pattern suggestion.
5. Verify
Launch one adversarial verifier (sonnet) per batch of Critical/Major findings. It tries to disprove each, may run targeted read-only checks, and returns CONFIRMED / PLAUSIBLE / REJECTED with a corrected severity and a reason. Write each verdict, corrected severity and a new reason field back into the matching findings in <scratch>/findings/*.json, then re-run the merge script; the report and step 7 use that output (it drops REJECTED and renders Verification: <VERDICT> (<reason>)). A bug the user says they observed keeps its severity. Prompt, schema and rules: references/verification.md.
6. Report
Write the report in chat following references/report-template.md: lane-selection line, executive summary, severity and verdict statistics, findings by dimension, pre-existing bucket, prioritized actions, positive observations. Zero surviving findings still produce the report (lanes line, statistics, positive observations); with posting requested, post a body-only review.
7. Post (explicit request only)
Only when the user asks ("post it on the PR", --comment). Run the merge script, show a preview with the count of inline comments versus body items, then post ONE review. Flow, anchoring rules and comment style: references/github-review.md. Without an explicit request, run no gh write command.
Usage
review-code 123 # PR, lanes chosen from the diff
review-code abc123def # commit
review-code --all # whole codebase, every applicable lane
review-code 123 --focus security # narrow to one lane
review-code 123 --comment # also post the review to the PRFocus options
correctness, performance, style, tests and errors run the matching core agent, while architecture, deps and design (design-motion) run their own lane. security runs security-fe and security-be as applicable, and without --focus the lanes stay adaptive.
Simplicity lens (Agent 6)
LLM-written code over-engineers: interfaces with one implementation, factories for one product, forwarding wrappers. None is a bug, so the other agents miss it. Agent 6 flags it as OE- (Minor/Nit by default). Prompt and tags: references/agent-prompts.md.
Reference files
- references/agent-prompts.md: core agents 1-6, grep patterns, finding shape
- references/architecture-patterns.md: agent 7, pain-to-pattern table, over-engineering counter-check
- references/lanes.md: conditional lanes and the sibling skills they compose
- references/verification.md: verifier prompt, verdicts, drop rules
- references/report-template.md: report layout
- references/github-review.md: opt-in posting flow and comment style
scripts/merge_findings.py: dedupe, drop REJECTED, validate RIGHT-side anchors, emitmerged.jsonandreview-payload.json(--self-testavailable)
Limitations
- Static, pattern-based analysis: it cannot measure runtime impact, and some findings may be intentional design.
- Grep patterns lean toward C-like and Python syntax; adapt them for other languages.
- Verification may run read-only checks but never the full test suite or benchmarks.
- Does not modify code. For a deep standalone security, dependency, performance or design audit, use the matching sibling skill.
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.

