agentleFS
SkillMedevSkillMedev/engineering-workflow/skills/code-review-checklist/SKILL.md

code-review-checklist

Skill0 starsChanged 38 days agoMITView on GitHub

Run a systematic multi-pass code review - correctness, design, security, performance, tests - and report findings ordered by severity with concrete, respectful suggestions. Use when someone asks "review this PR", "review this diff", "what's wrong with this change", or wants a pre-merge quality gate on a branch. Do NOT use for a security-only deep audit of a change - use secure-code-review instead - or for writing the ticket or tracking artifact that describes the change - use jira-ticket-writer instead.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, nextjs-react-expert and 8 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.
  • SKB3002Skill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 5 projects that use this

  • SKB3002Skill

    nextjs-react-expert

    React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.

    Also in 3 projects that use this

  • xfstudioSkill

    rust-pro

    Master Rust 1.75+ with modern async patterns, advanced type system

    Also in 5 projects that use this

  • jornalistainclusivoSkill

    design-spec

    How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.

    Also in 3 projects that use this

  • zzfancitizenSkill

    verify-changes

    Verify code changes do not break the project by running tests, linter checks, and import validation. Use after making any code changes, editing Python files, modifying imports, updating dependencies, or refactoring.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 12

    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:

    Run the passes in this order.

    line 18
  2. Distinctive:

    If this pass finds more than one real issue, or the change touches auth, crypto, or money, stop and run secure-code-review as a dedicated …

    line 49
  3. Distinctive:

    Only flag what plausibly matters at real scale.

    line 53
  4. Distinctive:

    Do NOT flag micro-optimizations in cold paths - that is noise that trains authors to ignore you.

    line 58
  5. Distinctive:

    No new flakiness sources: real clocks, sleeps, order dependence, shared state.

    line 64
  6. Distinctive:

    Do not review everything in one read - single-pass review reliably finds style and misses logic.

    line 84
  7. Distinctive:

    Do not block on personal style preferences the codebase doesn't enforce.

    line 85
  8. Distinctive:

    Do not say "this is wrong" without saying what to do instead - every blocking finding carries a suggestion.

    line 86
  9. Distinctive:

    Do not approve a diff too large to actually read.

    line 87
  10. Distinctive:

    Do not let a clean style pass launder a skipped security pass - the passes are not interchangeable.

    line 88
  11. Distinctive:

    Every pass was executed, or its skip is stated in the report.

    line 92
  12. Distinctive:

    Every blocking finding names a concrete consequence and a concrete fix.

    line 93

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

A good review catches the bug before production and leaves the author better at their job; a bad review rubber-stamps the diff or nitpicks formatting while an injection hole ships. This skill turns review into an ordered procedure - separate passes with separate questions - because reading once for everything at once is how correctness bugs hide behind style comments.

Inputs to collect

Before the first pass, gather: the diff itself, the stated intent (PR description, ticket, or ask the author - reviewing a change without knowing what it claims to do is guessing), and how the change reaches users (user-facing, internal tool, data migration) since that sets the severity bar. Review the change, not the whole codebase: read surrounding context only where the diff demands it.

Operating procedure

Run the passes in this order. Correctness comes first because a beautifully designed wrong answer is worthless, and security before performance because a fast vulnerability is worse than a slow safe path. Do each pass as a separate read of the diff.

Pass 1 - Correctness

Does the code do what the PR says it does? Red flags:

  • Edge cases unhandled: empty inputs, null/undefined, zero, negative numbers, very large values, unicode, concurrency.
  • Errors swallowed silently - an empty catch block or a logged-and-ignored failure is a future 3am page.
  • Off-by-one and boundary conditions: < vs <=, inclusive vs exclusive ranges, first/last iteration.
  • The diff and the description disagree - either the code or the claim is wrong; find out which.
  • State mutated where a caller won't expect it (shared objects, module-level variables).

Pass 2 - Design and readability

Would the next person understand and safely extend this? Red flags:

  • Names that lie or say nothing (data2, handleStuff, a getUser that also writes).
  • The change fights the surrounding codebase's existing patterns instead of following or explicitly replacing them.
  • Abstraction introduced for one caller, or duplication at its third copy left unextracted.
  • Unrelated orthogonal edits riding along - they hide the real change and bloat the blast radius; ask for a split.
  • A public interface that will be hard to change later shipping without discussion.

Pass 3 - Security

Assume hostile input. Red flags:

  • Untrusted input reaching a query, shell, path, or HTML without validation/escaping (injection, XSS, path traversal).
  • Secrets, tokens, or credentials in code, config, or log statements.
  • Missing authN/authZ checks on anything that changes state or reads private data - especially new endpoints.
  • Sensitive data (PII, passwords) written to logs or error messages.

If this pass finds more than one real issue, or the change touches auth, crypto, or money, stop and run secure-code-review as a dedicated pass.

Pass 4 - Performance

Only flag what plausibly matters at real scale. Red flags:

  • N+1 queries, or I/O inside a loop that could batch.
  • Unbounded reads: queries without limits, loading a whole table or file into memory.
  • Missing pagination on list endpoints; missing cache on hot repeated work.
  • Do NOT flag micro-optimizations in cold paths - that is noise that trains authors to ignore you.

Pass 5 - Tests

  • New behavior and its failure paths are covered; a bug fix includes a test that fails without the fix.
  • Tests assert behavior, not implementation (no asserting on internals or call counts of private collaborators).
  • No new flakiness sources: real clocks, sleeps, order dependence, shared state.

Pass 6 - Report

Order findings by severity: blocking (correctness or security defects, missing tests on risky paths) → should-fix (design problems that will cost later) → nit (style, naming; prefix them "nit:" so the author can triage). For each finding give the location, the problem in one line, and a concrete suggestion. Praise what is genuinely good - review is signal, not just defect-finding. State an explicit verdict: approve, approve-with-nits, or request changes.

Worked contrast - phrasing a finding

Bad: "This is wrong. Why would you do it this way? Use a map."

Good: "orders.find() inside this loop makes the handler O(n²); with ~10k orders that's a visible stall. Suggest building a Map by id before the loop - one pass, O(n). Blocking, since the checkout path hits this."

The good version names the location, the concrete consequence, the fix, and the severity - and critiques the code, never the author.

Deliverable

Produce a review report containing: the verdict, findings grouped blocking → should-fix → nit with location + one-line problem + concrete suggestion each, at least one genuine positive when one exists, and a note of which passes were run so gaps are explicit.

Do NOT

  • Do not review everything in one read - single-pass review reliably finds style and misses logic.
  • Do not block on personal style preferences the codebase doesn't enforce; that's a linter's job and it erodes trust.
  • Do not say "this is wrong" without saying what to do instead - every blocking finding carries a suggestion.
  • Do not approve a diff too large to actually read; ask for a split rather than skimming 2,000 lines.
  • Do not let a clean style pass launder a skipped security pass - the passes are not interchangeable.

Quality bar

  • Every pass was executed, or its skip is stated in the report.
  • Every blocking finding names a concrete consequence and a concrete fix.
  • Severity ordering is honest - no security defect filed as a nit.
  • The tone critiques code, not people, and the report ends with an explicit verdict.

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.