CommunityCoding & Developmentgithub.com

lggarrison/agent-skills

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.

What is agent-skills?

agent-skills is a Claude Code agent skill that 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.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lggarrison/agent-skills/tree/HEAD/skills/pr-review

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

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.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

lggarrison/agent-skills

Writes, debugs, and reviews end-to-end tests that drive a whole app through a browser, a CLI, or an API the way a user would. Covers choosing which journeys deserve an e2e test, stable locators, waiting on conditions instead of time, isolated test data, debugging failures from traces, and fixing flaky tests at the cause. Defaults to Playwright when a repo has no e2e tool yet. Use when adding or changing an e2e test, an e2e test fails or is flaky in CI, or reviewing e2e tests in a diff.

lggarrison/agent-skills

Writes and maintains project roadmaps as Markdown files in the repository. Each roadmap has phases, work items with stable IDs and checkable acceptance criteria, explicit dependencies, a list of unresolved decisions, and a changelog. Use when asked to create, update, reconcile with recent work, restructure, or review a roadmap or delivery plan.

lggarrison/agent-skills

Sets up or audits a repository's baseline files, including license, security policy, contributing guide, README, editor and Git hygiene, PR and issue templates, Dependabot, CI, and for Node.js/TypeScript projects the lint, format, test, hook, and publish tooling. Includes starter PR and issue templates. Use when bootstrapping a new repository, adding missing community or GitHub files to an existing one, or checking a repository against a new-repo checklist.

lggarrison/agent-skills

Sets up and maintains a Markdown wiki inside a repository that agents keep current, in the "LLM wiki" style. Use when asked to create a project wiki, add a source to it, answer a question from it, update it after a code change, check it for broken links or stale pages, or reorganize it.

Related Skills