Pr thread resolver
Skill BjornMelin/dev-skills/plugins/claude-core/skills/pr-thread-resolver
Fetches, fixes, and resolves unresolved GitHub PR review threads with the gh CLI. Use when addressing reviewer feedback, clearing blocking conversations before merge, or applying GitHub suggested changes. Verifies each finding against current code and resolves only what it fixed.From its SKILL.md
npx -y skills add BjornMelin/dev-skills --skill pr-thread-resolverAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.4 KB, 775 tokens by cl100k_base, as published. Nobody here has run it
PR thread resolver
Turn unresolved GitHub PR review threads into committed, verified, resolved fixes — natively, with
gh + Claude Code's edit/verify loop. No external orchestrator.
When to use / route away
Use for hosted PR review threads. Route away:
- Local review notes (Codex/Zen/manual) →
review-remediation. - Passive watch until merge / CI status →
babysit-pr. - CI-log-only failure with no review thread →
ghworkflow-log remediation.
Default loop (autonomous: fix → commit → push → resolve)
- Ground: read repo
AGENTS.md/CLAUDE.md;git status --short; capture the head SHA (gh pr view <pr> --json headRefOid -q .headRefOid). - Fetch threads: list unresolved review threads via
gh api graphqlinto a compact worklist (seereferences/gh-graphql.md): thread id, path, line,isResolved,isOutdated, body, anysuggestionhunk. - Triage each:
Readthe current line. Skip with a reason if already-fixed or stale (isOutdated+ code no longer matches); else queue a minimal fix. - Plan: decide order; serial for shared files, fan out for independent threads (below).
- Fix: apply the smallest correct edit. Apply a
suggestionblock verbatim only on an exact hunk match; otherwise write a hand-minimal fix. - Verify: run repo-native gates — focused test for the touched area first, then broad
type-check / lint / build (use
/verifyand/code-reviewas the backbone). - Commit: scoped, semantically grouped Conventional Commits (see
references/closeout.md). - Push the branch once after all intended commits pass verification.
- Resolve: re-fetch head + thread state; resolve via
resolveReviewThreadonly threads backed by a committed+pushed+verified fix (or already-fixed at current head). - Re-poll until zero actionable threads remain or a real blocker appears.
Parallel resolution
When ≥3 threads touch disjoint files, dispatch one read-and-fix Task subagent per file/cluster.
Subagent contract: fix + verify + report only (file:line, change, verification result) — it does
not commit, push, or resolve. The parent serializes all staging, commits, pushes, and
resolveReviewThread mutations. Workers own disjoint files and never touch another's.
Resolve safety policy
Resolve a thread ONLY when it maps to a committed, pushed, and verified fix (or is already fixed at current head). Never resolve when: the PR head drifted unexpectedly since you pushed; verification failed; the thread was skipped, ambiguous, or unmatched. Do not auto-reply by default — reply only when a thread cannot be fixed cleanly or the user asks for a comment.
Outputs
Worklist · verified-fix / skipped summary (file:line evidence) · verification commands + results ·
commit SHAs · thread→commit closeout map · terminal status completed | blocked | no-op.
Resources
references/gh-graphql.md— copy-pastegh api graphqlqueries + the resolveReviewThread mutation.references/closeout.md— Conventional Commit grouping, forbidden process-wording, head-drift guard.
What ships with it: 2 files
3.8 KB alongside SKILL.md
references/
- closeout.md1.8 KB
- gh-graphql.md2.0 KB