code-reviewer
Skill1 starsChanged 20 days agoMITView on GitHub
Review a diff or a set of files for correctness, security, and maintainability and report findings ranked by severity. Use this skill when the user asks to "review this", "review my changes", "look over this PR", "check this code before I merge", "what's wrong with this", or asks for a second pair of eyes on code they are about to ship.
195 other projects use a version of this.
Adopted by
Most recently taken up by
- carlokop/skillstheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- AtulPurohit/Antigravity-Awesome-Skillstheir own version, first seen Nov 29, 2026
- le-diegz/claude-skills-registrytheir own version, first seen Nov 29, 2026
- Dannykkh/skill-olympustheir own version, first seen Nov 29, 2026
- nafiz530/SkillShelf-Labstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use git-doc-updater, git-precommit 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.
u9401066Skillgit-doc-updater
Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.
Also in 5 projects that use this
u9401066Skillgit-precommit
Orchestrate pre-commit workflow including Memory Bank sync, README/CHANGELOG/ROADMAP updates. Triggers: GIT, gc, push, commit, 提交, 準備 commit, 要提交了, git commit, pre-commit, 推送.
Also in 5 projects that use this
lsyamsiarSkillspec-miner
Reverse-engineering specialist that extracts specifications from existing codebases. Use when working with legacy or undocumented systems, inherited projects, or old codebases with no documentation. Invoke to map code dependencies, generate API documentation from source, identify undocumented business logic, figure out what code does, or create architecture documentation from implementation. Trigger phrases: reverse engineer, old codebase, no docs, no documentation, figure out how this works, inherited project, legacy analysis, code archaeology, undocumented features.
Also in 6 projects that use this
lsyamsiarSkillsecure-code-guardian
Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.
Also in 8 projects that use this
AutumnsGroveSkillapi-designer
Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation
Also in 16 projects that use this
- +4 more from u9401066
- +3 more from lsyamsiar
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 195
- google-gemini/gemini-cli★ 109ksame name
- NVIDIA/SkillSpector★ 28ksame name
- jewbetcha/openflight★ 1.2ksame name
- web-infra-dev/rsdoctor★ 1.2ksame name
- zhnnky329/MathModeling-skills★ 1.1ksame name
- MageByte-Zero/spec-superflow★ 875same name
- waybarrios/opencode-power-pack★ 547same name
- Karanjot786/TermUI★ 236same name
- elithrar/dotfiles★ 226same name
- linxuan-sys/opencode-skills-chinese★ 200same name
185 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 repository16 other files it gives its agents.
- airbnb-javascript-styleSkill
- code-simplifierSkill
- commit-and-pushSkill
- commitSkill
- debugSkill
- explainSkill
- find-skillsSkill
- frontend-designSkill
- generate-commit-messageSkill
- humanizerSkill
- ponytailSkill
- pr-descriptionSkill
- prompt-optimizerSkill
- readme-generatorSkill
- testSkill
- thermo-nuclear-code-quality-reviewSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 163 edited versions we read keep these.
9
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 18
Default to reviewing uncommitted or recently changed code, not the whole repository:
- Distinctive: line 25
If the user names specific files, review those instead.
- Distinctive: line 76
Do not report a finding you have not checked.
- Distinctive: line 78
Read the surrounding code — the guard you think is missing may be upstream.
- Distinctive: line 80
If you cannot construct one, either downgrade it to a note or drop it.
- Distinctive: line 105
If you find nothing above Minor, say that plainly instead of inflating small observations into problems.
- Distinctive: line 113
Do not rewrite working code to match personal style preferences.
- Distinctive: line 114
Follow the conventions already in the file over your own defaults.
- Distinctive: line 115
Do not apply fixes unless the user asks you to.
“Common” is measured: kept by at least 6 in 10 of the 163 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 Reviewer
Review code the way a careful senior colleague would: find the things that will actually bite, say so plainly, and skip the noise.
Scope
Default to reviewing uncommitted or recently changed code, not the whole repository:
git status --shortto see what's in flight.git difffor unstaged,git diff --stagedfor staged work.- For a branch:
git diff main...HEAD(ormaster).
If the user names specific files, review those instead. If there is no diff and no target named, ask what to review rather than reviewing everything.
What to look for
Work through these in order. The first two earn their keep; the rest are supporting.
1. Correctness
- Off-by-one errors, inverted conditions, wrong operator precedence.
- Unhandled
null/undefined, empty collections, zero, and negative numbers. asyncwork that isn't awaited; promises whose rejections nobody catches.- Race conditions between concurrent writes to the same resource.
- Error paths that swallow the error or return a success shape on failure.
- Logic that contradicts what the surrounding code or its callers assume.
2. Security
- Untrusted input reaching a dangerous sink. Trace the path: request params
and bodies, CLI args, file contents, and third-party API responses are all
untrusted. Dangerous sinks include SQL, shell commands,
path.join,eval, deserialization, and template rendering. - Path traversal specifically: any id from a request that gets joined onto a directory needs validation, not sanitisation.
- Secrets in source, in logs, or in error messages returned to a caller.
- Authorization checks that are missing, or that run after the side effect.
- Sensitive data written to logs (tokens, PII, full request bodies).
3. Resource handling
- Files, sockets, and DB connections opened but not closed on the error path.
- Unbounded growth: reading an entire file or result set into memory, queues with no cap, caches with no eviction.
- Queries inside loops that should be a single batched call.
4. Maintainability
- Names that mislead about what the thing actually does.
- Duplicated logic that has already drifted between copies.
- Comments that contradict the code — one of them is wrong.
- Dead code and unreachable branches.
5. Tests
- Does the change have tests? Do they test behaviour or just restate the implementation?
- Are the error paths covered, or only the happy path?
How to verify before reporting
Do not report a finding you have not checked. For each candidate:
- Read the surrounding code — the guard you think is missing may be upstream.
- Construct the concrete failure: what input, what state, what wrong result.
- If you cannot construct one, either downgrade it to a note or drop it.
A confident, wrong finding costs the reader more than a missed one.
Output
Group findings by severity. Within each group, most serious first.
### Critical data loss, security holes, crashes on ordinary input
### Important wrong behaviour in a real edge case, resource leaks
### Minor naming, duplication, dead code, style inconsistencies
### Notes things worth knowing that are not defectsFor each finding, give:
- Where —
path/to/file.ts:42 - What — one sentence stating the defect.
- Why it matters — the concrete failure: inputs → wrong outcome.
- Fix — the smallest change that resolves it, as a snippet where useful.
End with a one-line verdict: safe to merge, merge after fixing the criticals, or needs rework.
If you find nothing above Minor, say that plainly instead of inflating small observations into problems. "This looks correct; two minor naming nits" is a complete and useful review.
Stay in your lane
- Review the change in front of you, not the architecture it sits in — unless the change actively makes that architecture worse.
- Do not rewrite working code to match personal style preferences.
- Follow the conventions already in the file over your own defaults.
- Do not apply fixes unless the user asks you to; report first.
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.

