agentleFS
las-pinterlas-pinter/persona-agents/skills/reviewer/code-review-checklist/SKILL.md

code-review-checklist

Skill2 starsChanged 2 months agoMITView on GitHub

Structured checklist for reviewing code changes — severity taxonomy, methodology, domain-specific checks, and anti-patterns.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing.

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.
  • tiendatworkSkill

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

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    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:

    No hardcoded credentials; environment variables used properly

    line 125

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

Review Methodology (6 Steps)

  1. Scope — Read PR title, description, linked ticket. Check which files and areas changed.
  2. High-level pass — Does the overall approach make sense? Simpler alternative? Respects architecture?
  3. Deep dive — Read every changed line. Logic correct? Edge cases handled? Tests verify the right behavior?
  4. Cross-cutting pass — Security, performance, observability across the whole change.
  5. Craft comments — One concern per comment; explain WHY; reference exact lines; offer alternatives; use "we" or "this line"; acknowledge good code. Assign severity.
  6. Follow up — Verify blocker fixes were applied; approve when all blockers resolved.

Severity Taxonomy

Label every issue so the author can triage at a glance:

SeverityLabelMeaning
🔴BLOCKERMust fix before merge. Bug, security hole, or spec violation.
🟠CRITICALShould fix before merge. Likely causes production bugs.
🟡IMPORTANTShould fix, doesn't block merge. May cause future issues.
🔵SUGGESTIONNice to have. Quality or maintainability improvement.
⚪NITStyle preference only. Never blocks a PR.

The Checklist

Many standards below are defined in the implementer's code-implementation skill; here they are verified from the review side.

1. PR Overview

  • Description explains what and why (not just how)
  • All changes logically belong in this PR
  • Matches the linked ticket/issue/spec
  • README, docs, or API specs updated if behavior changed

2. Design & Architecture

  • Overall approach makes sense for the problem
  • Follows existing architectural patterns (or diverges with good reason)
  • Abstractions are justified — not premature, not missing
  • Makes future changes easier, not harder

3. Correctness & Functionality

  • Code does what the developer intended
  • Edge cases: empty/null/zero, boundary conditions, invalid input
  • Concurrency: race conditions, deadlocks, atomicity
  • Failure modes: errors, timeouts, partial failures
  • Idempotency where expected (retries won't cause double-processing)

4. Complexity

  • Each function/class does one thing (no "and" in function names)
  • A new developer could understand this within a minute
  • No over-engineering (YAGNI)
  • Cyclomatic complexity reasonable — deep nesting extracted into helpers

5. Security

  • All user/input data validated and sanitized at trust boundaries
  • Auth enforced on every protected path
  • Sensitive data not logged, not exposed in errors, encrypted at rest/transit
  • No injection vulnerabilities: SQL, NoSQL, XSS, command injection, SSRF, path traversal
  • Dependencies checked for known vulnerabilities (if applicable)

6. Tests

  • Tests included in the same PR
  • Happy path and failure/edge cases covered
  • Tests actually fail when corresponding code breaks
  • Test names describe the scenario, not the function

7. Error Handling & Resilience

  • Errors handled explicitly — not swallowed (no bare except/catch)
  • Error messages meaningful: include context, not just "error"
  • Timeouts set for all external calls
  • Resources cleaned up in all paths (success AND error)

8. Performance

  • No N+1 queries or redundant network requests
  • No obvious algorithmic inefficiencies
  • Resources properly released

9. Naming & Readability

  • Variable, function, class names are descriptive and unambiguous
  • Booleans read naturally: isActive, hasPermission, canDelete
  • Magic numbers/strings extracted to named constants

10. Comments & Documentation

  • Comments explain why, not what
  • No outdated comments or commented-out code
  • TODOs linked to tickets or have owners

11. Style & Consistency

  • Follows team style guide and project conventions
  • Style nits prefixed NIT:

12. Observability & Operations

  • New features covered by logging, metrics, or structured events
  • Log levels appropriate: ERROR for failures, WARN for anomalies, INFO for notable events
  • No PII or secrets logged

Domain-Specific Checks

Web / Frontend

  • Accessibility: keyboard navigation, screen reader support, color contrast
  • Bundle size: new dependencies justified? Code-splitting used?
  • State management: cleanup on unmount? Race conditions in async effects?

API / Backend

  • API contract matches what clients expect; versioning handled
  • Request body validated at the boundary
  • POST/PUT endpoints handle duplicate requests safely (idempotency)

Data / Migrations

  • DROP or destructive ALTER statements — reversible?
  • Rollback plan exists and is documented
  • Data integrity: constraints, orphaned records handled

Infrastructure / Config

  • No hardcoded credentials; environment variables used properly
  • Service roles and IAM policies follow least privilege
  • Dependency/image version changes tested

PR Size Strategy

SizeLinesApproach
🟢 Small< 200Full review using entire checklist
🟡 Medium200-500Deep review on changed files; quick scan on related files
🟠 Large500-1000Ask to split. If can't, review by commit or feature boundary
🔴 Excessive> 1000Request smaller PRs before reviewing

Anti-Patterns

Anti-PatternDo This Instead
Rubber-stampingRead every changed line
Bikeshedding on trivial issuesLabel nits, move on
50+ comments without prioritizationUse severity labels; distinguish blockers from nits
Criticizing test style over missing coverageFix coverage gaps first

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.