/address-pr-review-comments:address-pr-review-commentsfrom address-pr-review-comments
Fix GitHub PR review feedback and manage its threads when requested. Use triage-pr-review-comments for investigation only.
Ships in address-pr-review-comments. 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.
None: SKILL.md is the whole skill.
Workflow for handling GitHub PR review comment autofix sessions end-to-end.
This covers everything from fetching unresolved threads through to resolving
them. Do not request new bot reviews (@codex review, /gemini review).
<ci-monitor-event> arrives with PR review comments/fix-github-review or /loop-fix-github-reviewYou need gh CLI authenticated with the repo.
Determine OWNER, REPO, and PR_NUMBER from context. If not obvious:
git remote get-url origin | sed -E 's#^.*(github\.com[:/])##; s#\.git$##'
gh pr list
gh api graphql -F owner='<OWNER>' -F name='<REPO>' -F number=<PR NUMBER> -f query='query($name: String!, $owner: String!, $number: Int!) {
repository(owner: $owner, name: $name) { pullRequest(number: $number) {
reviewThreads(last: 100) { nodes { id isResolved path comments(first: 1) {
nodes { body line } } } } } } }' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false) | "ThreadID: \(.id)\nFile: \(.path)\nComment: \(.comments.nodes[0].body)\n---"'
This returns the ThreadID, File, and Comment. The ThreadID (format PRRT_...) is what you need for replying and resolving.
Read each thread and categorize:
Fix the issues identified in triage. Standard development workflow - read the relevant files, make changes, verify they're correct.
Run whatever the project uses (mix precommit, npm test, etc.) and fix
any failures before proceeding. The fixes are not done until checks pass.
Commit the fixes with a descriptive message summarizing what was addressed, then push.
This is the critical part that's easy to miss. For EACH unresolved thread, you must both reply AND resolve.
For threads you fixed:
# 1. Reply to the thread
gh api graphql -F threadId="<THREAD_ID>" -F body="Fixed - addressed in the latest update." -f query='mutation($threadId: ID!, $body: String!) { addPullRequestReviewThreadReply(input: {pullRequestReviewThreadId: $threadId, body: $body}) { comment { url } } }'
# 2. Resolve the thread
gh api graphql -F threadId="<THREAD_ID>" -f query='mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { isResolved } } }'
For threads you chose not to act on:
# 1. Reply explaining why
gh api graphql -F threadId="<THREAD_ID>" -F body="Deferring this suggestion for now as it falls outside the immediate scope." -f query='mutation($threadId: ID!, $body: String!) { addPullRequestReviewThreadReply(input: {pullRequestReviewThreadId: $threadId, body: $body}) { comment { url } } }'
# 2. Resolve the thread
gh api graphql -F threadId="<THREAD_ID>" -f query='mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { isResolved } } }'
The GitHub REST API endpoint gh api repos/.../pulls/comments/.../replies
can post a reply to a comment, but it cannot resolve the review thread.
Threads stay open and clutter the PR. The GraphQL resolveReviewThread
mutation is the only way to mark a thread as resolved, which is why we
use inline GraphQL commands for this workflow.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin address-pr-review-comments