code-review
Skill5 starsChanged 2 months agoMITView on GitHub
Reviews the branch's diff (`--diff`, the PR's changes) or given files for correctness, standards, ADR adherence, OWASP security, performance and testability, routing files to the studio's lead and specialist and to appsec-engineer for sensitive paths. Read-only BLOCKING/WARNING/INFO. The studio's review, not Claude Code's built-in: use for 'review my changes', 'review the diff', 'review this PR'.
- Commits and pushes
188 other projects use a version of this.
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/skillstheir own version, 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 · 0
None found.
Wrote their own version · 188
- mattpocock/skills★ 335ksame name
- 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
178 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 repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- testing/CLAUDE.mdCLAUDE.md
- a11y-auditSkill
- adoptSkill
- api-contractSkill
- architecture-decisionSkill
- architecture-reviewSkill
- backlogSkill
- brainstormSkill
- changelogSkill
- collaboration-protocolSkill
- create-storiesSkill
- data-modelSkill
- dependency-auditSkill
- deploySkill
- design-systemSkill
- dev-storySkill
- docsSkill
- feature-specSkill
- game-conceptSkill
- hardenSkill
- helpSkill
- hotfixSkill
- impactSkill
- incidentSkill
- initSkill
- migrateSkill
- pentestSkill
- perf-auditSkill
- product-specSkill
- qa-planSkill
- refactorSkill
- release-checklistSkill
- retrospectiveSkill
- security-auditSkill
- setup-stackSkill
- skill-improveSkill
- skill-testSkill
- sprint-planSkill
- sprint-statusSkill
- stack-updateSkill
- startSkill
- story-doneSkill
- team-featureSkill
- team-gameSkill
- team-releaseSkill
- team-securitySkill
- tech-debtSkill
- test-setupSkill
- threat-modelSkill
- updateSkill
- ux-specSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
2
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 31
Print the routing table: before the reviewers run: extension or path in the diff → the reviewer this list requires → spawned yes/no.
- Distinctive: line 40
Every check's output goes into the report.
- Very specific: line 42
Per language in the diff: read references/checks-go.md for *.go (tests, layered, layout) and references/checks-php.md for *.php (tests, …
- Very specific: line 55
Ask, one AskUserQuestion: commit and push (Recommended) · show the diff first · leave uncommitted.
“Common” is measured: kept by at least 6 in 10 of the 175 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
Language, <hooks>, agent and command namespaces, gate mechanics and the built-in /code-review collision in plugin mode: docs/coordination-rules.md § Skill conventions (reviewers: § Subagents).
The review itself writes nothing; fixes, commit and push happen only after the Phase 5 fix and commit gates.
Glossary:
<default>— the default branch (masterormain).<base>—$(git merge-base origin/<default> HEAD), taken aftergit fetch origin.<id>— the story ID (S-NNN); without a story, the scope of the branch's own fix commit when there is one (ahotfix/<slug>branch: the<scope>of itsfix(<scope>): …commit), else the branch name.$TMPDIR—/tmpwhen unset.
Phase 1: Target
- Target files. The argument's paths, or with
--diffthe changed files:git diff --name-only <base>(committed, staged and unstaged changes since the branch left<default>). - Nothing to review. An empty list → report it with the command that produced it and stop. No reviewers are spawned.
- Story. With a story path, extract its ADRs and criteria.
- Read CLAUDE.md, technical-preferences, the applicable
.claude/rules/*.mdand the story's ADRs.
Phase 2: Routing (in parallel via Task)
- Map files to reviewers by extension/path — the specialist plus the lead that owns the stack (
docs/agent-roster.md):*.go→go-engineer+backend-lead;*.php→php-engineer+backend-lead;*.graphql/resolvers →graphql-engineer+backend-lead; Node server code →node-engineer+backend-lead; TS tooling and shared packages →typescript-engineer+frontend-lead; Angular →angular-engineer+frontend-lead;*.vue→vue-engineer+frontend-lead;*.css/scss→css-engineer+frontend-lead;game/, three.js →threejs-engineer/web-game-engineer+game-lead; migrations/SQL →database-engineer; workflows/Docker/Makefile→devops-engineer; tests →test-engineer. - Security. Sensitive paths (
auth,security,payments,upload,webhook, proxy configs) or--security→appsec-engineeris mandatory. - Write the diff once:
git diff <base> > "$TMPDIR/review-<id>.diff", plusgit diff -M --name-status <base>for the file list. A reviewer that reads the diff in pieces throughsed -nruns out of turns and returns a verdict about the part it reached. - Print the routing table before the reviewers run: extension or path in the diff → the reviewer this list requires → spawned yes/no. A required reviewer may be skipped, but only as a line saying so and why; routing chosen by eye shrinks to one reviewer.
- Spawn the reviewers in one parallel batch. Every brief contains:
- the diff path and the file list;
- the ADRs, the story's acceptance criteria (when there is a story) and the rules read in Phase 1;
- with a story, the Scope rules of
references/checks-scope-comments.md: the reviewers judge the hunks (WARNINGSCOPE/SCOPE-SPEC, INFOSCOPE-STYLE), and a behaviour the new code exposes keeps the severity the reviewer gives it, never downgraded to INFO as "pre-existing"; - the answer format: first line
Read: N/M files(step 6), then findings asseverity | file:line | what | risk | fix.
- The first line of every verdict is
Read: N/M files— the diff files the reviewer actually opened.N < Mmakes that verdictPARTIAL, printed as such in the routing table, and aPARTIALreviewer never contributes toAPPROVED.
Phase 3: Automated checks (Bash, when tools exist)
Every check's output goes into the report.
- General:
go vet/staticcheck/govulncheck; PHP:php -l, the recorded analyser (vendor/bin/phpstan analyseorvendor/bin/psalm), the recorded coding-standard tool (vendor/bin/ecs checkorphp-cs-fixer fix --dry-run);eslint/tsc --noEmit/vue-tsc;graphql-inspector diff; tests of affected packages — with coverage (make test/composer test:coverage) when the diff touches a domain or use-case layer, so the coverage gate has a profile to read. - Per language in the diff: read
references/checks-go.mdfor*.go(tests, layered, layout) andreferences/checks-php.mdfor*.php(tests, layered, the grep fallback when deptrac is absent); run every block that applies, with the finding strings as written there. - Scope and comments: read
references/checks-scope-comments.md. The Scope block with a story — the parent printsgit diff --stat <base>next to the story's files, the reviewers judge the hunks. The Comments block on the added lines of every diff (TODO-NOID,COMMENT-HISTORY,COMMENT-LONG; counts in the report even when zero).
Phase 4: ADR conformance
Deviation from an accepted ADR: ARCHITECTURAL VIOLATION (BLOCKING) / DRIFT (WARNING) / MINOR (INFO).
Phase 5: Report and fix commit
- Report: the BLOCKING/WARNING/INFO summary; the routing table from Phase 2 with each reviewer's verdict next to it (
production/session-logs/agent-audit.lognames who actually ran, so a review can be audited later); the findings table; the verdictAPPROVED/NEEDS CHANGES. - Fix question, one
AskUserQuestion: fix BLOCKING now (Recommended on NEEDS CHANGES) · fix BLOCKING and WARNING · report only. No edits before that answer; after a "fix" answertouch .claude/.write-consent, and again before eachTaskbatch of step 3 (rule 7, delegated steps), so the consent-guard sees the specialists' writes as approved. - Fixes go through specialists: the relevant engineer via
Taskfor code and tests,tech-writerfor documents. The answer covers the findings it names; a specialist that needs to go beyond them reports back and the parent asks. The parent writes no code in review rounds either (§ Subagents): a fix the parent makes is a change nobody reviewed. A fix the parent wrote anyway is named in the report ("written by the parent:<finding>"). - Re-run the Phase 3 checks.
- Commit gate (
.claude/docs/git-workflow.md, step "Review"). No fixes → no commit; the review itself never commits or changes the branch.- Record it:
<hooks>session-state.sh set Gate "/code-review Phase 5: commit the fixes?". - Ask, one
AskUserQuestion: commit and push (Recommended) · show the diff first · leave uncommitted. After the answer:<hooks>session-state.sh set Gate "—". - On "yes":
git commit -m "fix(<id>): apply /code-review findings"(fix(S-NNN): …on a story branch,fix(<scope>): …on a hotfix branch), staging the fixed files and.claude/agent-memory/(the reviewers' and engineers' notes from this round, git-workflow § Agent memory). git pushon the current branch — only when it has an upstream (git rev-parse --abbrev-ref @{u}); without one, the commit stays local and the report says so instead of a failed push.
- Record it:
- Re-review by the reviewer who raised each finding:
SendMessage(listed inallowed-tools) to that agent — its id from the Phase 2Taskresult — with the fix diff (git diff <fix-commit>^!, orgit diff HEADwhen the commit was declined) and the question "closed / not closed". WhereSendMessageis not available, or the reviewer's session is gone, spawn the same reviewer throughTaskwith its finding and the fix diff. The routing table gets are-reviewcolumn (yes · no · PARTIAL). - The verdict moves from
NEEDS CHANGEStoAPPROVEDonly on the reviewers' answers, never on a green CI or the parent's own reading. - Severity belongs to the reviewer: a BLOCKING is downgraded only by the reviewer that raised it or by
technical-directorthrough/impact. The parent records its disagreement as a line under the finding; it does not edit the severity.
Next step — one AskUserQuestion, never a bare "run /story-done?": /web-studio:story-done (copy mode /story-done) (Recommended on APPROVED) · re-review after manual fixes — past 50 % context in a fresh session (rule 13): /clear, then /web-studio:code-review --diff <story-path> (copy mode /code-review --diff <story-path>; --diff alone without a story) so the Scope checks keep their story · stop here.
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.

