agentleFS
rohitgollarahallirohitgollarahalli/claude-skills/skills/code-reviewer/SKILL.md

code-reviewer

Skill0 starsChanged 5 months agoMITView on GitHub

Review code changes the way a thoughtful senior engineer would: find real bugs, security issues, and design problems, and report them grouped by severity with concrete fixes. Use this whenever the user asks to "review", "look over", "check", or "give feedback on" code, a diff, a pull request, or a branch; asks "is this correct/safe?"; pastes a function and asks what's wrong; or wants a PR reviewed before merging — even if they don't say the word "review".

  • Deletes or force-pushes

129 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sql-query-expert, git-doc-updater 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.
  • Marine-softdrink524Skill

    sql-query-expert

    Write optimized SQL queries with joins, CTEs, window functions, and performance tuning. Based on Anthropic's Claude Cookbooks.

    Also in 3 projects that use this

  • u9401066Skill

    git-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 3 projects that use this

  • u9401066Skill

    git-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 3 projects that use this

  • JeffallanSkill

    secure-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 4 projects that use this

  • alirezarezvaniSkill

    readme-updater

    Keep README files current with project changes. Use when project structure changes, features added, or setup instructions modified. Suggests README updates based on code changes. Triggers on significant project changes, new features, dependency changes.

    Also in 4 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 9 projects that use this

  • +3 more from u9401066

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 111 edited versions we read keep these.

  • 2

    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
  1. Distinctive:

    If the user gave you a diff or file, review that.

    line 40
  2. Distinctive:

    If you're unsure whether something is a bug, say so and explain how to check, rather than asserting.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 111 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Reviewer

A good review changes the outcome: it catches the bug before production and teaches something in the process. A bad review lists nitpicks and misses the real problem. Aim for the former.

What to actually look for

Review in roughly this priority order, because a missed correctness bug costs far more than a missed style preference:

  1. Correctness — Does it do what it claims? Edge cases (empty input, nulls, large input, concurrency, unicode), off-by-one errors, incorrect conditions, wrong error handling, resource leaks.
  2. Security — Injection (SQL, shell, template), missing authz/authn checks, secrets in code, unsafe deserialization, path traversal, unvalidated input crossing a trust boundary.
  3. Design & maintainability — Is the abstraction right? Duplicated logic, leaky boundaries, functions doing too much, names that mislead, hidden coupling. Will the next person understand it?
  4. Tests — Are the risky paths covered? Do the tests actually assert behavior, or just run the code?
  5. Style & polish — Only after the above. Formatting, naming conventions, docs. Keep this brief; linters handle most of it.

How to obtain the diff

If the user gave you a diff or file, review that. If they point at a branch or PR, get the actual changes first (e.g. git diff main...HEAD) and review the diff, but read enough surrounding code to understand context — a change can be wrong because of code it doesn't touch.

Output format

Lead with a one-line verdict, then group findings by severity. Each finding names the location, explains the problem and why it matters, and gives a concrete fix.

**Verdict:** <Approve / Approve with comments / Request changes> — <one line>

### Blocking
- `path/to/file.py:42` — <problem>. <why it matters>. Suggested fix: <fix>.

### Should fix
- ...

### Nits (optional)
- ...

### What's good
- <call out genuinely solid choices — reviews shouldn't be only negative>

Guardrails

  • Be specific. "This could be cleaner" is useless; show the cleaner version.
  • Explain the why behind each comment so the author learns, not just complies.
  • Distinguish must-fix from preference. Don't block a PR over taste.
  • Praise good decisions honestly — it builds trust and signals what to repeat.
  • If you're unsure whether something is a bug, say so and explain how to check, rather than asserting.

Example

Verdict: Request changes — solid structure, but one SQL injection and an unhandled empty-list case.

Blocking

  • api/search.py:88 — query is built with f-string interpolation of term, which is user-controlled — SQL injection. It matters because any caller can read or drop tables. Fix: use a parameterized query (cur.execute(sql, (term,))).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.