code-review
Skill9 starsChanged 5 months agoMITView on GitHub
Adversarial code review by a clean-context Claude subagent. Read-only. Returns Critical/High/Medium/Low findings against correctness, security, design, reliability, tests, quality. Standalone (no /build pipeline coupling).
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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- vera-system/CLAUDE.mdCLAUDE.md
- buildSkill
- consultSkill
- curateSkill
- doc-syncSkill
- frameSkill
- gap-handlerSkill
- improveSkill
- panelSkill
- researchSkill
- scoutSkill
- start-vagueSkill
- tddSkill
- wireframe-firstSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
5
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 41
If you can't tell whether an arg is a path or a git range, prefer path.
- Very specific: line 53
If the range is a single ref (HEAD, <sha>), expand to <ref>~1..<ref>.
- Distinctive: line 55
Size guard: If the captured content exceeds ~50KB (roughly 1500 lines of source or 1000 lines of diff), warn the user, list the largest …
- Very specific: line 74
(Optional) Spec: If --against <spec> was provided, append "Alignment spec follows.
- Distinctive: line 76
Keep the prompt under ~100KB total.
- Distinctive: line 107
If the YAML doesn't parse, surface the raw output and a one-line "subagent returned non-YAML — re-run with a smaller target or tighter …
- Very specific: line 113
If --write <output-path> was passed, write a Markdown file at that path matching .claude/skills/build/templates/code-review.md structure:
- Distinctive: line 121
Use the Write tool. Confirm the path is reachable (parent dir exists or is creatable).
“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
Spawn a clean-context Claude subagent (code-reviewer) to adversarially review a file, directory, or git diff. The subagent returns findings as YAML; this skill formats them and (optionally) writes a review artifact.
Use this when:
- You want a second pair of eyes on a file before committing.
- You finished a build phase outside
/build fulland want acode-review.md-shape report. - You want to review the last commit (
/code-reviewwith no args defaults toHEAD~1..HEAD).
Don't use this for:
/build fullPhase 6 — that pipeline still usesAgent(subagent_type: "reviewer", ...)internally, which writes.build/review.mdin-flow. This skill is a sibling, not a replacement.- Reviewing ideas or PRDs — that's the
/build newStage 0 interview gate (vera-system/memory/interview-method.md), not this skill.
Cost: Free-ish. The subagent uses your Claude Code plan tokens, on the same model as your session, so the reviewer is never weaker than the model that wrote the code. No external API. If you want a cheaper pass, ask for the smaller background model when you invoke the skill.
Step 0: Parse arguments
$ARGUMENTS shapes:
| Shape | Example | Interpretation |
| File path | .claude/hooks/pre-compact.py | Review that file |
| Directory path | .claude/hooks/ | Review every file in it (cap: 10 files) |
| Git range | HEAD~1..HEAD, main..HEAD, <sha>..<sha> | Review the diff |
| Single ref | HEAD, <sha> | Review the commit's diff vs its parent |
| Empty | (no args) | Default to HEAD~1..HEAD |
Flags (any order):
--against <path>— also pass<path>to the reviewer as alignment spec (PRD, tech spec, EARS acceptance criteria, etc.)--write <path>— after findings come back, render them intotemplates/code-review.mdshape at<path>. Default: print to chat only.
If you can't tell whether an arg is a path or a git range, prefer path. Then fall back to git if the path doesn't exist.
Step 1: Resolve the target
For a path:
- Single file → read the file content.
- Directory → glob
**/*.{py,ts,tsx,js,jsx,svelte,md,sh,yml,yaml,json}(or anything else obviously code), cap at 10 files. If more, list them in chat and ask the user to narrow.
For a git range:
git diff <range>— capture the diff output.- If the range is a single ref (
HEAD,<sha>), expand to<ref>~1..<ref>.
Size guard: If the captured content exceeds ~50KB (roughly 1500 lines of source or 1000 lines of diff), warn the user, list the largest files, and ask which subset to review. Do not silently truncate.
Step 2: Spawn the reviewer subagent
Agent(
subagent_type: "code-reviewer",
description: "Code review <target>",
prompt: <see below>
)The prompt to the subagent has four parts:
- Role primer (one line):
"You are a clean-context senior code reviewer. Follow the checklist and YAML schema in your agent definition. Return ONLY the YAML block." - Target context:
"Target: <path-or-range>. Project: OpenVera (personal AI workbench, Markdown + Python harness scripts + Claude Code skills)." - The content: The file content OR the diff output OR (for directories) each file's content concatenated with a
# === <path> ===separator. - (Optional) Spec: If
--against <spec>was provided, append"Alignment spec follows. Compare the target against this:"plus the spec content.
Keep the prompt under ~100KB total. The agent's checklist + schema live in its definition file, so don't restate them — just remind it to follow them.
Step 3: Receive + display findings
The subagent returns a YAML block. Parse it.
Print to chat in this shape:
**Verdict:** <pass | pass-with-findings | fail> · C: <n> H: <n> M: <n> L: <n>
**Summary:** <one_liner from YAML>
### Critical
| # | File:Line | Finding | Fix |
|---|-----------|---------|-----|
| C1 | path:12 | <finding> | <fix> |
### High
... (same shape)
### Medium
...
### Low
...Empty severity sections: omit the heading + table entirely (don't print empty headers).
If the YAML doesn't parse, surface the raw output and a one-line "subagent returned non-YAML — re-run with a smaller target or tighter prompt." Don't try to repair the YAML — the subagent should obey schema; if it doesn't, the prompt needs tightening.
Step 4: Optional --write
If --write <output-path> was passed, write a Markdown file at that path matching .claude/skills/build/templates/code-review.md structure:
- Header (Reviewer: Vera, Date: today's date, Status from verdict)
- Review Summary (one_liner from YAML)
- Files Reviewed table (each file in the target)
- Findings — Critical / High / Medium / Low tables (same shape as Step 3)
- Checklist section: copy the checklist from the agent definition with each category marked ✓ (since the agent walks the full list)
Use the Write tool. Confirm the path is reachable (parent dir exists or is creatable).
Step 5: Gate line
Print a single closing line:
Verdict: <pass | pass-with-findings | fail>. <N> Critical, <N> High. Run again on a different target, or fix and re-run on the same one.That's it. No follow-up questions. The skill is one-shot.
Author: Shareef Ellis · @shareefatwork
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.

