/eng:pr-review-resolver [--ask] [pr-number-or-url]from eng
Address outstanding review feedback on a GitHub pull request: unresolved review threads, submitted review bodies, and general PR comments. Triages each critically, fixes what it agrees with, and pushes back on the rest. Use whenever the user wants to address, fix, resolve, or work through PR review comments or feedback, even if they just say "handle the PR comments", "fix what the reviewers said", or "go through the PR", or pastes a PR URL and asks you to act on the feedback there.
Ships in eng. 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.
Assess every piece of outstanding feedback on a PR, fix what the reviewer got right, push back on what they got wrong, and close the loop with them.
$ARGUMENTS may carry a PR number or URL and --ask, in any order. "Ask me
first" or "let me review" in the request also turns on --ask.
--ask: show the whole triage for approval before changing code or
posting anything.Get the PR's URL, passing the PR number if one was given; with no argument it comes from the current branch:
gh pr view [PR_NUMBER] --json url
Read OWNER, REPO, and PR_NUMBER from the PR URL, not from
gh repo view, which names the local repo and can be a fork. With no PR on
the branch and none passed, ask the user for one, in either mode. Substitute
the literal values into every later command.
If the current branch is not the PR's head branch, run
gh pr checkout PR_NUMBER -R OWNER/REPO before Step 4.
sh <this skill's directory>/scripts/fetch-feedback.sh OWNER REPO PR_NUMBER
It prints three JSON Lines sections: ## threads (unresolved review threads),
## reviews (submitted review bodies), and ## comments (general comments).
If it exits non-zero, stop and report its error.
Build the worklist:
If the worklist is empty, tell the user the PR has no outstanding feedback and stop.
Form your own opinion on each item. The goal is better code, not every comment satisfied. For each, ask:
Give each item a disposition:
Decline concretely when you disagree; a fix you don't believe in degrades the code to satisfy one review.
Lay out the triage as one table:
| # | Source | Summary | Disposition | Why |
|---|---|---|---|---|
| 1 | foo.ts:42 | use a native button | Fix | agree, keyboard a11y |
| 2 | bar.ts:88 | extract a shared helper | Decline | single caller |
| 3 | review (Copilot) | reword the error copy | Ask | product wording |
Default: with no Ask rows, continue to Step 4. Otherwise show only the Ask rows, wait for answers, then continue.
--ask: show the full table, and below it the full reply text for each
Decline. The user overrides by exception: Fix and Decline rows they don't
mention stand. Each Ask row needs an explicit answer; re-ask any left open.
If fixing shows a disposition was wrong, change it. In default mode, record the
change and the reason for Step 7. With --ask, put it to the user first.
If nothing is Fix, skip to Step 6.
Check whether the PR conflicts with its base:
gh pr view PR_NUMBER -R OWNER/REPO --json mergeStateStatus,baseRefName
If it reads UNKNOWN, GitHub is still computing it; wait about 30 seconds and
retry, twice. If it is DIRTY, run git fetch origin, rebase onto
origin/<baseRefName>, and resolve the conflicts before editing.
For a thread, start from its path and line. When line is null or
isOutdated is true, locate the code from the path and the comment text; if
the concern no longer applies, Decline with a reply saying where it was
addressed. For review bodies and comments, find the relevant code yourself.
Group small related fixes into one commit and give separate changes their own.
For fixes to review bodies or general comments, name what was addressed in the
commit message. Right after each commit, record git rev-parse --short HEAD
against the items it covers.
Push with git push, or git push --force-with-lease --force-if-includes
if you rebased in Step 4; the second flag keeps a commit pushed from GitHub
(an applied suggestion) from being overwritten. If the push fails, stop and
report it; post no replies.
Watch CI:
gh pr checks PR_NUMBER -R OWNER/REPO --watch | tail -n 20
If a check fails because of your commits, fix the root cause, commit, push,
and watch again, up to three rounds. Change a test's expected values only when
the behavior it pins genuinely changed. If checks still fail after three
rounds, stop and report before posting replies. Note failures your commits
didn't cause for Step 7 and continue. If gh pr checks reports no checks,
wait about 30 seconds and retry, twice, before treating the PR as having none;
checks take a moment to register after a push.
commentId is the numeric ID for REST replies; threadId (PRRT_…) is for
the resolve mutation. For a thread fixed across several commits, cite the
last.
Thread, Fix: reply with the hash and a few words of context if they help, then resolve:
gh api repos/OWNER/REPO/pulls/PR_NUMBER/comments/COMMENT_ID/replies -f body="Fixed in abc1234"
sh <this skill's directory>/scripts/resolve-thread.sh THREAD_ID
Thread, Decline: reply with the justification through the same replies endpoint, with no hash, and leave the thread unresolved for the reviewer.
Review body or comment, Fix: no reply; the commit message is the record.
Fix with no commit (a PR description edit, say): make the change, reply saying what changed, and resolve the thread if it was one.
Review body or comment, Decline: post one top-level comment per source:
gh api repos/OWNER/REPO/issues/PR_NUMBER/comments -f body="..."
Open by quoting the point it answers. When the same source also had fixed items, cover them in that comment too ("items 1 and 3 fixed in abc1234; on item 2: …").
Then re-request review from each human (type User, not the PR author) whose
items you fixed or declined:
gh api -X POST repos/OWNER/REPO/pulls/PR_NUMBER/requested_reviewers -f 'reviewers[]=LOGIN'
If the call returns 422 (no repo access), note it for Step 7 and continue.
One line per item: its disposition, the commit hash for a Fix, a one-sentence
gist of any reply you posted, and the reply's URL (html_url in the
response). Flag any disposition changed
mid-run with the reason, CI failures your commits didn't cause, and the
reviewers you re-requested.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub esond/skills --plugin eng7 skills in this plugin
/clean-unused-cpm-packagesRemove unused PackageVersion entries from `Directory.Packages.props` files in a .NET repo using Central Package Management (CPM). Scans every `.csproj`, `.props`, and `.targets` file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with `dotnet restore`. Use this skill whenever the user wants to clean up, prune, or remove unused entries from `Directory.Packages.props`, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions `Directory.Packages.props` alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a `Directory.Packages.props` (CPM not in use)./inline-reviewFind and address inline code-review comments left in the code, marked with the `rev:` prefix (e.g. `// rev:`, `# rev:`, `-- rev:`). These are a manual code review done inline instead of on GitHub — each comment is a question, suggestion, concern, or change request about the nearby code. Use this skill whenever the user asks you to address, handle, resolve, go through, or respond to their inline review comments, rev comments, or `rev:` comments — even when phrased tersely, like "address my rev comments", "handle the reviews", "go through the rev: notes", "I left some inline comments", "respond to my review", or just "address these" right after leaving such comments. Trigger whenever the request references `rev:` comments in the code./reorganize-branch-commitsReorganize the commits on a non-default git branch into a clean, logical history by rewriting the branch — `git reset` + re-commit by default, `git rebase -i` when commit boundaries already align. Propose groupings based on the actual work done (features, refactors, tests, fixes, docs), get explicit user approval, back the branch up, then rewrite history. Use this skill whenever the user wants to tidy up, clean up, reorganize, restructure, squash, or curate commits on a feature branch — even if they phrase it as "my branch is a mess", "squash this down", "combine these commits", "fix up the commit log before I open a PR", or "make the commits presentable for review". Trigger proactively when the user is about to open or push a PR and the branch has scrappy/WIP/"fix" commits to collapse. Refuses to operate on default or release-shaped branches (main, master, develop, trunk, production, release, or the repo default) — a feature-branch-only tool./righting-software-system-designOpt-in, collaborative system-design workflow based on Juval Löwy's iDesign methodology in *Righting Software*. Conducts a multi-phase interview (framing → use cases → volatility analysis → components → call-chain validation → report) that surfaces unknown-unknowns and produces a written recommendation at `decompositions/{system-name}/report.md`. **Run only when the user explicitly invites this workflow** — not for general architecture questions, lightweight design conversations, or quick "where should X live?" questions. Valid triggers: the user names the skill directly, references *Righting Software* / Juval Löwy / iDesign / "The Method" / volatility-based decomposition and asks to run a full session, asks for a "deep" or "structured" or "Löwy-style" system design session, or accepts a prior suggestion to run it. Wait for an explicit yes before entering Phase 0. The skill is interrogative — a back-and-forth interview that challenges each volatility candidate and proposes ones the user hasn't considered./sync-core-docsCreate or audit a repo's README.md, AGENTS.md/CLAUDE.md, and REVIEW.md docs./sync-core-repo-docsCreate or audit a repo's three core doc files — README.md, the agent instructions file (AGENTS.md or CLAUDE.md), and REVIEW.md — in that dependency order. If a file is missing, generate it from the codebase; if it exists, audit it against the current code and apply targeted fixes after confirmation. README.md gets a developer from clone to running the project; AGENTS.md captures coding guidance for the agent (delegating to /init or claude-md-improver); REVIEW.md holds guidance for code reviewers, human or automated, without duplicating AGENTS.md. Target files with --readme, --claude, and --review, or run all three. Use whenever the user wants to set up, bootstrap, scaffold, refresh, audit, update, or sync a repo's docs, or says things like "create a README", "is my README still accurate", "write a CLAUDE.md", "write an AGENTS.md", "audit our docs", or "get this repo ready for contributors" — even when only one file is named. Prefer it over claude-md-improver when README or REVIEW are also in scope.