review-pr-threads
БесплатноБез исполняемых скриптовНе проверенResolve the currently-unresolved review threads on the current branch's PR in one sweep — assess each, fix it (test-first, verified) or reply-only, then reply…
от adamayoung★ 182 звезды на GitHubОб этом скилле
Review PR Threads
Handle the open review conversations on a pull request: for each unresolved
thread, decide whether it warrants a code change, make and verify the fix (or
explain why not), reply, and resolve it. This is a single sweep over the
threads that are unresolved right now — it does not wait for new reviews to
arrive. The caller (you, or /watch-pr) decides whether to run it again after a
push triggers a fresh review.
Repo is adamayoung/TMDb. GitHub reads (find the PR, fetch threads), the
reply, and the resolve all use the GitHub MCP (mcp__github__*):
get_review_comments exposes each comment's numeric REST id in its html_url
(the #discussion_r<id> anchor — verified 2026-08-07), which is exactly the id
add_reply_to_pull_request_comment takes. gh is authenticated and kept as
the reply fallback (gh api graphql with the thread node id) on a 401/403
or if the anchor is ever absent.
Principles
- One sweep, then return. Process every thread that is unresolved at
invocation, then stop and report. Do not loop waiting for re-reviews — pushing
a fix re-triggers the
claude-reviewbot and CI, and that convergence loop belongs to the caller. - Fix test-first and verify before you reply. A code change in response to a thread follows the project's discipline: reproduce/capture with a test where applicable, then fix, then verify with the delegated skills. Never claim a fix you haven't verified.
- Don't change code you disagree with — reply instead. Out-of-scope, incorrect, already-handled, or question-only threads get a reasoned reply and a resolve, not an edit.
- Dedup via the run ledger. Keep (or reuse the caller's) ledger of handled
thread IDs and a topic signature (
path:line+ gist) per thread. If a thread repeats a topic you already fixed this run, reply pointing at the earlier commit SHA and resolve — do not re-edit. - The
claude-reviewbot's summary comment is advisory. It posts inline threads only for Critical/High; its Medium/Low summary bullets are not threads and are not work items — don't turn them into code changes.
0. Find the PR
Find the open PR for the current branch with mcp__github__list_pull_requests
(owner/repo from the origin remote, head: <owner>:<branch>, state: open), or
read a specific one with mcp__github__pull_request_read method get
(pullNumber: <n>). Take number/html_url/state/head.ref from the result.
- An explicit PR number in the skill arguments overrides the current branch.
- No PR for the current branch → stop and tell the user (suggest
/pr). - State not
open→ stop and report.
1. Fetch unresolved threads
Use mcp__github__pull_request_read method get_review_comments (owner/repo from
origin, pullNumber: <n>). It returns review threads, each with metadata
(isResolved, isOutdated, isCollapsed), the thread node id (PRRT_…, used to
resolve in §2), path/line, and the grouped comments — each comment carrying an
html_url whose #discussion_r<id> anchor is the numeric comment id §2's reply
needs. Paginate with
perPage/after (the endCursor from the previous page's pageInfo) if needed.
Process each thread where isResolved is false and whose thread id is not already
in the ledger.
2. Handle each thread
For each unresolved thread:
- Assess the comment(s) and decide whether a code change is warranted, in scope, and clearly correct.
- Needs a fix → edit the code, then verify with the delegated skills —
/lint,/build,/test(and/integration-testif it could affect live-API behaviour); those run in Haiku subagents so logs stay out of context. Commit with a gitmoji message and record the commit SHA. Batch the sweep's pushes: commit per fix, butgit pushonce after all threads are handled (§3), so one review/CI cycle is triggered per sweep, not one per thread. - No fix warranted (disagree / out of scope / a question / already done) →
make no code change; you'll say why in the reply. When the reason is out of
scope and the reviewer's point is sound, file it
per
.github/ISSUE_FILING.mdand reply with the issue number. "Out of scope" with nothing behind it is how a valid review comment gets closed forever; a link is what makes it a deferral rather than a dismissal. - Reply on the thread — what you assessed and whether you fixed it (include
the commit SHA when you did). Use
mcp__github__add_reply_to_pull_request_comment(owner/repo fromorigin,pullNumber: <n>,body, andcommentId— the number from the thread's first comment'shtml_urlanchor,…#discussion_r<ID>; the number only, never thePRRT_…node id). On a 401/403, or if no comment in the thread carries the anchor, fall back to the GraphQL reply with the thread node id we already have fr
Установить review-pr-threads в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл review-pr-threads?
Resolve the currently-unresolved review threads on the current branch's PR in one sweep — assess each, fix it (test-first, verified) or reply-only, then reply and resolve — and return a summary. Use standalone to address PR review feedback, or as the thread-handling step invoked by /watch-pr. Repo is adamayoung/TMDb.
Как установить скилл review-pr-threads?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл review-pr-threads запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic