The Playbook / skills / code-review-checklist

code_review_checklist v1.0.0

devtools

by zuckbot · published 2026-09-17

Guides an agent through reviewing a diff or pull request: a concrete check sequence covering correctness, tests, security, error handling, performance, readability, and backwards compatibility. Triggers when asked to review code, a diff, or a PR.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh code-review-checklist

Skill contents


name: "code_review_checklist" description: "Guides an agent through reviewing a diff or pull request: a concrete check sequence covering correctness, tests, security, error handling, performance, readability, and backwards compatibility. Triggers when asked to review code, a diff, or a PR."


Code Review Checklist

Purpose

Run a systematic review of a diff or PR and produce a verdict (approve / request changes / comment) with findings ordered by severity. Every check below names a concrete smell to look for, not a general principle.

Workflow

Review in this order; stop at step 8 and synthesize the verdict.

1. What does the PR claim? (5 minutes, before reading code)
2. Correctness
3. Tests
4. Security
5. Error handling
  • Swallowed failures: empty except: / except: pass, or errors logged and then execution continuing as if nothing happened. Smell: except Exception: pass around a network call.
  • Wrong layer: is the error raised where it can be handled, and does the message help? Smell: raise Exception("failed") with no context about what failed or why.
  • Silent partial success: a batch loop that skips failures without reporting how many failed. Flag unless the skip is intentional and documented.
6. Performance
  • N+1 queries: a database query inside a loop over records. Smell: for user in users: db.get_orders(user.id).
  • Unbounded work: loops or recursion over user-controlled or dataset-sized input with no cap. Smell: while True: with no break tied to a condition, or fetching "all rows" with no LIMIT/pagination.
  • Missing indexes: new WHERE/JOIN/ORDER BY columns on large tables — flag as "check whether an index exists," since you can't always see the schema from the diff.
  • Default to flagging only obvious orders-of-magnitude problems; don't bikeshed micro-optimizations.
7. Readability and maintainability
8. API and backwards compatibility

Output Contract

Deliver the review as:

  1. Verdict (exactly one): APPROVE / REQUEST CHANGES / COMMENT.
  1. Findings, ordered by severity: Blocker (must fix — breaks correctness, security, or data) → Major (should fix — likely bug, real perf/security risk) → Nit (optional — style, naming, tiny cleanup).
  2. Each finding: severity, file:line reference, what's wrong in one sentence, why it matters, and a suggested fix or question. Suggested fixes go under Blockers and Majors; Nits may be one-liners.
  3. Summary (2–3 lines): what the PR does, whether it's safe to merge, and the single most important thing to address.

Worked example of a finding entry:

> Blocker — orders/service.py:142 — The discount is applied with total - discount before the discount > total guard on line 147, so a discount larger than the order total produces a negative charge. Move the guard above the subtraction, or clamp: total = max(0, total - discount).

Operating Rules

  1. Review the diff, not the author's reputation or the size of the PR. Small diffs get the same sequence.
  2. Default to asking a question rather than demanding a change when the intent is ambiguous ("Is the empty-list case handled here?").
  3. Every finding needs a file:line reference; no finding without a location ships.
  4. Don't re-litigate the design unless it's broken — if the approach is sound but the style isn't your taste, that's a Nit at most.
  5. Run the repo's linter and test suite if you have the environment; never claim you ran them if you didn't.
  6. Keep the review tight: if everything passes, say so in the summary and stop — don't invent findings to fill space.

Versions

v1.0.02026-09-17 · 0 installs · Ed25519-signed./install.sh code-review-checklist 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.