agentleFS
lggarrisonlggarrison/agent-skills/skills/pr-review/SKILL.md

pr-review

Skill0 starsChanged 23 days agoMITView on GitHub

Code review rules for pull requests. Use when reviewing a PR or a diff, or re-reviewing a PR after new commits: what to flag, the severity bar, the comment format, and how to converge over review rounds instead of raising new minor issues every time.

195 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oss-pr, pr-automation and 10 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.
  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • jtenniswoodSkill

    expert-reset

    Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.

    Also in 3 projects that use this

  • jtenniswoodSkill

    updates

    Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.

    Also in 3 projects that use this

  • openchamberSkill

    clack-cli-patterns

    Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.

    Also in 3 projects that use this

  • openchamberSkill

    drag-to-reorder

    Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.

    Also in 3 projects that use this

  • +6 more from openchamber

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't raise new findings on code you already reviewed and that hasn't changed.

    line 52
  2. Distinctive:

    Don't re-raise a finding the author answered with a reason, unless you have new evidence that the reason is wrong.

    line 55
  3. Distinctive:

    If nothing meets the bar, say so in one line and stop.

    line 57
  4. Very specific:

    Start with the severity: Blocking:, Should fix:, or Nit:.

    line 62
  5. Distinctive:

    When another agent is fixing your findings and asking you for the next review:

    line 79
  6. Distinctive:

    Treat the author's replies as part of the review.

    line 81
  7. Distinctive:

    After three rounds, post only blocking findings, and say that the remaining items are the author's call.

    line 83

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

PR review

These rules are for any reviewer, human or agent (Copilot code review, Claude, and others). The sister skill github covers the author's side: fixing comments, replying, and asking for the next review. Where the repo's own review rules (AGENTS.md, CONTRIBUTING.md, a style guide) conflict with this skill, the repo's rules win.

The goal of a review is to get a correct PR merged. It isn't to find something to say. "No issues found" is a good outcome.

The bar for a finding

Post a finding only if you can name a realistic failure: a real caller, input, or setup, and the wrong result it produces. If you can't write that scenario in a sentence or two, don't post it.

SeverityUse for
BlockingWrong results on a common path, security holes, data loss, a broken build or tests, a breaking change to a public API, or a clear break of a rule written down in the repo
Should fixA real bug on a less common path, a missing test for new behavior, or docs or instructions that would lead a reader to do the wrong thing in a normal case
NitNaming, wording, or small clarity fixes. Optional by definition. At most three per review, and only in the first round

Don't post:

  • Hypotheticals that need unrealistic input, a misconfigured environment, or an attacker who already has the access the attack would give them.
  • Defensive code for a case no caller can reach ("consider adding a null check").
  • Anything a formatter, linter, or type checker in the repo already enforces.
  • Personal preference between two reasonable approaches.
  • Performance concerns with no hot path or measurement behind them.
  • Requests to widen the PR: features, refactors, or cleanups it didn't set out to do.
  • Problems in code the PR didn't change, unless the PR makes them worse. If something serious is there anyway, mention it once, marked pre-existing, not blocking.

For docs, skills, and other instructions, ask one question: would a reader following this text do the wrong thing in a normal case? Gaps for rare setups are nits at most. Don't ask for every edge case to be spelled out.

Converging over rounds

A PR should get quieter with each review, not noisier.

  • Round 1 (first review): the full diff, every severity, nits capped as above.
  • Round 2 and later (new commits since your last review):
    • Review only what changed since your last review, and check whether your earlier findings were fixed.
    • Don't raise new findings on code you already reviewed and that hasn't changed. If you missed something there, post it only if it's blocking.
    • No nits.
    • Don't re-raise a finding the author answered with a reason, unless you have new evidence that the reason is wrong. Disagreement alone isn't new evidence.
  • If nothing meets the bar, say so in one line and stop. Don't pad the review.

Writing findings

  • One issue per comment, anchored to the line it's about.
  • Start with the severity: Blocking:, Should fix:, or Nit:.
  • Then the failure scenario in one or two sentences, then the smallest fix that works.
  • At most five findings per review, most severe first. If there are more, list the rest briefly in the summary. Merge duplicates into one comment that lists every place.
  • Be specific and neutral. No praise padding, no hedged "you might want to consider".

The summary

End with a short summary:

  1. A verdict: Approve, Approve with nits, or Changes requested (only when there's at least one blocking finding).
  2. Counts by severity.
  3. On round 2 or later: which earlier findings are now fixed, and which are still open.

Reviewing as an agent in a loop

When another agent is fixing your findings and asking you for the next review:

  • Treat the author's replies as part of the review. "Fixed in abc1234" means check that commit. "Leaving as is, because…" means the finding is closed unless the reason is wrong.
  • After three rounds, post only blocking findings, and say that the remaining items are the author's call.

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.