/pr-review-copilot:review-difffrom pr-review-copilot
Generates a structured PR review document from a diff or PR link: a short statement of what the PR does and whether the implementation matches its stated intent, a findings table (severity, category, file:line), and for each finding a reasoning explanation, a draft comment the reviewer will reword before posting, and a suggested diff when there's an unambiguous fix. Use this skill whenever the user asks to review a PR, review a diff, do a code review, check a pull request before merging, or pastes a diff and asks what's wrong with it. Also trigger on "--focus security", "--focus performance" etc. to narrow the scan to one category.
Ships in pr-review-copilot. 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.
Produce a review document, not review comments posted anywhere. The reviewer will read the document, reword what they want to use, and post it themselves. Nothing gets posted automatically by this skill.
Accept any of:
gh CLI, which is how the rest
of this marketplace reaches GitHub:
gh pr view <pr> --json title,body,author,url,baseRefName,headRefName
for the description, author, and linkgh pr diff <pr> for the diffgh repo view --json nameWithOwner -q .nameWithOwner (or the URL's
owner/repo) for the repo name used in review historygit diff <base>...HEAD for a branch,
git diff / git diff --staged for uncommitted work. Use the branch's
commit messages as the stated intent when there's no PR description.diff/patch text)gh isn't installed or authenticated, or for a GitLab MRIf only a diff is given with no description, proceed without one and note in the "Understanding" section that intent is inferred from the diff alone.
Load conventions — before scanning, check whether the project's
.claude/pr-review-conventions.md (at the repo root) has entries relevant
to the files being reviewed; if the file doesn't exist, there are none.
Read it via the team-conventions skill if unsure how to interpret an
entry. Do not flag anything the conventions file explicitly permits.
Build understanding — write 2-4 sentences: what the PR changes, the inferred or stated intent, and whether the implementation appears to match that intent. Call out anything that seems inconsistent with the PR's stated purpose (e.g. a "docs only" PR that touches retry logic).
Run scan passes. Run all of these unless a --focus flag narrows it:
Only flag what the diff and visible surrounding context actually support. Do not invent issues to fill out categories with nothing wrong.
Check history — if the project's .claude/pr-review-history.local.json
has prior findings for this repo/author on a similar pattern, note the
recurrence in that finding's reasoning (see review-history skill) rather
than treating it as a fresh one-off.
Assign severity per finding:
Blocking — will cause a bug, security issue, or data problem in prodShould-fix — real problem, not urgent enough to block mergeNit — style/preference, safe to ignoreWrite the document using the template in references/document-template.md.
Fill in every section. Only include a "Suggested fix" block when there's a
concrete, unambiguous change — skip it for findings that need judgment
calls (e.g. "consider renaming this").
Deliver the document inline in your response, so the reviewer can
scan the table and copy individual draft comments straight out of the
conversation. If the user asks for a file, write it where they ask
instead (default to the scratchpad directory, not the repo under review,
so it never lands in a commit). Do not post anything to GitHub/GitLab
even if gh or a connector with write access is available, unless the
user explicitly asks you to post a specific comment after reviewing the
document.
Log findings — once the document is delivered, append every finding
to .claude/pr-review-history.local.json as described in the
review-history skill's "Logging" section. Do this on every run, not
only when asked; step 4's recurrence check has nothing to compare against
otherwise. Take repo and author from the PR metadata gathered under
Inputs; for a pasted diff or local branch with no PR, use the repo from
git remote get-url origin (or the directory name) and "unknown" for
the author rather than guessing. Skip logging only when the findings
table is empty.
See references/document-template.md for the exact output format and a
filled-out example.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/review-historyLogs findings from each review into the project's .claude/pr-review-history.local.json and checks new findings against past ones, so a pattern that keeps recurring for a repo or author gets flagged as a recurring issue (worth a lint rule or a team convention) rather than treated as a fresh one-off every time. Use this skill after review-diff produces findings, or when the user asks "has this come up before," "is this a recurring issue," or wants a summary of recurring findings for a repo or author.
/team-conventionsReads and edits the team's style/convention rules stored in the project's .claude/pr-review-conventions.md, so code reviews stop re-flagging debates the team has already settled (e.g. "we allow `any` in test files"). Use this skill when the user asks to view, add, remove, or update a review convention, runs "/pr-review-copilot:team-conventions", says something like "stop flagging X" or "we decided Y is fine," or when review-diff needs to check whether a potential finding is already covered by an existing rule.
npx claudepluginhub meaganewaller/marketplace --plugin pr-review-copilot