code-review
Skill122 starsChanged 2 months agoMITView on GitHub
Review a branch, PR, or worktree diff for repository conventions and stated intent.
188 other projects use a version of this, 13 of them edited.
Adopted by
Most recently taken up by
- github/spec-kittheir own version, first seen Nov 23, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- mattpocock/skillsedited, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use starter, media-processing 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.
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 5 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 4 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 32 projects that use this
AWSSkillresolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
Also in 48 projects that use this
- +1 more from mrgoonie
- +2 more from aws
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 13
- mattpocock/skills★ 335k28% same
- chrisdoc/hevy-mcp★ 49828% same
- aws/graph-explorer★ 48428% same
- bighadj22/codflow★ 33828% same
- loulanyue/skills★ 23130% same
- Joouis/agent-maestro★ 20630% same
- tt-a1i/matt-skills-with-to-goal★ 18228% same
- iamyoki/qwen-image-2.1-skill★ 14628% same
- willdady/platypus★ 11429% same
- Dimon94/skills★ 10723% same
3 more not listed
Wrote their own version · 175
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- github/awesome-copilot★ 40ksame name
- langchain-ai/deepagents★ 30ksame name
- microsoft/vcpkg★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/onnxruntime★ 22ksame name
- google/filament★ 21ksame name
165 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 repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/AGENTS.mdAGENTS.md
- wiki/CLAUDE.mdCLAUDE.md
- accountable-engineeringSkill
- adrSkill
- blindspot-passSkill
- capability-experimentsSkill
- codemapSkill
- code-quality-reviewSkill
- commit-atomicSkill
- context-discoverySkill
- doc-searchSkill
- docs-updateSkill
- draft-pull-requestSkill
- git-contextSkill
- handoffsSkill
- implementation-loggerSkill
- llm-wikiSkill
- orchestrating-fusionSkill
- pickupSkill
- plannotator-setup-goalSkill
- portless-localSkill
- prdSkill
- pr-reviewSkill
- qmd-knowledgeSkill
- quiz-meSkill
- ralphSkill
- security-auditSkill
- slopSkill
- spec-interviewSkill
- tddSkill
- tmuxSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 59
Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty.
- Distinctive: line 68
If the repo documents nothing, the clean code smell baseline below still applies
- Very specific: line 71
Read the commit messages from git log <fixed-point>..HEAD --oneline
- Very specific: line 72
Read the PR description if one exists (from gh pr view or branch context)
- Very specific: line 73
Check for an .implementation-log.md file that records conscious deviations from the plan — the review should not penalize a valid pivot
- Distinctive: line 74
If nothing is found, the Intent axis works from the commit messages alone
- Very specific: line 102
Commit hygiene → commit-atomic (phase 6)
- Distinctive: line 174
Use positive, discovery-first guidance.
- Distinctive: line 176
Instead of "Don't use global state": → "Passing state via parameters makes the data flow visible and the function easier to test in …
- Very specific: line 179
Instead of "Variable name is unclear": → "A name like userWithActiveSubscription tells the reader what this holds without needing to trace …
“Common” is measured: kept by at least 6 in 10 of the 174 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 the user supplies:
- Conventions — does the code follow this repo's documented coding standards and Tidy First practices?
- Intent — does the change faithfully do what it claims to do?
Both axes run as parallel sub-agents so they don't pollute each other's context, then this skill aggregates their findings.
Where This Fits
This skill owns micro / local quality — conventions, clarity, correctness of individual changes. It answers: "Is this change well-crafted and does it do what it says?"
For macro / structural quality (architecture, code judo, 1k-line limits, abstraction quality), use code-quality-review. That skill asks: "Is there a dramatically simpler structure hiding inside this implementation?"
| Concern | code-review (this skill) | code-quality-review |
| Clean code & naming | ✅ Primary owner | — |
| Tidy First practices | ✅ Primary owner | — |
| Behavior matches commits | ✅ Primary owner | — |
| Guard clauses, helper vars | ✅ Primary owner | — |
| File under 1k lines | Flag if crossed | Enforce strictly |
| Structural simplification | Note opportunities | Demand code judo |
| Abstraction quality | Flag thin wrappers | Delete unnecessary layers |
Companion Skills
A complete quality pipeline, in order:
| Phase | Skills | Purpose |
| 1. Discovery | blindspot-pass<br>context-discovery | Find unknown unknowns and gather project context before starting |
| 2. During implementation | implementation-logger | Track deviations from plan as you go |
| 3. Pre-review cleanup | slop | Remove AI-generated clutter so the review focuses on substance |
| 4. Review | code-review (this skill) | Conventions + Intent, side by side |
| 5. Structural audit | code-quality-review | Code judo, 1k-line limits, abstraction quality |
| 6. Fix & wrap | pr-review → commit-atomic → quiz-me | Apply fixes, group into logical commits, verify understanding |
Phases 1–4 are the core loop. Phase 5 is recommended when the change touches architecture or crosses file-size boundaries. Phase 6 depends on what the review finds.
Process
1. Pin the fixed point
The user supplies a fixed point — a commit SHA, branch name, tag, main, HEAD~5, etc. If they don't specify one, ask for it.
Capture the diff command once: git diff <fixed-point>...HEAD (three-dot, so the comparison is against the merge-base). Also note the list of commits via git log <fixed-point>..HEAD --oneline.
Before going further, confirm the fixed point resolves (git rev-parse <fixed-point>) and the diff is non-empty. A bad ref or empty diff should fail here — not inside the sub-agents.
2. Gather context
Conventions sources — discover the repo's coding standards. Look for any of these common patterns:
CONVENTIONS.md,.planning/codebase/CONVENTIONS.md,STYLE_GUIDE.md— language-specific idioms and patternsCONTRIBUTING.md,best-practices.md,CODING_STANDARDS.md— general development philosophy, guard clauses, helper expectationsAGENTS.md,CLAUDE.md,GEMINI.md— project-specific instructions for AI coding assistants- Any file the repo advertises as its source of truth for code style — search
README.mdordocs/for mentions - If the repo documents nothing, the clean code smell baseline below still applies
Intent sources — understand what the change claims to do:
- Read the commit messages from
git log <fixed-point>..HEAD --oneline - Read the PR description if one exists (from
gh pr viewor branch context) - Check for an
.implementation-log.mdfile that records conscious deviations from the plan — the review should not penalize a valid pivot - If nothing is found, the Intent axis works from the commit messages alone
3. Spawn both sub-agents in parallel
Send a single message with two Agent tool calls. Use the general-purpose subagent for both.
Conventions sub-agent prompt — include:
- The full diff command and commit list.
- The list of conventions-source files you found in step 2, plus the clean code smell baseline below pasted in full — the sub-agent has no other access to it.
- The brief: "Report — per file/hunk where relevant — (a) every place the diff violates a documented convention: cite the convention (file + the rule); and (b) any baseline smell you spot: name it and quote the hunk. Distinguish hard violations from judgement calls — documented-convention breaches can be hard, but baseline smells are always judgement calls. A documented repo convention overrides the baseline. Skip anything tooling (linters, formatters, pre-commit hooks) already enforces. Under 400 words."
Intent sub-agent prompt — include:
- The diff command and commit list.
- The commit messages and any PR description or implementation log found.
- The brief: "Report: (a) claims in the commits/PR that are missing or partial in the diff; (b) behaviour in the diff that wasn't claimed (scope creep); (c) claimed behaviour that looks incorrectly implemented. Quote the commit message or PR line for each finding. If an
.implementation-log.mdrecords a conscious deviation, note it but don't flag it as a problem. Under 400 words."
4. Aggregate
Present the two reports under ## Conventions and ## Intent headings, verbatim or lightly cleaned. Do not merge or rerank findings — the two axes are deliberately separate.
End with a one-line summary: total findings per axis, and the worst issue within each axis (if any). Don't pick a single winner across axes.
5. Suggest next steps
Based on findings, suggest which companion skill to run next:
- Structural concerns →
code-quality-review(phase 5) - AI-generated clutter →
slop, then re-review (phase 3 — clean first, then re-review) - Fixes needed →
pr-review(phase 6) - Commit hygiene →
commit-atomic(phase 6)
Clean Code Smell Baseline
These 10 smells apply on top of whatever the repo documents. Two rules bind them:
- The repo overrides. A documented convention always wins; where it endorses something the baseline would flag, suppress the smell.
- Always a judgement call. Each smell is a labelled heuristic, never a hard violation — and skip anything tooling (linters, formatters, pre-commit hooks) already enforces.
Each smell reads what it is → how to fix; match it against the diff:
1. Mysterious Name — a function, variable, class, or type whose name doesn't reveal what it does or holds. If no honest short name comes, the design itself is murky. → Rename to something descriptive. Names are the first line of documentation — prefer clarity over brevity.
2. Duplicated Code — the same logic shape, conditional chain, or data transformation appears in more than one hunk or file in the change. → Extract the shared shape into a function, helper, or shared module. Call it from both places.
3. Long Function — a function or method that does too many things. The reader must hold multiple concerns in their head at once. → Extract logical sections into well-named helper functions. A function should do one thing and do it at a single level of abstraction.
4. Deep Nesting — code indented 3+ levels deep. Arrow code that forces the reader to track multiple branching paths simultaneously. The happy path is buried under validation.
→ Invert conditions and bail out early at the top: if invalid → return. The main logic stays at the outermost level.
5. Magic Values — unexplained literals, hardcoded numbers, strings, or paths that carry implicit meaning. The reader can't tell if 7 means days, retries, or something else.
→ Extract into a well-named constant or configuration value: MAX_RETRY_ATTEMPTS = 7.
6. Speculative Generality — abstraction, parameter, hook, or config added for a future need the spec doesn't have. "We might need this later" code. → Delete it and inline back to the simplest thing that works. Add the abstraction when the second caller arrives.
7. Dead Code — unused variables, functions, imports, or commented-out blocks left behind. These mislead readers and add maintenance cost. → Delete it. Version control remembers the history; the codebase should only carry what's active.
8. Mutable Global State — shared variables or singletons that any part of the program can change, making behavior order-dependent and hard to reason about. → Pass state explicitly via parameters, return values, or dependency injection. Restrict mutation to clear, documented boundaries.
9. Wrong Layer — logic that belongs in one module/package leaks into a different one. Feature code in a shared utility, or domain logic in an HTTP handler. → Move the code to the module that already owns that concept. The reader should find logic where they'd first look for it.
10. Unclear Intent — code that produces correct output but leaves the reader guessing why it works. The algorithm is visible but the reasoning is hidden. → Add a brief comment explaining why (not what) for non-obvious logic. Better yet, extract into a named function whose name carries the intent.
Why Two Axes
A change can pass one axis and fail the other:
- Code that follows every convention but implements the wrong thing → Conventions pass, Intent fail.
- Code that does exactly what the commits claim but breaks clean code conventions → Intent pass, Conventions fail.
Reporting them separately stops one axis from masking the other. A diff full of well-structured code that doesn't actually deliver what the commit message promised is still a failing change.
Output Format
## Conventions
[Conventions sub-agent report — per file/hunk, citing the convention source]
## Intent
[Intent sub-agent report — per commit/PR claim, citing the source line]
---
**Summary**: N conventions findings (worst: <brief>), M intent findings (worst: <brief>)
**Suggested**: <next companion skill to run>Tone
Use positive, discovery-first guidance. Explain why a convention exists rather than just stating it was violated. This project follows the Fable Field Guide principle: context over constraints.
Instead of "Don't use global state": → "Passing state via parameters makes the data flow visible and the function easier to test in isolation."
Instead of "Variable name is unclear":
→ "A name like userWithActiveSubscription tells the reader what this holds without needing to trace its origin."
Prioritize high-impact logic and safety findings over low-value stylistic nits.
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.

