code-review
Skill0 starsChanged 3 months agoMITView on GitHub
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
194 other projects use a version of this, 14 of them edited.
Adopted by
Most recently taken up by
- dzhng/skillstheir own version, first seen Nov 15, 2026
- mdiri-ai/SoduWorkedited, first seen Nov 15, 2026
- sirkirby/unifi-mcptheir own version, first seen Nov 13, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- oceanbase/seekdbtheir own version, first seen Nov 12, 2026
- dzhng/jevgreptheir own version, first seen Nov 11, 2026
Used with
Projects with it also use close-spec, design-with-images 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.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
PydanticSkilladd-new-model
Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.
Also in 9 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 5 projects that use this
Microsoft AzureSkillazsdk-common-apiview-feedback-resolution
Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.
Also in 6 projects that use this
Microsoft AzureSkillazsdk-common-generate-sdk-locally
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
Also in 6 projects that use this
- +4 more from dzhng
- +2 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 14
- mattpocock/skills★ 325k74% same
- QuivrHQ/quivr★ 40k78% same
- The-Vibe-Company/quivr★ 40k78% same
- formbricks/formbricks★ 13k75% same
- ArcReel/ArcReel★ 6.6k75% same
- vinvcn/mattpocock-skills-zh-CN★ 5.8k17% same
- withcoral/coral★ 4.9k75% same
- bestofjs/bestofjs★ 3.1k79% same
- NeptuneHub/AudioMuse-AI★ 2.9k10% same
- mdiri-ai/SoduWork★ 93070% same
4 more not listed
Wrote their own version · 180
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 195ksame name
- github/spec-kit★ 150ksame name
- ggml-org/llama.cpp★ 135ksame name
- supabase/supabase★ 115ksame name
- storybookjs/storybook★ 92ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- vectorize-io/hindsight★ 61ksame name
- dbeaver/dbeaver★ 52ksame name
170 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 repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- codebase-designSkill
- commission-method-gap-researchSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grillingSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- improve-codebase-architectureSkill
- method-gap-research-statusSkill
- prototypeSkill
- refactor-skillSkill
- research-briefSkill
- researchSkill
- setup-matt-pocock-skillsSkill
- skill-evidence-captureSkill
- skill-evolutionSkill
- skill-evolution-statusSkill
- tddSkill
- teachSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- writing-great-skillsSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 183 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Use the fixed point supplied by the user or invoking workflow — a commit SHA, branch name, tag, main, HEAD~5, etc.
- Very specific: line 23
Before going further, confirm both values resolve as commits (git rev-parse <value>^{commit}), record reviewed_head_sha, and confirm the …
- Distinctive: line 32
If nothing is found or the candidates conflict, ask the user which source is authoritative.
- Very specific: line 64
Every reviewer packet must name reviewed_head_sha, use only the pinned diff and commit list from step 1, and require the axis report to …
- Distinctive: line 85
If the spec is missing, skip the Spec sub-agent and note this in the final report.
- Very specific: line 87
After all launched reviewers return, verify that git rev-parse HEAD^{commit} still equals reviewed_head_sha.
- Distinctive: line 95
When the ledger is present, use this exact schema:
“Common” is measured: kept by at least 6 in 10 of the 183 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
Two-axis review of the diff between HEAD and a fixed point supplied by the user or invoking workflow:
- Standards — does the code conform to this repo's documented coding standards?
- Spec — does the code faithfully implement the originating issue / PRD / spec?
Both axes run as parallel sub-agents so they don't pollute each other's context, then this skill aggregates their findings.
The issue tracker should have been provided to you — if docs/agents/issue-tracker.md is missing, tell the user to run the setup-matt-pocock-skills skill.
Process
1. Pin the fixed point
Use the fixed point supplied by the user or invoking workflow — a commit SHA, branch name, tag, main, HEAD~5, etc. Record which source supplied it. If neither supplies one, or the supplied value is ambiguous, ask the user rather than choosing.
Resolve both endpoints once and record their exact commit SHAs: resolve the supplied fixed point as fixed_point_sha, and resolve HEAD as reviewed_head_sha. Build every review input from those captured SHAs: git diff <fixed-point-sha>...<reviewed-head-sha> (three-dot, so the comparison is against the merge-base) and git log <fixed-point-sha>..<reviewed-head-sha> --oneline. Never leave a symbolic HEAD in a reviewer command after capture.
Before going further, confirm both values resolve as commits (git rev-parse <value>^{commit}), record reviewed_head_sha, and confirm the pinned diff is non-empty. A bad ref or empty diff should fail here — not inside two parallel sub-agents.
2. Identify the spec source
The user or invoking workflow may supply an authoritative spec source directly; record its provenance and use it without reopening the caller's selection. Otherwise, look for the originating spec in this order:
- Issue references in the commit messages (
#123,Closes #45, GitLab!67, etc.) — fetch via the workflow indocs/agents/issue-tracker.md. - A path the user passed as an argument.
- A PRD/spec file under
docs/,specs/, or.scratch/matching the branch name or feature. - If nothing is found or the candidates conflict, ask the user which source is authoritative. If they say there isn't one, the Spec sub-agent will skip and report "no spec available".
3. Identify the standards sources
Build and record the applicable standards-source list before launching review. Always inspect the repository's root agent instructions (AGENTS.md and/or CLAUDE.md, when present); use the changed paths, artifact type, and caller context to identify domain- or authoring-specific standards; then add general repository standards such as CODING_STANDARDS.md or CONTRIBUTING.md. Record every applicable source. If the search finds none beyond any root instructions and the smell baseline, record no additional applicable standard.
In embedded use, active invoking-workflow contracts and retained implementation evidence are applicable standards sources whenever they constrain changed artifacts. Include the current /tdd contract when changed tests or TDD evidence are in scope, the current /implement contract for repair/review handoff, and the caller-selected run sheet or evidence ledger when it defines agreed seams, commands, or evidence fields. Point to the owning workflow contract instead of copying its schema, and treat these materials as standards/process inputs rather than substitutes for the product spec.
On top of whatever the repo documents, the Standards axis always carries the smell baseline below — a fixed set of Fowler code smells (Refactoring, ch.3) that applies even when a repo documents nothing. Two rules bind it:
- The repo overrides. A documented repo standard always wins; where it endorses something the baseline would flag, suppress the smell.
- Always a judgement call. Each smell is a labelled heuristic ("possible Feature Envy"), never a hard violation — and, like any standard here, skip anything tooling already enforces.
Each smell reads what it is → how to fix; match it against the diff:
- Mysterious Name — a function, variable, or type whose name doesn't reveal what it does or holds. → rename it; if no honest name comes, the design's murky.
- Duplicated Code — the same logic shape appears in more than one hunk or file in the change. → extract the shared shape, call it from both.
- Feature Envy — a method that reaches into another object's data more than its own. → move the method onto the data it envies.
- Data Clumps — the same few fields or params keep travelling together (a type wanting to be born). → bundle them into one type, pass that.
- Primitive Obsession — a primitive or string standing in for a domain concept that deserves its own type. → give the concept its own small type.
- Repeated Switches — the same
switch/if-cascade on the same type recurs across the change. → replace with polymorphism, or one map both sites share. - Shotgun Surgery — one logical change forces scattered edits across many files in the diff. → gather what changes together into one module.
- Divergent Change — one file or module is edited for several unrelated reasons. → split so each module changes for one reason.
- Speculative Generality — abstraction, parameters, or hooks added for needs the spec doesn't have. → delete it; inline back until a real need shows.
- Message Chains — long
a.b().c().d()navigation the caller shouldn't depend on. → hide the walk behind one method on the first object. - Middle Man — a class or function that mostly just delegates onward. → cut it, call the real target direct.
- Refused Bequest — a subclass or implementer that ignores or overrides most of what it inherits. → drop the inheritance, use composition.
4. Launch both sub-agents in parallel
When both axes are available, use the active client's sub-agent surface to launch isolated Standards and Spec reviewers concurrently. Preserve the two distinct prompts below. If the client requires separate launch calls, start both before awaiting either; client-specific tool names or sub-agent types are examples for that client, not part of this skill's contract.
Every reviewer packet must name reviewed_head_sha, use only the pinned diff and commit list from step 1, and require the axis report to open with Reviewed HEAD: <reviewed-head-sha>.
Every reviewer packet must also require each actionable finding to end with Repair class: observable behavior | behavior-neutral and TDD re-entry required: yes | no. Set the latter to yes whenever satisfying the finding requires changing observable behavior; otherwise set it to no. These fields classify and route findings only: /tdd and /implement retain ownership of red → green and repair mechanics, and reviewers must not edit.
Before dispatch, allocate and record one review_pass_id (R1, R2, ...) that is unique and monotonically increasing within the implementation workflow. Never reuse an allocated pass ID, including after discarding a pass because HEAD moved. Give every launched axis reviewer that ID and the retained list of prior unresolved findings for its axis. Require each axis report to open with Review pass: <review-pass-id> immediately after its Reviewed HEAD line.
Require every new actionable finding to carry Finding ID: <review-pass-id>-standards-<ordinal> or Finding ID: <review-pass-id>-spec-<ordinal>, with the ordinal assigned in axis-report order. Once emitted, the finding ID is immutable: a later pass retains it only for the same unresolved finding, while every distinct later finding receives a new ID even when it concerns the same seam, test, or evidence row. Never rename an earlier finding or extend it to absorb a later one. Keep the finding ID and routing fields together when returning the finding; /tdd retains ownership of downstream review-reentry reconciliation.
Standards sub-agent prompt — include:
- The exact reviewed HEAD SHA, pinned full diff command, and pinned commit list.
- The complete standards-source list from step 3, including any active workflow contracts and retained run sheet/evidence, plus the smell baseline from step 3 pasted in full. Include both the selected-source list and the baseline even if the reviewer inherits context or can read the filesystem, so its prompt is self-contained and applies the exact inputs this run selected.
- Two coverage lines immediately after
Review pass:Standards sources checked: <each selected standards-source path/name>; smell baselineandWorkflow evidence checked: <applicable workflow source -> retained evidence row or identity>(orWorkflow evidence checked: N/A). ANo actionable findingsreport still owes both lines.N/Ais valid only when no workflow source selected in step 3 constrains changed tests or evidence. - The brief: "Report — per file/hunk where relevant — (a) every place the diff violates a documented standard: cite the standard (file + the rule); (b) any baseline smell you spot: name it and quote the hunk; and (c), where workflow sources constrain tests or evidence, whether changed tests and evidence rows honor the agreed seams, runnable commands, and evidence fields: cite the workflow source and quote the changed hunk or row. Distinguish hard violations from judgement calls — documented-standard breaches can be hard, but baseline smells are always judgement calls, and a documented repo standard overrides the baseline. Skip anything tooling enforces. Under 400 words."
Spec sub-agent prompt — include:
- The exact reviewed HEAD SHA, pinned diff command, and pinned commit list.
- The path or fetched contents of the spec.
- The brief: "Report: (a) requirements the spec asked for that are missing or partial; (b) behaviour in the diff that wasn't asked for (scope creep); (c) requirements that look implemented but where the implementation looks wrong. Quote the spec line for each finding. Under 400 words."
If the spec is missing, skip the Spec sub-agent and note this in the final report.
After all launched reviewers return, verify that git rev-parse HEAD^{commit} still equals reviewed_head_sha. If HEAD moved, discard every axis report from that pass and restart at step 1 against newly captured endpoints; never combine reports produced against different trees.
5. Aggregate
Present the two reports under ## Standards and ## Spec headings, verbatim or lightly cleaned, retaining each report's Reviewed HEAD: <reviewed-head-sha> line. Do not merge or rerank findings — the two axes are deliberately separate (see Why two axes).
After the two axis reports, add ## Findings fixed during review. If an earlier pass in the same implementation workflow found issues that were repaired before this rerun, record each finding's axis, original finding, repair class, whether TDD re-entry was required, repair, rerun-reviewed HEAD SHA, and rerun evidence; otherwise write None. A green rerun reports no residual findings, not that no findings were ever found. In embedded use, return the ledger and routing fields to the invoking workflow; /implement remains the owner of repair and rerun mechanics, and /tdd owns any required review-reentry cycle.
When the ledger is present, use this exact schema:
| Review pass | Finding ID | Axis | Original finding | Repair class | TDD re-entry required | Repair | Rerun-reviewed HEAD SHA | Rerun evidence |
Before handoff, run an aggregate-conformance gate. Build the set of every actionable finding ID emitted across all retained passes and compare it in both directions with the union of IDs in the final residual axis reports and the fixed-during-review ledger; both differences must be empty. Require every fixed row to populate every schema cell, preserve the finding's original axis, text, repair class, and TDD routing, and use the final reviewed_head_sha as its rerun-reviewed SHA. Require every launched final axis report, every fixed row, and the one-line summary to name that same reviewed SHA. None is valid only when the pass census contains no finding that was fixed before the final report. If any identity is missing, duplicated with conflicting content, renamed, or absorbed into another finding, or any required value is absent, the review is not green and must not be handed off.
For every launched final Standards report, parse Standards sources checked and compare its source entries in both directions with step 3's selected standards-source list; both differences must be empty, and the line must also name the smell baseline. When a selected workflow source constrains tests or evidence, require Workflow evidence checked to name that source and the retained evidence row or identity it checked; accept N/A only when none applies. These checks also bind a report with no actionable findings. A missing or incomplete coverage line makes the Standards report incomplete: discard it and rerun that axis before handoff.
End with a one-line summary naming the reviewed HEAD SHA, residual findings per axis, the worst residual issue within each axis (if any), whether every actionable finding carries its stable identity and both routing fields, whether the aggregate-conformance gate passed, and whether the fixed-during-review ledger is None or present. Don't pick a single winner across axes — that's the reranking the separation exists to prevent.
Why two axes
A change can pass one axis and fail the other:
- Code that follows every standard but implements the wrong thing → Standards pass, Spec fail.
- Code that does exactly what the issue asked but breaks the project's conventions → Spec pass, Standards fail.
Reporting them separately stops one axis from masking the other.
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.

