/agent-skills:address-pr-commentsfrom agent-skills
Triage and resolve every unresolved PR review thread as the author: implement fixes, push back with rationale, answer questions, commit, push, and reply. Requires GitHub CLI.
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.
Take the author's seat on your own PR: every unresolved review thread gets exactly one of five outcomes — a fix, a link to the commit that already fixed it, a reasoned push-back, an answer, or a scoped follow-up. A review comment ends one of two ways: you applied it, or you explained why not. A thread left hanging tells the reviewer their time was wasted.
Two calibration rules frame everything below:
From the PR's branch (check it out if needed), sync first — replies will reference commits, so the local branch must match the remote:
git pull --ff-only
Then run the bundled fetcher from the repo root (read-only):
// turbo
bash scripts/fetch-unresolved-threads.sh <pr>
It writes /tmp/pr-unresolved-threads.json — every unresolved thread
(path, line, full comment chain with authors and databaseIds) — plus
/tmp/pr-meta.json with the PR metadata, base branch, and your login.
Partition the unresolved threads:
Include bot/agent threads (e.g. automated reviewers) — they're often the easiest wins and ignoring them leaves visible dangling threads.
Also fetch the commit log for the branch (you'll need it in triage):
git log origin/<base>..HEAD --pretty=format:"COMMIT %H %s" --name-only
Read each thread completely, then read the file it anchors to (the current version — the comment may reference code that has since moved), plus the diff for that file. Classify into exactly one:
| Class | Test | Outcome |
|---|---|---|
| fix | The reviewer is right, or it's a small matter of taste (cost of applying < cost of arguing) | Implement in Phase 2 |
| already-addressed | A commit since the comment demonstrably fixed it — confirm by reading git show <sha> -- <path>, not by commit message | Reply with the commit link |
| push-back | You can demonstrate the comment is mistaken, or the "improvement" would make the code worse (over-engineering, breaking a repo convention, solving a problem that doesn't exist) | Reply with rationale |
| answer | A genuine question | Reply with the answer; if the question reveals unclear code, also clarify the code (that part becomes a fix) |
| out-of-scope | Real, but belongs in a different change (unrelated refactor, pre-existing issue, scope creep) | Reply acknowledging it + file or propose a follow-up issue; never silently ignore |
Triage discipline:
reply_only is set, fix items become replies stating what you
would change and your agreement — no edits.Skip when reply_only. For the fix queue:
fix: guard null user in session refresh), never "address review
comments" — reviewers re-review by reading commits since their last pass.self-review skill's Step 1.1
(explicit command → repo entry point → toolchain inference → derivation
from repo docs). A "fix" that breaks the build converts a helpful
reviewer into a hostile one.Push when push is true:
git push
For each thread in the work queue, post exactly one reply. Formats by class
(apply comment_prefix if set):
Fixed in <short-sha> (<link>) — <one line: what changed>.Addressed in <short-sha> (<link>) — <how>....— happy to change it if you see a case this misses.Agreed this is real; it's out of scope here — filed <issue link / proposed follow-up>.Commit links: <pr-url>/commits/<full-sha> (short SHA as the link text).
Post each reply as a threaded response to the thread's first comment
(the REST replies endpoint keys on the root comment's databaseId):
gh api repos/<owner>/<repo>/pulls/<number>/comments/<root-databaseId>/replies -f body="<reply>"
One API call per reply — no batching. When push is false, print the
planned replies instead of posting.
If resolve_threads is true, resolve only the fix and
already-addressed threads (GraphQL resolveReviewThread mutation with
the thread id from the fetcher output). Never resolve push-back,
answer, or out-of-scope threads — those await the reviewer's
response by definition.
Report a table: thread (path:line, one-line gist) → class → action (commit sha / reply posted / issue filed). Plus: verification status of the pushed fixes, and any thread deliberately left for human judgment. Clean up temp files.
resolve_threads and
the repo's convention says authors resolve).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/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 report/orchestrate-buildDrive a decomposed spec to completion across fresh contexts: SETUP a dedicated worktree, run each ticket end-to-end through implement-spec in a fresh context, update the durable ledger, report progress, pause for intervention at ticket boundaries, and finish with a whole-build capstone verification. The execution half of a multi-session build; pairs with decompose-spec.Generated from the plugin's indexed repository (stevevitali/agent-skills) — no native marketplace selected
npx claudepluginhub p/stevevitali-agent-skillsOther plugins' skills for the same job