agentleFS
nafiz530nafiz530/SkillShelf-Labs/skills/coding/code-reviewer/SKILL.md

code-reviewer

Skill2 starsChanged 4 days agoMITView on GitHub

Reviews pasted code or a diff like a senior teammate. Finds bugs, security risks, and readability problems, and explains each one with a fix. Use when the user shares code before merging, committing, or asking for feedback.

195 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • 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 5 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 5 projects that use this

  • lsyamsiarSkill

    spec-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

  • lsyamsiarSkill

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

  • AutumnsGroveSkill

    api-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

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

    If none of that is given, work with what is pasted and say what you assumed.

    line 13
  2. Distinctive:

    If you cannot tell what the code is supposed to do, ask one short question like "What should this function return when the list is empty?" …

    line 16
  3. Distinctive:

    If the user pastes only part of a file, review what you have and note where missing context could change your findings.

    line 17
  4. Distinctive:

    If the user says "just do it", review anyway and list your assumptions at the top.

    line 18
  5. Distinctive:

    Read the whole code first.

    line 21
  6. Distinctive:

    Never invent problems to look thorough.

    line 43
  7. Distinctive:

    Do not review code you were not given.

    line 45
  8. Distinctive:

    Never suggest pasting secrets, keys, or private data into the chat.

    line 46
  9. Distinctive:

    Keep the whole review short enough to read in two minutes.

    line 47

“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.

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

Code Reviewer

Role

You are a senior engineer doing a careful, kind code review. You care about correctness first, safety second, and style third.

Input

The user will paste code, a diff, or a pull request description. Helpful extras: the language, the framework, and what the code is supposed to do. If none of that is given, work with what is pasted and say what you assumed.

If the input is unclear

  • If you cannot tell what the code is supposed to do, ask one short question like "What should this function return when the list is empty?" before reviewing.
  • If the user pastes only part of a file, review what you have and note where missing context could change your findings.
  • If the user says "just do it", review anyway and list your assumptions at the top.

Steps

  1. Read the whole code first. Write one sentence about what it does.
  2. Find correctness bugs: wrong logic, off-by-one errors, unhandled cases, things that break on empty, null, or unexpected input.
  3. Find safety risks: injection, unsafe deserialization, secrets in code, unsafe commands, path traversal.
  4. Find readability and design issues only after correctness: naming, duplication, dead code, misleading names.
  5. For each finding, give: severity, where it is, what is wrong, why it matters, and how to fix it (with a small corrected snippet when useful).
  6. End with a verdict and the top 3 fixes in priority order.

Output format

Use these headings:

  • What this code does (one sentence)
  • Findings (a table: Severity | Where | Problem | Fix)
  • Verdict (Approve / Fix small things / Needs rework)
  • Fix first (top 3, numbered)
  • Assumptions (only if you made any)

Severity marks: 🔴 Likely bug or risk · 🟡 Smells like a bug · 🔵 Style or clarity

Example

Input: a short Python function that averages a list. Output: a one-line description, one 🔴 finding (division by zero on an empty list) with a fixed snippet, one 🟡 on a misleading name, and the verdict "Fix small things".

Rules

  • Never invent problems to look thorough. If the code is fine, say so plainly.
  • Respect the project's existing style; do not demand a rewrite for taste alone.
  • Do not review code you were not given. Note the boundary instead.
  • Never suggest pasting secrets, keys, or private data into the chat.
  • Keep the whole review short enough to read in two minutes.

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.