code-review
Skill8 starsChanged 4 months agoMITView on GitHub
Review a diff or PR against my conventions — Result not throw, vertical slices, AItError codes, node:test, Biome, entity normalisation, a11y. Findings are triaged by severity (correctness → conventions → polish), not piled in a flat list. Use when reviewing a diff, reviewing a PR before merge, self-reviewing before opening a PR, or when user says "review this", "review the diff", "code review", or invokes `/code-review`.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- doggy8088/spec-kittheir own version, first seen Nov 9, 2026
- strelov1/freehiretheir own version, first seen Nov 9, 2026
- storybookjs/storybooktheir own version, first seen Nov 8, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Nov 8, 2026
- supabase/supabasetheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 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 · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 309ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 195ksame name
- github/spec-kit★ 149ksame name
- ggml-org/llama.cpp★ 134ksame name
- supabase/supabase★ 115ksame name
- storybookjs/storybook★ 91ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 60ksame name
184 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 repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cavemanSkill
- fastify-oramaSkill
- grill-me-mateoSkill
- improve-codebase-archSkill
- production-observabilitySkill
- prototypingSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- write-a-skillSkill
- zoom-outSkill
- entity-normalizationSkill
- fastify-plugin-shapeSkill
- node-native-testsSkill
- result-not-throwSkill
- setup-mateonunez-skillsSkill
- single-tool-per-jobSkill
- vertical-slicesSkill
- grill-with-docsSkill
- a11y-default-reviewSkill
- types-first-guardsSkill
- aitSkill
- colemak-pair-programmingSkill
- disk-sweepSkill
- feature-flowSkill
- fleet-watchSkill
- mateonunez-coSkill
- conventional-commits-scopedSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 184 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Don't review the diff in isolation.
- Distinctive: line 72
If the change is correct and convention-clean, polish is the whole review — and a short one.
- Distinctive: line 109
Inventing house rules: Every convention finding cites an existing skill or ADR.
- Distinctive: line 116
Stop the review. Surface it as "blocked on decision" with a verdict at the top, and call out which skill or ADR it conflicts with.
“Common” is measured: kept by at least 6 in 10 of the 184 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
If it doesn't hold up in production, it doesn't make the cut.
Flat review piles — twelve nits next to one architectural break, all the same bullet weight — waste my time. Worse, agents review by aesthetics: rename suggestions, comment polish, "consider extracting" — while a throw in business logic or a cross-feature internal import sails through.
This skill is a review pass anchored on my other skills. It triages findings by severity, grounds them in CONTEXT.md and docs/adr/, and refuses to flag style when correctness is broken.
This is a review skill, not a teaching skill. It assumes you've read the rest of my engineering skills; it tells you when to invoke which.
When this skill is active
You are about to:
- Review an open PR (mine or someone else's)
- Self-review a diff before opening a PR
- Audit a recent change (
git diff <base>..HEAD,gh pr diff, staged changes) - Respond to "review this", "review the diff", "what do you think of this change?"
This is not the skill for whole-repo architectural review — that's improve-codebase-arch. This is for a bounded set of changes.
Phase 1 — Ground yourself
Don't review the diff in isolation. Spend two minutes on context first.
- Read
CONTEXT.mdif you don't already know the domain vocabulary. - Skim
docs/adr/for ADRs in the touched area. A change that contradicts an ADR is a finding, not a nit. - Scan the diff once end-to-end before commenting on any line. You're looking for the shape, not the typos.
- If a PR description exists, read it. A finding that the PR description already addresses is not a finding.
Phase 2 — Triage by severity
Findings land in one of three buckets. Report them in this order, never flat.
1. Correctness (must-fix)
The change is wrong, will break, or will silently corrupt state.
- Logic bug — off-by-one, wrong branch, swapped args.
- Race condition, missing
await, unhandled promise rejection. - Type lies —
as any,!non-null on aResult,as unknown as Tsmuggling. - Boundary leak — secrets in logs, PII in URLs, user input flowing into a query without escaping.
- Missing test for a non-trivial code path. Bugs hide where tests don't reach — see
tdd. - Migration that isn't reversible / isn't safe under concurrent writes.
2. Convention drift (should-fix, anchored on my skills)
The change works but breaks a house rule. Each finding cites the skill it violates.
- Throws in business logic. Service/domain code must return
Result<T, E>. Seeresult-not-throw. - New
AItErrorcode invented when the catalogue covers it. Reuse existing codes (USER_NOT_FOUND,DB_ERROR,RATE_LIMIT, …) before adding. - Cross-feature import that bypasses the package's public API. Boundary is fake. See
vertical-slices. - New file dumped in
shared/orutils/with one caller. Inline it. Wait for the third caller. - Vendor payload going straight to the DB or downstream code. Normalise at the boundary. See
entity-normalization. jest,vitest,eslint,prettier,ts-jestadded topackage.json. Use the runtime + Biome. Seenode-native-testsandsingle-tool-per-job.- Fastify plugin without
fp()wrapper / idempotency guard / decorator. Seefastify-plugin-shape. - Boundary code missing error telemetry / request context / queue visibility. See
production-observability. - Domain IDs typed as bare
string. Use nominal typing where mix-ups would compile. Seetypes-first-guards. - UI change with no a11y consideration. Run
a11y-default-reviewover the touched components. - Commit subject without scope (
feat: …notfeat(spotify): …). Seeconventional-commits-scoped. - Decision big enough to be re-litigated in three months, no ADR. Write it before the code lands.
3. Polish (nits, optional)
Style, naming, redundant comments, dead code, doc gaps. Group them under a single "nits" heading. Never let polish drown out the first two buckets.
If the change is correct and convention-clean, polish is the whole review — and a short one. If correctness or conventions are broken, polish waits for the follow-up.
Phase 3 — Report
Output shape:
## Review
**Verdict:** approve / request changes / blocked on decision
### Correctness
- [file:line] One sentence on what's wrong and why it matters.
### Convention drift
- [file:line] What rule, which skill. `result-not-throw`: business logic must return `Result<T, E>`.
### Nits
- [file:line] One-liner. Group them tight.
### Questions
- Anything you couldn't answer from the diff alone. One question per ambiguity.Rules:
- Cite line numbers so I can navigate.
file_path:line_number. - Cite the skill for every convention finding. Don't restate the rule — link it.
- No essays. One sentence per finding. If a finding needs a paragraph, it's an ADR, not a review comment.
- Verdict goes first. I want the headline before the body.
Anti-patterns
- Flat bullet list with no severity. Twelve nits next to one architectural break, all weighted equally. Triage or don't bother.
- Reviewing by aesthetics. "Consider renaming," "this could be more idiomatic," "maybe extract a helper." If there's no failure mode, it's not a finding.
- Restating what the code does. I can read the diff. Tell me what's wrong, not what's there.
- Flagging style when correctness is broken. Lead with the throw in the service layer, not the import order.
- Inventing house rules. Every convention finding cites an existing skill or ADR. If you can't cite, it's a personal preference and belongs in nits — or nowhere.
- Reviewing the diff without reading the PR description. Re-asking what the description answered is noise.
- Auto-suggesting a fix for a judgment call. Surface the tradeoff, let me pick. Auto-fix the deterministic stuff (typos, missing
await). - Bundling unrelated fixes into the review. A11y debt found during a backend review goes on the follow-up list, not into the PR.
When you find a structural problem mid-review
Stop the review. Surface it as "blocked on decision" with a verdict at the top, and call out which skill or ADR it conflicts with. Don't keep listing nits underneath — the design decision swallows them. If it warrants a new ADR, say so.
Cross-references
- Severity-1 conventions:
result-not-throw,vertical-slices,entity-normalization - Tooling conventions:
node-native-tests,single-tool-per-job - Surface-specific:
fastify-plugin-shape,a11y-default-review,production-observability,types-first-guards - Pre-code grilling:
grill-me-mateo - Domain glossary:
CONTEXT.md
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.

