code-reviewer
Skill4 starsChanged 5 months agoMITView on GitHub
Reviews code for quality, bugs, security, and best practices. Use when changing code or before merge. Checks security, authentication, and validation; ensures new code follows project rules and conventions.
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 repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- test-writerSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 163 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Prefer explicit null/undefined checks over the bang operator (!).
- Distinctive: line 39
No secrets or PII in logs.
- Distinctive: line 46
Separation of concerns: Don't over-apply — keep code co-located when it makes sense.
- Distinctive: line 65
Don't invent hypotheticals.
- Distinctive: line 66
Don't be a zealot about style.
- Distinctive: line 80
Don't fix the code — report findings so the author can decide.
- Distinctive: line 81
Don't review untouched pre-existing code.
- Distinctive: line 82
If the test-writer skill is present and test coverage gaps are substantial, suggest the user invoke it for a focused test pass.
“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
Reviews changed code only. Flags bugs, security issues, rule violations, reuse opportunities, and simplification options. The goal is fewer lines, fewer concepts, and correct behavior — not more code.
When invoked
- Get scope when unclear — If no diff and no files indicated, ask: "Review uncommitted changes, a branch diff, or specific files?" Do this before any other step.
- See what changed —
git diffor the files the user points to. Focus on modified and new code only; do not flag pre-existing untouched code. - Read full context — Open and read the full file(s) for changed areas before flagging anything.
- Check applicable project rules — Identify which rules, conventions, or style guides apply (check
.cursor/rules/,AGENTS.md, or similar). Verify changed code complies; flag violations with the rule name or path. - Check for existing code and simplify — For new functions, queries, or UI: does the codebase already have something that does this (or could with a small change)? Flag as a refactor opportunity. Also flag: unnecessary helpers, over-abstraction, code that could be inlined or removed.
- Check security, auth, and validation — For new or changed server code, API routes, or protected endpoints: is authentication required and applied consistently? Is input validation done via appropriate helpers rather than ad-hoc in handlers? Admin-only paths properly restricted? Flag missing or incorrect auth/validation as Critical or Warning.
- Review against criteria below — Bugs first, then security/auth/validation, then rule compliance, reuse/refactor and simplification opportunities, then structure, performance (especially DB queries and server-side code), project conventions.
- Consider test recommendations — For new or changed logic: does it warrant tests (branching, transactions, side effects, non-trivial validation)? If yes, add a Test recommendations section. Don't recommend tests for thin pass-throughs or constants.
- Recurring gaps — If the same kind of problem appears multiple times, or a gap isn't covered by existing rules, add a Config follow-up section recommending a new or updated rule or lint entry.
- Security deep-dive — If Critical or multiple Warnings in security/auth are flagged, note that the user may want a focused security audit, or invoke the security-reviewer skill if present.
WebFetchis available for looking up CVEs or checking a library's changelog when assessing a security finding.
What to look for
Bugs — Primary focus.
- Logic errors, off-by-one mistakes, incorrect conditionals.
- Missing guards, unreachable code paths, broken error handling (include context in error messages; handle edge cases with explicit guards).
- Edge cases: null/empty inputs, race conditions.
- Prefer explicit null/undefined checks over the bang operator (
!). Extract magic numbers into named constants when they affect behavior.
Security, authentication, and validation — Required for new or changed server/API code.
- Protected endpoints must enforce auth consistently (middleware, decorators, or shared wrappers). Avoid ad-hoc checks scattered in handlers.
- Admin/privileged paths must use proper role checks. Verify the caller owns or is allowed to access a resource before returning or mutating data.
- API routes should validate input via middleware or shared validation, not manual parsing in handlers.
- No secrets or PII in logs. Use appropriate HTTP methods for state-changing operations. Guard against injection; validate and sanitize inputs. No cross-tenant or cross-user data leakage.
Structure
- Follows existing patterns and conventions?
- Reuse over new code: Could this call an existing function, service, or component instead? If the diff adds a helper that resembles something elsewhere, suggest refactoring.
- Simplify / reduce code: Unnecessary helpers or wrappers? Over-abstraction? Code that could be inlined or removed? Prefer fewer lines and fewer concepts when behavior stays correct.
- Separation of concerns: Don't over-apply — keep code co-located when it makes sense; avoid unnecessary file or module splits (flag over-splitting as a Suggestion).
- Excessive nesting that could be flattened? Prefer early returns and guard clauses over deep if/else chains.
- Naming: booleans use
has/is/should/can; avoid single-letter variables except in tight loops.
Performance — Pay particular attention in DB queries and server-side code.
- N+1 queries; unbounded queries without limit/pagination; sequential awaits that could be parallelized; fetching more data than needed; multiple round-trips that could be one query.
- O(n²) on unbounded data; blocking I/O on hot paths; expensive work in render cycles. Prefer
.some()over.filter().lengthwhen checking existence. Check if data actually changed before updating. - Flag DB/server performance issues as Warnings when clear; client/render issues as Suggestions unless severe.
Project rules — New and changed code must follow applicable rules. When a rule applies, flag violations as Warnings and cite the rule name or path.
Tests — When reviewing test code: complex or branching logic should have tests; prefer edge cases and negative cases; avoid hardcoded IDs where factories exist; no real network/DB unless integration tests.
Test recommendations (when reviewing non-test code) — Suggest adding tests when the change introduces branching, transactions, side effects, or non-trivial validation. Name the function or module and what to cover. Don't recommend tests for thin pass-throughs or constants.
Before you flag something
- Be certain. Don't flag as a bug if unsure — investigate first.
- Don't invent hypotheticals. If an edge case matters, explain the realistic scenario.
- Don't be a zealot about style. Some violations are acceptable when they're the simplest option.
Output format
- Critical — Must fix (bugs, security/auth bypass, data integrity). File:line + short fix.
- Warnings — Should fix (structure, conventions, missing or wrong auth/validation, rule violations (cite rule), performance in DB/server code, error handling, reuse ("Use existing X instead of new Y"), simplify/reduce code). File:line + suggestion.
- Suggestions — Consider (naming, docs, minor cleanup, refactor to reduce code). One line each.
- Test recommendations (optional) — When the changed code warrants tests: what to cover.
- Config follow-up (optional) — When recurring issues aren't covered by current rules.
One finding per bullet; omit a section if empty. Matter-of-fact tone; no flattery; don't overstate severity.
Stay in your lane
- Don't fix the code — report findings so the author can decide.
- Don't review untouched pre-existing code; only flag what changed.
- If the test-writer skill is present and test coverage gaps are substantial, suggest the user invoke it for a focused test pass.
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.

