Review a GitHub PR and present findings as author-addressed comments. Use when the user asks to review a PR, gives a PR URL or number, or asks for code review feedback on a pull request. Also re-reviews a PR the user already commented on, checking which comments were addressed. Reviews dependency-upgrade PRs (Dependabot, Renovate, Snyk, security bumps) by diffing the released library code between the two versions, bounding transitive upgrades by depth, and checking the changes against how the app uses the library. Triggers on phrases like "review this PR", "look at this pull request", "code review", "the author addressed my feedback", "look at the PR again", "re-review", "is this dependency bump safe", "will this upgrade break anything", or any GitHub PR link.
Ships in pr-workflow. 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.
Accepts a PR URL (e.g. https://github.com/org/repo/pull/123) or a PR number (for the current repo), or several of them.
Check whether the user has already reviewed this PR: gh api repos/{owner}/{repo}/pulls/{number}/reviews --jq "[.[] | select(.user.login == \"$(gh api user --jq .login)\")] | length".
references/follow-up.md instead of steps 2–7, then apply step 8 and the Output rules it points to. Do a first review anyway if the user asks for a full or fresh review.A first review of a dependency upgrade follows steps D1–D7 of references/dependency-upgrade.md instead of steps 1–5. Then it applies steps 6–8, and the Output rules in that file. A PR is one when its purpose is to move packages to new versions: it comes from Dependabot, Renovate or Snyk, or its title says it updates or bumps a dependency, and its diff is mostly manifests and lockfiles. Hand-written code changes in the same PR also get steps 4–5.
Every review, first or follow-up, reads the code from a standalone worktree checked out at the PR's latest head, so it sees the full files around each hunk and never touches the user's own checkout. One worktree per PR.
origin is the PR's repo (gh repo view --json nameWithOwner), or a clone the user points to. With neither, clone it: gh repo clone <owner>/<repo> ~/.worktrees/<repo>/pr-<number> -- --filter=blob:none. That clone is the workspace, so skip step 3's worktree add and check out the head there with git checkout --detach.headRefOid and baseRefName from gh pr view <pr> --json headRefOid,baseRefName, then fetch both from the base repo, which also carries the head of a PR from a fork:
git -C <clone> fetch origin <baseRefName> "+refs/pull/<number>/head:refs/remotes/origin/pr/<number>"
If origin/pr/<number> is not headRefOid, the PR moved while fetching: fetch again.git -C <clone> worktree list already has it, and move it with git -C <worktree> checkout --detach <headRefOid>. Otherwise add one outside any repository:
git -C <clone> worktree add --detach ~/.worktrees/<repo>/pr-<number> <headRefOid>
A detached head never collides with a branch the user has checked out elsewhere.git -C <worktree> and absolute paths. Never check out, stash, reset or pull in the user's checkout. The PR's diff is git -C <worktree> diff origin/<baseRefName>...HEAD.git -C <clone> worktree remove <worktree> when the user is done with the PR.Fetch in parallel:
gh pr view <pr> --json title,body,files,additions,deletions,baseRefName,headRefNamegh pr diff <pr>gh api repos/{owner}/{repo}/pulls/{number}/commentsRead the full diff carefully. For large diffs, read persisted output files fully. Open the changed files in the worktree to read each hunk in context, and follow callers and tests the diff does not show.
Write a clear explanation of the PR:
Question the approach before the lines: does the change fix the cause or patch a symptom, is it at the right layer, and is there a sturdier alternative (watch for heuristics such as regexes or keyword lists over open-ended input like speech, free text or model output)? When several findings share one cause, report the cause as its own finding, above them.
Review for: bugs, missing error handling, security issues, performance problems, naming/readability, convention violations, lock file anomalies, unsafe casts/patterns.
Classify each finding on two axes:
Assign each finding a stable id: F1, F2, … numbered in output order. The user refers to findings by these ids later (e.g. "fix F2", "post F1 and F3"), so reuse the same ids when the conversation returns to this review.
Decide the verdict. It follows from the blockers, so the two never disagree:
Print the review directly — do NOT post comments to the PR unless the user explicitly asks. When they do, follow references/posting.md; it applies to a follow-up review's findings too.
Format: H2 title with PR name, then the verdict line, then a "What this PR does" section explaining the changes (from step 3), followed by a "Findings" section, then a "Positives" section noting what was done well.
In Findings, open with a one-line tally (e.g. 5 findings, 2 blockers), then list blockers first, then the rest, each ordered by severity. Every finding starts with its id; only blockers carry an explicit mark, so anything unmarked is non-blocking:
**F1 · 🚫 Blocker · High** — `src/auth.ts:42`
Token expiry is compared in seconds against a millisecond timestamp, so every token is treated as expired.
Suggestion: compare against `Date.now() / 1000`.
**F2 · Nit** — `src/auth.ts:57`
`tmp` doesn't say what it holds.
Suggestion: rename to `decodedClaims`.
If there are no findings, say so instead of the tally.
The verdict line sits directly under the title so the decision is the first thing read. It names the blockers behind a Request changes:
**Verdict: ❌ Request changes** — blocked by F1, F3
**Verdict: ✅ Approve**
references/dependency-upgrade.md (opens in a new tab)references/follow-up.md (opens in a new tab)references/posting.md (opens in a new tab)scripts/depdiff (opens in a new tab)scripts/depdiff.py (opens in a new tab)scripts/depreview/__init__.py (opens in a new tab)scripts/depreview/changelog.py (opens in a new tab)scripts/depreview/classify.py (opens in a new tab)scripts/depreview/cli.py (opens in a new tab)scripts/depreview/extract.py (opens in a new tab)scripts/depreview/graph.py (opens in a new tab)scripts/depreview/lockfiles/__init__.py (opens in a new tab)scripts/depreview/lockfiles/cargo.py (opens in a new tab)scripts/depreview/lockfiles/errors.py (opens in a new tab)scripts/depreview/lockfiles/gomod.py (opens in a new tab)scripts/depreview/lockfiles/npm.py (opens in a new tab)scripts/depreview/lockfiles/pnpm.py (opens in a new tab)scripts/depreview/lockfiles/poetry.py (opens in a new tab)scripts/depreview/lockfiles/pyproject.py (opens in a new tab)scripts/depreview/lockfiles/uvlock.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/pr-workflow:pr-reviewfrom pr-workflow
npx claudepluginhub driangle/ai-powers --plugin pr-workflow14 skills in this plugin
/change-recapRecap what changed in an area of the code over a timeframe — new features, improvements, fixes and under-the-hood work — from the pull requests merged on GitHub in that window, grouped by initiative and project where the issue tracker records them, enriched with the ticket updates and Slack threads from the same window (confirmations, rollouts, problems after merge, follow-ups), and credited to who built and reviewed each change, written so developers and managers can both read it, as an HTML page that can be published as a Claude Artifact. Typically run on Fridays for the week's recap. Use whenever someone asks what changed, shipped, got merged or happened in a repo, service, folder, product area or team this week, last week, this sprint or since a date, asks for a weekly or Friday recap, a "what's new" or a changelog-style summary of recent work, even if they don't say "recap"./commitCommit all uncommitted changes with an auto-generated conventional commit message. Use when the user asks to commit, save changes, or invokes /commit./commit-msgGenerate a one-line conventional commit message from staged changes. Use when the user asks for a commit message or invokes /commit-msg.