agentleFS
tranhieutttranhieutt/software_development_department/.claude/skills/code-review-checklist/SKILL.md

code-review-checklist

Skill72 starsChanged 7 months agoMITView on GitHub

Output: checklist score (X/Y passing) + blocking items with file:line refs + verdict

  • Reads credentials

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

Files
SKILL.md

Code Review Checklist

Pre-review (always start here)

  • Read PR description and linked issue — understand the why
  • Check CI passes before spending time on review
  • Pull branch locally if logic is complex

Functionality

  • Solves stated problem and meets acceptance criteria
  • Edge cases: null/empty inputs, concurrent calls, network failure
  • Error handling: errors caught, message doesn't expose internals
  • No off-by-one, loop termination, or race conditions

Security (block if any fail)

  • No SQL injection — use parameterized queries, not string concat
  • No XSS — escape all user-controlled output in DOM
  • No hardcoded secrets — use environment variables
  • Authentication required on all protected routes
  • Authorization checks presence AND ownership (not just auth)
  • File uploads validated: type, size, content
// ❌ SQL injection
const q = `SELECT * FROM users WHERE email = '${email}'`;

// ✅ Parameterized
db.query("SELECT * FROM users WHERE email = $1", [email]);

// ❌ Hardcoded secret
const KEY = "sk_live_abc123";

// ✅ Env variable
const KEY = process.env.API_KEY;
if (!KEY) throw new Error("API_KEY is required");

Performance

  • No N+1 queries — check ORM calls inside loops
  • Database queries use indexes for filter/sort columns
  • No unbounded queries — always paginate or limit
  • No blocking main thread with sync I/O (Node.js)
  • Caching used for repeated expensive operations

Code quality

  • Names describe intent (calculateTotalPrice not calc)
  • Functions have single responsibility (< ~30 lines is a signal)
  • No dead code or commented-out blocks
  • DRY — no copy-paste of more than 3 lines
  • Follows existing project conventions and patterns
  • Abstractions are deep enough to justify themselves; thin pass-through wrappers fail the deletion test

Tests

  • New behavior has test coverage
  • Happy path + at least 1 failure/edge case tested
  • Tests use real assertions, not just "doesn't throw"
  • No brittle tests that break on unrelated changes

Documentation

  • Complex logic has // why comment (not // what)
  • Public API changes documented
  • Breaking changes documented in CHANGELOG or PR body

Review comment format

**Issue:** [What's wrong]
**Current:** `problematic code`
**Suggested:** `improved code`
**Why:** [reason]

Verdict

  • APPROVED — all sections pass
  • APPROVED WITH CONDITIONS — minor items, non-blocking
  • CHANGES REQUIRED — blocking security, correctness, or test coverage issues

Output: checklist score (X/Y passing) + blocking items with file:line refs + 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.