code-review
Skill0 starsChanged 57 days agoMITView on GitHub
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (documented repo conventions + layered risk checklist + code smells) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents with diff noise triage 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
- canonical/mirtheir own version, first seen Nov 30, 2026
- dotnet/machinelearningtheir own version, first seen Nov 30, 2026
- canonical/multipasstheir own version, first seen Nov 29, 2026
- Forget-C/Jellyfishedited, first seen Nov 29, 2026
- ceph/cephtheir own version, first seen Nov 29, 2026
- dotnet/aspnetcoretheir own version, first seen Nov 29, 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 use when Anthropic, OpenAI or Google deprecates or retires a model, to update the deprecation tables.
Also in 10 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
- +3 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 14
- mattpocock/skills★ 335k33% same
- QuivrHQ/quivr★ 40k29% same
- The-Vibe-Company/quivr★ 40k29% same
- formbricks/formbricks★ 13k33% same
- mdiri-ai/SoduWork★ 9.1k26% same
- Forget-C/Jellyfish★ 7.5k30% same
- ArcReel/ArcReel★ 6.8k33% same
- withcoral/coral★ 5k33% same
- bestofjs/bestofjs★ 3.1k29% same
- bamlab/flashlight★ 1.6k33% same
4 more not listed
Wrote their own version · 180
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- ggml-org/llama.cpp★ 137ksame name
- supabase/supabase★ 116ksame name
- storybookjs/storybook★ 92ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 64ksame name
- dbeaver/dbeaver★ 53ksame 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 repository41 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architectSkill
- arenaSkill
- ask-skillsSkill
- benchmark-checklistSkill
- blast-radiusSkill
- chief-of-staffSkill
- create-verification-skillSkill
- dashboard-uiSkill
- diagnosing-bugsSkill
- docsSkill
- domain-modelingSkill
- git-flowSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- i-have-adhdSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- maintain-verification-skillSkill
- no-commentsSkill
- prototypeSkill
- researchSkill
- retroSkill
- security-auditSkill
- setup-skillsSkill
- setup-ts-deep-modulesSkill
- software-factorySkill
- tddSkill
- teachSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- typescript-best-practicesSkill
- unslopSkill
- wayfinderSkill
- wizardSkill
- writing-atomic-notesSkill
- writing-flashcardsSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
3
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 52
Look for the originating spec, in this order:
- Distinctive: line 57
If nothing is found, ask the user where the spec is.
- Very specific: line 63
Search the repo for every file that documents how code should be written, including AGENTS.md, CLAUDE.md, docs/standards/, and any …
- Distinctive: line 106
If the spec is missing, skip the Spec sub-agent and note this in the final report.
- Very specific: line 112
If generated OpenAPI/type files (openapi.json, api-schema.d.ts) changed, inspect the generated TypeScript types using the Generated …
- Very specific: line 114
If the diff modifies shared interfaces, schemas, DTOs, exported contracts, or cross-layer invariants, invoke /blast-radius to identify the …
“Common” is measured: kept by at least 6 in 10 of the 186 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 (code-review)
Two-axis, risk-layered review of the diff between HEAD and a fixed point the user supplies:
- Standards: does the code conform to this repo's documented coding standards, layered risk checklist, and baseline code smells?
- Spec: does the code faithfully implement the originating issue / spec?
Both axes run as parallel sub-agents so they don't pollute each other's context, followed by a targeted spot-check on any generated contracts. Start every sub-agent with a fresh context window.
The issue tracker should have been provided to you. If not, tell the user to run /setup-skills.
Process
1. Pin the fixed point & triage diff noise
Whatever the user said is the fixed point, a commit SHA, branch name, tag, main, HEAD~5, etc. If they didn't specify one, ask for it before spawning sub-agents.
Confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. Collect the commit list and --stat overview once:
git log <fixed-point>..HEAD --oneline
git diff --stat <fixed-point>...HEADSeparate generated noise from hand-written code so large PRs do not flood sub-agent context:
- Generated / Snapshot artifacts (
**/openapi.json,**/api-schema.d.ts,**/snapshot.json,bun.lock,package-lock.json,pnpm-lock.yaml,*.generated.*): exclude from the primary diff passed to sub-agents, and reserve for Step 5 contract spot-checking. - Primary diff command for sub-agents:
git diff <fixed-point>...HEAD -- . \
':!**/openapi.json' \
':!**/api-schema.d.ts' \
':!**/snapshot.json' \
':!bun.lock' \
':!package-lock.json' \
':!pnpm-lock.yaml'Completion criterion: Fixed point verified, commit list + --stat captured, and generated artifacts excluded from the primary review diff.
2. Identify the spec source
Look for the originating spec, in this order:
- Issue references in the commit messages (
#123,Closes #45,Resolves: #45, GitLab!67), fetch via the workflow in the tracker doc. - A path the user passed as an argument.
- A spec, ADR, or RFC file under
docs/,specs/, or.scratch/matching the branch name or feature. - If nothing is found, ask the user where the spec is. If they say there isn't one, the Spec sub-agent will skip and report "no spec available".
Completion criterion: Spec path or fetched issue body resolved, or explicitly confirmed absent.
3. Identify the standards sources & baseline
Search the repo for every file that documents how code should be written, including AGENTS.md, CLAUDE.md, docs/standards/, and any CODING_STANDARDS.md or CONTRIBUTING.md. When CODING_STANDARDS.md or CONTRIBUTING.md exists, it must be on the list.
On top of whatever the repo documents, the Standards axis carries references/layered-risk-checklist.md and the smell baseline below (Fowler, Refactoring, ch.3). Three 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 skip anything tooling (
oxlint,eslint,tsc, formatters) already enforces. - Verify before reporting. Inspect full surrounding context for every candidate defect to eliminate false positives.
Fowler smell baseline:
- Mysterious Name: unclear name → rename; if none comes, design is murky.
- Duplicated Code: same logic shape recurs → extract shared helper.
- Feature Envy: method reaches into another object's data → move onto that data.
- Data Clumps: same fields travel together → bundle into one type.
- Primitive Obsession: raw primitive/string for domain concept → give it a type.
- Repeated Switches: same
switch/if-cascade recurs → polymorphism or shared map. - Shotgun Surgery: one logical change scatters edits → gather into one module.
- Divergent Change: one module edits for unrelated reasons → split by responsibility.
- Speculative Generality: unused abstraction/hooks → delete/inline.
- Message Chains: long
a.b().c().d()chains → encapsulate on first object. - Middle Man: thin forwarding wrapper → call target direct.
- Refused Bequest: subclass ignores inherited interface → use composition.
Completion criterion: Repo standards sources, layered risk checklist, and smell baseline assembled.
4. Spawn both sub-agents in parallel (Bottom-Up, Find -> Verify -> Report)
Issue both sub-agent calls together, in the foreground, and aggregate the reports they return.
Instruct both sub-agents to inspect files bottom-up by dependency layer (Backend: 1. Data/Migrations/Projections → 2. Boundaries/DTOs/Guards/Filters → 3. Controllers → 4. Services/Concurrency/Transactions → 5. Tests; Frontend: UI-1 Tokens/Assets → UI-2 Primitives/Shells → UI-3 Rendering/Trust Boundaries → UI-4 Error Recovery/Navigation/A11y → UI-5 UI Tests):
Standards sub-agent prompt, include:
- The excluded primary diff command,
--stat, and commit list. - The list of standards-source files from step 3, references/layered-risk-checklist.md, and the smell baseline.
- The brief: "Do not invoke
/code-reviewor spawn additional agents, perform this review directly. Inspect modified files bottom-up (Backend Layer 1 to Layer 5; Frontend UI-1 to UI-5). Verify every candidate finding against full surrounding file context before reporting. Report, grouped by layer, (a) hard violations (documented-standard breaches, security/concurrency/contract defects: cite standard/checklist item and exact file/symbol/lines) and (b) judgement calls (baseline smells: name it and quote the hunk). Check Blast Radius on unmodified callers of changed interfaces. Skip anything tooling enforces. Keep concise bullets; target under 400 words for <=15 hand-written files, or compact bullets per finding for larger diffs."
Spec sub-agent prompt, include:
- The excluded primary diff command,
--stat, and commit list. - The path or fetched contents of the spec.
- The brief: "Do not invoke
/code-reviewor spawn additional agents, perform this review directly. Inspect bottom-up against spec requirements, invariants, authorization matrix, state transitions, and edge cases. Verify each candidate finding in full file context before reporting: (a) missing or partial requirements; (b) scope creep outside the spec; (c) requirements whose implementation or error/response contract mismatches the spec. Quote the spec line for each finding."
If the spec is missing, skip the Spec sub-agent and note this in the final report.
Completion criterion: Parallel axis reports received (or Spec skipped with reason).
5. Generated Contract Spot-Check, Blast Radius & Aggregate
If generated OpenAPI/type files (openapi.json, api-schema.d.ts) changed, inspect the generated TypeScript types using the Generated Contract Spot-Check in references/layered-risk-checklist.md rather than reading raw OpenAPI JSON.
If the diff modifies shared interfaces, schemas, DTOs, exported contracts, or cross-layer invariants, invoke /blast-radius to identify the key safety invariant and prove it by running code rather than relying on grep alone.
Present the reports separately under ## Standards, ## Spec, and ## Generated Contract & Blast Radius (when applicable). Do not merge or rerank findings across axes.
End with a per-axis count and the worst issue within each axis (if any).
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.

