agentleFS
atuljha23atuljha23/holocron/skills/pr-review-rubric/SKILL.md

pr-review-rubric

Skill2 starsChanged 7 months agoMITView on GitHub

Staff-level PR review rubric — correctness, contract, clarity, tests, blast radius. Use when reviewing code (yours or others') before merge.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    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:

    Read the PR description. If there isn't one, that's the first problem.

    line 12
  2. Distinctive:

    Read the tests first — they describe the contract.

    line 14
  3. Distinctive:

    If you can't state what this PR does in one sentence in your own words, you can't review it yet.

    line 17
  4. Distinctive:

    Do they assert behavior the user cares about, or implementation detail?

    line 43
  5. Distinctive:

    Do the tests actually run?

    line 47
  6. Distinctive:

    Only flag real risks. "You could add validation here" is noise unless there's an exploitable surface.

    line 57
  7. Distinctive:

    If this touches authn/authz, data egress, or user-controlled strings → apply the security checklist.

    line 58
  8. Distinctive:

    Do not optimize on feel. If you flag perf, propose a measurement.

    line 63
  9. Distinctive:

    Every comment has a severity:

    line 67
  10. Distinctive:

    Don't rewrite the PR in the comments.

    line 79
  11. Distinctive:

    Ask before assuming incompetence — sometimes there's context you don't have.

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

PR review rubric

What a staff-plus engineer looks at when reviewing.

1. Understand before commenting

  • Read the PR description. If there isn't one, that's the first problem.
  • Skim commits. A clean story of atomic commits tells you what the author was thinking.
  • Read the tests first — they describe the contract.
  • Now read the code.

If you can't state what this PR does in one sentence in your own words, you can't review it yet.

2. Correctness

  • Does the happy path do what the description claims?
  • What are the boundary inputs? (empty, huge, zero, negative, unicode, null, undefined, missing)
  • What about concurrency? Two callers at once. Retries. Cancellation.
  • Error paths — is every throw handled, and is the handler the right place?
  • Off-by-one, inclusive/exclusive range, integer overflow on counters.

3. Contract

  • Public API change? Add-only? Breaking?
  • Response shape change — who depends on the old shape?
  • Database schema change — is the migration safe under traffic?
  • Removed a function — who called it? git grep before approving the delete.

4. Clarity

  • Names convey intent. getUser returns a user. getUserOrDefault returns a user or a default. resolve explains nothing.
  • Control flow reads top-to-bottom with minimal branching surprise.
  • The obvious case isn't buried under the edge case.
  • Comments explain why, not what. If there's a non-obvious constraint, it's documented.

5. Tests

  • Do they assert behavior the user cares about, or implementation detail?
  • Would they catch the next regression of this code?
  • Are the failing messages useful, or "expected true got false"?
  • Are there tests for every new branch?
  • Do the tests actually run? (Yes, this gets missed.)

6. Blast radius

  • What else does this code touch or get touched by?
  • Are those callers tested, or are we relying on this PR's tests alone?
  • Is there a way to stage the rollout?

7. Security

  • Only flag real risks. "You could add validation here" is noise unless there's an exploitable surface.
  • If this touches authn/authz, data egress, or user-controlled strings → apply the security checklist.

8. Perf

  • Loops inside loops on user data. Queries inside loops. New deps that balloon the bundle.
  • Do not optimize on feel. If you flag perf, propose a measurement.

Severity

Every comment has a severity:

  • Blocker — must fix before merge
  • Important — should fix, call out if intentional
  • Nit — optional polish
  • Question — explain the choice

Pick the right severity. "Blocker" for whitespace is how people learn to ignore you.

Respect the author

  • Point at the problem. Let them choose the fix.
  • Don't rewrite the PR in the comments.
  • Ask before assuming incompetence — sometimes there's context you don't have.
  • Approve with nits is a valid verdict. Don't chain-block on trivia.

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.