/agent-skills:review-prfrom agent-skills
Reviews GitHub PRs with Staff Engineer rigor: mechanical grounding via CI/local verification, focused design and security passes, calibrated severity labels, and inline suggestion blocks. Use when asked to review a PR or give code feedback.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Review someone else's pull request and deliver the kind of review a rigorous human Staff Engineer would: grounded in evidence, labeled by severity, and quiet about everything that doesn't matter.
The prime directive is precision over recall. Developer trust in a reviewer collapses non-linearly with false positives — a handful of wrong or noisy comments and every future comment gets skimmed. A review that surfaces three real issues beats one that surfaces three real issues buried in ten speculative ones. When unsure whether an issue is real: it isn't. Drop it.
The governing standard (Google's, and ours): favor approval once the PR definitely improves the overall code health of the system, even if it isn't perfect. You are reviewing for "better", not "perfect".
Run the bundled context fetcher from the repo root (read-only):
// turbo
bash scripts/fetch-pr-context.sh <pr>
It resolves the PR (argument, or the current branch's open PR), and writes:
/tmp/pr-context.json — title, body, author, base/head refs, draft state,
changed files with add/delete counts, CI check rollup/tmp/pr-threads.json — all existing review threads with resolution stateThen gather what the script can't:
gh pr diff <number> (or git diff base...head if checked
out). Note which lines belong to diff hunks — GitHub rejects inline
comments outside them.Fixes #N / Closes #N → gh issue view N). If the description is
empty, reconstruct intent from the commit messages. You cannot judge
"does this do what it intends, and is that good for this codebase?"
without knowing the intent. If intent is genuinely unrecoverable, say so
in the review summary and review what the code does.AGENTS.md / CONTRIBUTING.md /
style or architecture docs for the touched areas. Comments grounded in
the repo's own documented rules ("CONTRIBUTING.md requires X here")
carry far more weight than generic best practices — prefer them./tmp/pr-threads.json): what other reviewers
and bots have already said. Never re-raise a point that has already been
made, resolved, or explicitly dismissed on this PR.If the PR is a draft, note it: review for direction, don't nitpick incompleteness the author already knows about.
Deterministic signals first — they are ground truth the review anchors on, and anything a machine already caught is not worth a comment.
statusCheckRollup in the context file. Failing
required checks are the first thing the summary should state — and
redundant inline comments about what CI already flags are noise.run_local_verification input; default
auto = only when CI is absent/inconclusive and the working tree is
clean): gh pr checkout <number>, then resolve and run verification the
same way the self-review skill's Step 1.1 does — explicit command →
repo-provided entry point → the toolchain-inference helper
(../self-review/scripts/verify.sh) → targeted derivation from repo
docs. Record what ran and its result; restore the original branch after.
Security: building/testing a PR executes its code. For PRs from
untrusted authors, skip local execution unless sandboxed (never).Read every changed file in full, not just the diff — a change is only
correct in the context of the code around it. For non-trivial changes, also
read the callers/consumers of changed public symbols (grep for them):
signature and behavior changes break code the diff never shows.
Then review in separate focused passes — a pass with one named concern finds more than one diffuse read, and mixing security into a general pass measurably dilutes both:
self-review skill
(read ../self-review/SKILL.md, Pass 2: abstraction quality, naming,
DRY vs over-abstraction, error handling, change resilience, codebase
coherence, simplicity, test quality, the gestalt). Independence comes
free here — you didn't write this code — but the demonstrability bar
still applies in full.For each candidate finding, apply these gates in order — a finding must survive all of them:
question:.nit:. Don't demand
perfection beyond what the repo's own code demonstrates.Label every surviving finding with severity:
| Label | Meaning |
|---|---|
blocking: | Would make the codebase worse if merged — bug, security issue, broken contract, missing critical test. Must include the demonstration. |
important: | Should be addressed, but reasonable people could sequence it differently (this PR or a fast-follow). |
nit: | Worth doing, author may ignore. Polish only. |
question: | A genuine question that materially affects the review — not a rhetorical device for a suggestion. |
praise: | Something genuinely well done, when true — at most one or two; reviewers who only criticize train authors to dread review. |
Where a fix is small and concrete, embed a GitHub suggestion block so the author can apply it in one click:
```suggestion
<the corrected line(s), exactly as they should appear>
```
Sort by severity and enforce max_comments (default 10) — if the cap trims
anything above nit, say so in the summary ("N additional minor points
omitted").
Summary body (the review's top-level comment), in order:
Event type: always COMMENT. An agent does not APPROVE (that is a
human's accountability) and does not REQUEST_CHANGES (a bot blocking merges
breeds resentment) — state the blocking findings in the summary and let
humans decide.
Submit (when post is true): build the payload and post it —
gh api repos/<owner>/<repo>/pulls/<number>/reviews --input /tmp/review-payload.json
with /tmp/review-payload.json shaped as:
{
"body": "<summary body>",
"event": "COMMENT",
"comments": [
{"path": "src/file.py", "line": 42, "side": "RIGHT", "body": "blocking: <finding>"}
]
}
Every comment line must fall inside a diff hunk (use start_line +
start_side for multi-line comments). Apply comment_prefix to every body
if set. Omit the comments field entirely when there are none. If the API
rejects a comment for being outside a hunk, move that finding into the
summary body rather than dropping it.
When post is false: write the complete review (summary + findings with
paths/lines) to /tmp/pr-review-report.md and print it.
Report: PR reviewed, verdict, findings posted by severity, what was verified and what wasn't, and the review URL. Clean up temp files.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (stevevitali/agent-skills) — no native marketplace selected
npx claudepluginhub p/stevevitali-agent-skills12 skills in this plugin
/address-pr-commentsWork through unresolved review comments on your PR as the author: triage every thread, implement fixes where the reviewer is right, push back with rationale where they aren't, answer questions, commit + push, and reply to every thread with what happened. Use when asked to address, respond to, or resolve PR review feedback./agent-docsCreate or converge agent documentation (AGENTS.md hierarchy) for a codebase — bootstrap mode generates docs from scratch, refresh mode detects and fixes drift/audit-buildIndependent, fresh-context critical re-review of tickets that have already landed in a multi-session build. It covers the last N tickets, every ticket since the previous audit, named tickets, or a git range. Each ticket's acceptance criteria are re-checked against the code, tests and evidence, and claims are compared with what is verified. Faked or weakened checks, cross-ticket duplication and sole-owner violations are hunted down. Every finding is verified before it is reported, and fixes are routed through the build's own repair mechanisms. It also has an evaluation mode: a pre-registered, blinded measurement study of an implementer's work, which estimates how much auditing is actually needed, where and why. Use it to keep cheaper implementation models in check with periodic review by a stronger model, and to decide on evidence how often that review should run. Read-only on the build; never fixes, merges or edits landed records./build-memoryOwns the build-memory contract that the multi-session build skills share: the committed layout under docs/build/, docs/tickets/ and docs/adr/, the templates, the validator, and legacy-scratch migration. Use it to initialise the layout in a repo (init), validate it (check), migrate a legacy gitignored scratch dir into the committed tree (migrate), or regenerate the ADR index (adr-index). Other skills cite skills/build-memory/layout.md rather than restating the layout./decompose-specTurn one large spec into an optimally-partitioned, dependency-ordered ticket plan — the fewest self-contained tickets that each fit one fresh-context implementation run — and seed a durable build ledger plus per-ticket contract files and a manifest runbook (relocatable into the repo tree via tickets_dir). The planning half of a multi-session build; pairs with orchestrate-build./implement-specSpec-driven, autonomous end-to-end: branch → plan + test matrix → implement (tests alongside) → self-review → gap-analysis vs spec → close gaps → rigorous downstream verification → PR + evidence reportOther plugins' skills for the same job