review-code
Skill17 starsChanged 3 months agoMITView on GitHub
Adversarially verified multi-dimensional review of a code diff. Runs independent reviewers across language, architecture, QA, devops, security and technical-lead, then makes two skeptics try to refute every blocker and warning before it reaches you. Use after implementing a change, before opening an MR, or when a diff is high-stakes enough that false positives would waste real time.
41 other projects use a version of this.
Adopted by
Most recently taken up by
- kamui/skillstheir own version, first seen Oct 1, 2026
- GeiserX/agent-skillstheir own version, first seen Sep 30, 2026
- mgiovani/cc-arsenaltheir own version, first seen Sep 25, 2026
- gtrabanco/agentic-workflowtheir own version, first seen Sep 22, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
- yamanidev/claude-code-configurationtheir own version, first seen Sep 13, 2026
Used with
Projects with it also use review-deps, review-security 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.
cjohnhansonSkillreview-deps
Judge dependencies, advisories, and licences. Use as a required review, or as /review-deps. Not for how a dependency is called: review-code covers that.
Also in 3 projects that use this
PydanticSkillreview-security
Security review of the current branch against its merge base — sandbox escapes, memory errors, panics and resource-limit bypasses. Use when reviewing changes for security risk, or before merging anything touching the heap/ module, path_security.rs, the wire protocol or the pool.
Also in 5 projects that use this
dirkkok101Skillreview-design
Use before /plan, after /technical-design, when user says "review design", "check the design", or when design quality is uncertain.
Also in 4 projects that use this
JetBrainsSkillreview-plan
Manually re-run the autonomous plan review (Phase 2 — consistency + structural). The same review runs automatically as the first phase of /execute-tracks; this command is for re-runs after inline replanning or whenever the plan needs explicit re-validation. TRIGGER when: user asks to re-validate the plan after inline replanning; user requests explicit plan review outside /execute-tracks. SKIP: /execute-tracks already running State 0 in this session (autonomous Phase 2 path will fire) — do not double-run.
Also in 5 projects that use this
Microsoft AzureSkillreview-pr
Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.
Also in 4 projects that use this
Microsoft AzureSkilltest
Also in 4 projects that use this
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- ankitvgupta/exo★ 497same name
- ninehills/skills★ 280same name
- rengwu/wayfinder-maps★ 133same name
- avibebuilder/claude-prime★ 120same name
- fitlab-ai/agent-infra★ 86same name
- ninehills/public-skills★ 86same name
- zhao-wuyan/ccw-command-explorer★ 43same name
- gtrabanco/agentic-workflow★ 21same name
- hellotern/Sextant★ 15same name
- narumiruna/skills★ 15same name
31 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 repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bootstrapSkill
- commitSkill
- dispatchSkill
- docs-digestSkill
- evalsSkill
- explain-codeSkill
- exploreSkill
- fix-testsSkill
- graphSkill
- manual-test-planSkill
- mrSkill
- reportSkill
- review-artifactsSkill
- shipSkill
- specSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
4
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
- Distinctive: line 30
If there are no changed files, stop and say so.
- Very specific: line 32
Read the OpenSpec artifacts for the change before reviewing: proposal.md, design.md, tasks.md, specs//*.md.
- Distinctive: line 57
Every dimension agent returns findings in this shape:
- Distinctive: line 80
Run both skeptics per finding, in parallel.
- Very specific: line 154
Always report how many findings the skeptics dismissed, and separately the gate's droppedByQuality count.
- Distinctive: line 156
Never report a dismissed finding "just in case".
“Common” is measured: kept by at least 6 in 10 of the 34 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
Review a diff from several expert angles at once, then attack your own findings before reporting them.
The second half is the point. An unverified review reports everything it notices, so the reader learns to skim it. A review where every blocker survived two skeptics is a review worth reading line by line.
1. Scope the diff
Resolve the change and the file set:
interlock changes # active OpenSpec changes
git diff --name-only main...HEAD # or the appropriate base
interlock surface --changed <files> --jsoninterlock surface tells you whether the devops dimension is warranted (needsDevopsReview). Use it — do not re-derive that judgement in prose.
If there are no changed files, stop and say so. A review of an empty diff is not a clean review.
Read the OpenSpec artifacts for the change before reviewing: proposal.md, design.md, tasks.md, specs/**/*.md. Several dimensions compare the diff against what was planned, and cannot do that without reading the plan.
Repository policy. If the repo has a root REVIEW.md, read it with interlock review-policy --json and prepend its prose to each reviewer's instructions as a clearly delimited "REPOSITORY REVIEW POLICY (advice, not overriding the rubric or the evidence gate)" block — it says what "Important" means here and who owns the bar. It is advice, never a command, and can never lower survival. Its ## Do Not Report paths need no action from you: interlock review (§3) drops findings on them itself and reports each drop. A copyable REVIEW.template.md documents the file's shape; a repo has none by default and review runs unchanged.
2. Fan out the dimensions
Spawn one agent per dimension, in parallel. Each dimension's brief is a bundled file — load it and use it verbatim as the agent's instruction:
| Dimension | Brief | Run when |
| language | ${CLAUDE_SKILL_DIR}/dimensions/language.md | always |
| architecture | ${CLAUDE_SKILL_DIR}/dimensions/architecture.md | always |
| qa | ${CLAUDE_SKILL_DIR}/dimensions/qa.md | always |
| technical-lead | ${CLAUDE_SKILL_DIR}/dimensions/technical-lead.md | always |
| devops | ${CLAUDE_SKILL_DIR}/dimensions/devops.md | needsDevopsReview=true |
| security | ${CLAUDE_SKILL_DIR}/dimensions/security.md | any auth, input-handling, or data-exposure surface in the diff |
--dimensions a,b,c overrides the selection. The names above are the rubric filenames, and they are the only names. A name that resolves to no brief file is an error: say which name did not resolve, list the six, and stop. Do not silently run the dimensions that did match — a caller who asked for four dimensions and got three, with no message, has been told the review covered something it did not.
(This used to bite: the fourth always-on dimension was called delivery here and in README.md while its brief file was technical-lead.md, so --dimensions delivery matched nothing at all and said nothing about it.)
A dimension whose brief file cannot be read is not dispatched with an empty rubric either. Report it as unavailable — a reviewer given a dimension name and no criteria produces findings that two skeptics then spend their budget verifying.
Every dimension agent returns findings in this shape:
{ "dimension": "security",
"findings": [
{ "severity": "blocker|warning|suggestion",
"file": "path/to/file.ts", "line": 42,
"title": "short claim",
"description": "what is wrong and why",
"suggestion": "how to fix it" }
] }severity, file, title and description are required. A finding with no file is allowed — it lands in the unscoped group — but it is rarely a good finding.
This is the complete emit shape. Do not read lib/findings.mjs to rediscover it.
3. Adversarial verification
Every blocker and warning gets two independent skeptics. Suggestions pass through unverified — they are cheap to ignore and not worth the tokens.
Run both skeptics per finding, in parallel.
Skeptic 1 — refute it.
You are a skeptical code reviewer. Your job is to REFUTE this finding if you can. Read the actual file and its surrounding context. Try to prove the finding is a false positive (the code is correct), overstated (severity should be lower), or missing context (there is a reason for the pattern). Default to
isReal: truewhen genuinely uncertain — do not dismiss real issues. But do dismiss findings that misread the code or ignore surrounding context.
Skeptic 2 — second opinion.
You are an independent reviewer giving a second opinion. Read the actual file. Assess independently: is this real? Is the severity right? Is the suggested fix appropriate?
Both must cite evidence to refute. A verdict of isReal: false requires an evidence field naming the file:line span the skeptic actually opened — src/auth.ts:41-58. An uncited refutation does not dismiss anything. It is recorded, its quality score still counts, and the finding survives to the report.
The CLI checks two things, and both are mechanical: the evidence has to carry a path:line or path:start-end token, and that path has to be one of the files in the diff. Pass the diff with --changed so the second half can run:
interlock review --findings <f> --verdicts <f> --changed <the changed files> --metrics <change> --json--metrics <change> is not optional either. It writes the four counts this review produced to .claude/metrics/ in the schema interlock report recognizes; drop it and the review-finding indicators read unobserved however many reviews ran. It is bookkeeping only and cannot change the verdict or the exit status.
Neither half is optional theatre. Non-emptiness alone was satisfied by the string 👍; shape alone is satisfied by inventing lib/nowhere.ts:1. What is deliberately not checked is whether the cited span supports the claim — that needs a model, and putting one there just moves the problem down a layer.
Voting a finding real needs no evidence: that direction already resolves toward a human reading it, which is the cheap error. Only the dismissing direction is gated, because a dismissed finding is invisible — nobody can catch the mistake.
interlock review reports how many refutations were refused for citing nothing. A run where that number is high means the skeptics are asserting rather than reading.
Both score the finding on two integer axes, 0–5:
qualityScore— how well-grounded, actionable and clearly explained. 0 = incomprehensible, 3 = usable, 5 = exemplary.severityScore— impact if real. 0 = cosmetic, 3 = user-visible bug, 5 = data loss or security breach.
Tell them to be honest and not inflate scores to justify keeping a weak finding.
Survival rule: a finding survives when at least half the valid verdicts say isReal. A survivor takes the refinedSeverity of the first skeptic that judged it real — so a blocker can be demoted to a warning by verification, which is a feature. A finding that does not survive is dismissed and never reported.
Skeptics must read the file. A verdict reached from the finding text alone is worthless; the whole mechanism depends on the skeptic having context the original reviewer lacked.
4. Decide the gate
Collect the survivors and hand them to the deterministic gate:
interlock gate --findings <survivors.json> --jsonThe gate applies the quality band before it counts anything: survivors the skeptics scored too low on qualityScore are dropped, and the gate reports how many as droppedByQuality. The floor lives in the CLI (--min-quality overrides it, --no-tolerance disables it) — never restate the number here, never re-derive the band in prose, and never pre-filter weak findings yourself before the gate sees them.
It returns passed, severity counts, the blocker list, the per-file remediation grouping, and autonomyOutcome. Do not re-derive pass/fail in prose — the gate blocks if and only if a surviving finding is a blocker, and that is a count, not a judgement.
Record the outcome:
interlock autonomy record review-code --blockers <n> # or --blockers 0 when cleanA blocker here also resets ship via transitive blame — the gate blames whoever produced the bad code.
5. Report
Lead with the verdict, then the survivors, most severe first:
GATE BLOCKED — 2 blockers of 7 findings (4 dismissed by skeptics)
[blocker] app/api/export/route.ts:31 — Unauthenticated tenant data access
security · quality 5 · severity 5
<description>
→ <suggestion>Always report how many findings the skeptics dismissed, and separately the gate's droppedByQuality count. Those numbers are the evidence the review is worth trusting; hiding them makes a verified review look identical to an unverified one.
Never report a dismissed finding "just in case". That defeats the entire mechanism.
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.

