code-review
Skill129 starsChanged 2 months agoMITView on GitHub
Review or improve code — one skill, four modes: bug/security review (default), performance, clean-code audit, slop cleanup. Pass mode:review|perf|clean|cleanup or infer. Don't use for writing features or generating tests (use test-coverage).
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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-configSkill
- appstore-review-checkerSkill
- aso-marketingSkill
- auto-pushSkill
- brand-name-checkerSkill
- cli-builderSkill
- codebase-modernizerSkill
- dev-machine-setupSkill
- devops-pipelineSkill
- drawio-generatorSkill
- excalidraw-generatorSkill
- diagram-generatorSkill
- doc-managerSkill
- dont-make-me-thinkSkill
- frontend-designSkill
- herdr-agentSkill
- idea-validatorSkill
- install-script-generatorSkill
- issue-work-loopSkill
- landing-page-generatorSkill
- logo-designerSkill
- ollama-optimizerSkill
- opencode-runnerSkill
- oss-readySkill
- plan-to-issuesSkill
- prd-generatorSkill
- release-managerSkill
- security-setupSkill
- seo-ai-optimizerSkill
- tad-generatorSkill
- tasks-generatorSkill
- test-coverageSkill
- tmux-agent-commsSkill
- ux-ax-reviewSkill
- viral-product-evaluatorSkill
- website-agent-readinessSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 8 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 174 edited versions we read keep these.
8
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
- Very specific: line 29
Explicit wins: If the request carries mode:review|perf|clean|cleanup (or --mode <name>), use it.
- Distinctive: line 36
Ambiguous?: Ask which mode, naming the options.
- Very specific: line 47
Never enter
cleanupby weak inference: Run it only when the user explicitly asks to refactor / clean up the codebase (or passes … - Distinctive: line 66
Read the selected mode's reference file and execute its steps exactly.
- Distinctive: line 76
If the Agent tool is available, modes that use subagents (review, cleanup) spawn them per their workflow — fresh-context validation and …
- Distinctive: line 89
Check that every reference and agent required by the selected mode is available before starting.
- Distinctive: line 95
Verify every run against the selected mode's own acceptance criteria, then assert all of these router criteria:
- Distinctive: line 99
Read-only modes changed no source files.
- Distinctive: line 100
Every finding cites concrete evidence and the expected output artifact or report was produced.
- Distinctive: line 118
After routing and after the selected workflow, emit a compact report:
- Very specific: line 129
Use × fail — reason for any unmet check.
“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
Code Review
One skill for reviewing and improving code quality. Pick a mode by intent (or pass an explicit
mode: parameter); each mode is a full, self-contained workflow in references/. Load only the
mode you need — this protects the agent's context budget.
Modes
| Mode | Use when the user wants to... | Reads / writes | Output | Workflow |
| review (default) | find bugs, security holes, quality issues in a diff/PR | read-only | prioritized findings report | references/review-mode.md |
| perf | make code faster — bottlenecks, leaks, algorithmic waste | read-only | performance findings report | references/perf-mode.md |
| clean | audit readability/standards vs the bbv Clean Code cheat sheet | read-only | CLEAN_CODE_AUDIT.md | references/clean-mode.md |
| cleanup | actually refactor out AI slop, dead code, duplication, cruft | WRITES CODE | modified source files | references/cleanup-mode.md |
Selecting the mode
- Explicit wins. If the request carries
mode:review|perf|clean|cleanup(or--mode <name>), use it. - Otherwise infer from the request:
- "review", "find bugs", "security", "is this correct", "look for vulnerabilities" → review
- "slow", "faster", "optimize", "bottleneck", "memory leak", "performance" → perf
- "clean code audit" (or "clean-code audit"), "clean code review", "check this against clean code" → clean (user-invoked only — a bare "readability" or "audit against standards" ask is ambiguous: use step 3)
- "remove slop", "clean up the codebase", "refactor out cruft / dead code / duplication" → cleanup
- Ambiguous? Ask which mode, naming the options. Fall back to review only when the intent is clearly "review this" with no other signal.
Safety: cleanup writes code — the other three do not
review, perf, and clean are source-read-only: they analyze and report without touching
source files. Review and perf may write only the named report artifact their mode specifies
(CODE_REVIEW.md for review; perf returns its report in the response). During review/perf analysis,
they must not otherwise mutate the index, refs, stash, branch, worktree, or remote state.
clean retains its own report-writing and sync contract. cleanup modifies files. Therefore:
- Never enter
cleanupby weak inference. Run it only when the user explicitly asks to refactor / clean up the codebase (or passesmode:cleanup). A plain "review my code" must never rewrite files — stay in a read-only mode. - Review and perf analysis record
git rev-parse HEAD,git status, and local tracking observations without claiming remote freshness. They do not fetch, stash, pull, rebase, checkout/switch, create or delete branches/worktrees, or apply source fixes. A separately approved mutation workflow owns its own freshness and stash-first sync contract. - Confirm before the first write in
cleanup, and follow that mode's own gating.
Repo Sync Before Edits
The router itself is read-only. The two modes that touch a git repo carry the mandatory
sync-before-edits step in their own workflow: cleanup (writes source) in references/cleanup-mode.md
and clean (writes CLEAN_CODE_AUDIT.md) in references/clean-mode.md. Before either mode edits,
follow that reference's Repo Sync step — sync with remote (stash-first if the tree is dirty) so writes
land on top of the latest base.
Run the mode's workflow
Read the selected mode's reference file and execute its steps exactly. Supporting files each mode uses (already colocated under this skill):
- review →
references/review-mode.md— agentsagents/reviewer.md,agents/file-reviewer.md,agents/report-assembler.md; refsreferences/subagent-architecture.md,references/code-smells.md - perf →
references/perf-mode.md— refreferences/language-checks.md - clean →
references/clean-mode.md— refsreferences/clean-code-checklist.md,references/tdd-checklist.md,references/html-report-guide.md,references/report-template.html - cleanup →
references/cleanup-mode.md— the 8 cleaner agents inagents/(deduplicator.md,type-consolidator.md,unused-code-killer.md,circular-dep-untangler.md,weak-type-strengthener.md,defensive-programming-remover.md,legacy-code-remover.md,slop-comment-cleaner.md)
Environment Check
If the Agent tool is available, modes that use subagents (review, cleanup) spawn them per their workflow — fresh-context validation and parallel work. If it is unavailable (e.g., Claude.ai), execute each mode's phases inline (less rigorous, but functional).
Chaining modes
Modes compose: a common flow is clean (audit → CLEAN_CODE_AUDIT.md) then cleanup (apply the
refactors), or review/perf to find issues before fixing. Run one mode at a time; confirm with
the user before switching into the code-writing cleanup mode.
Prerequisites
- Require a readable target diff, PR, file set, or repository; ask for scope when none is provided.
- Check that every reference and agent required by the selected mode is available before starting.
- For
cleanorcleanup, validate repository state and follow that mode's sync, backup, dry-run, confirmation, and rollback instructions. Stop on sync errors or failed safety checks.
Acceptance Criteria
Verify every run against the selected mode's own acceptance criteria, then assert all of these router criteria:
- Exactly one mode was selected and its reference workflow was followed end to end.
- Read-only modes changed no source files; verify with a path-scoped
git diffwhen applicable. - Every finding cites concrete evidence and the expected output artifact or report was produced.
- Tests or validation commands required by the selected mode completed with their expected result.
- Edge cases, limitations, skipped files, and degraded subagent coverage are disclosed.
Expected Output
Example response after a read-only review:
Mode: review
Result: PASS
Findings: 1 critical, 2 major, 0 minor
Output: CODE_REVIEW.md
Validation: reviewer pass complete; no source files changedStep Completion Reports
After routing and after the selected workflow, emit a compact report:
◆ Code Review ([mode])
Mode selection: √ pass
Workflow criteria: √ pass
Output verified: √ pass
Safety boundary: √ pass
Result: PASS | FAIL | PARTIALUse × fail — reason for any unmet check. Never report PASS while a selected-mode acceptance
criterion, expected output, required test, or safety guardrail is unresolved.
Edge Cases
- Unknown
mode:value → reject it and list the four valid modes. - Mixed intents across modes → ask which mode to run first; never merge workflows implicitly.
- Missing target or inaccessible files → stop and request a concrete scope instead of guessing.
- Agent tool unavailable → use the selected reference's inline fallback and disclose reduced coverage.
- A read-only mode requests edits mid-run → finish the report, then require explicit approval before
starting a separate
cleanuprun.
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.

