From planning-workflow
Works through all open PR review threads by fixing code, replying to reviewers, and resolving threads. Use when 'address feedback', 'fix PR comments', 'resolve review threads', or after a code review has left feedback on the PR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/planning-workflow:address-feedbackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Work through all open PR review threads: fix code, reply, resolve.
Work through all open PR review threads: fix code, reply, resolve.
Part of the task planning workflow. See references/workflow-overview.md for the full pipeline.
Optional PR number or URL. If omitted, detect from current branch.
gh pr view --json number,title,headRefName,baseRefName
gh repo view --json nameWithOwner
Extract $OWNER, $REPO, $NUMBER from the output. If no open PR on this branch, tell the user and stop.
gh api graphql -f query='
{
repository(owner: "$OWNER", name: "$REPO") {
pullRequest(number: $NUMBER) {
reviewThreads(first: 50) {
nodes {
id
isResolved
comments(first: 10) {
nodes {
databaseId
body
path
line
author { login }
createdAt
}
}
}
}
}
}
}'
Filter to isResolved: false only.
For each unresolved thread, classify:
Read files first, apply minimal targeted edits. Only change what the feedback requires -- don't "improve" adjacent code, comments, or formatting. Every changed line should trace directly to a review thread. After all fixes, run typecheck and relevant tests. Fix any failures before proceeding.
Reply to the first comment in each thread using its databaseId:
gh api repos/$OWNER/$REPO/pulls/$PR/comments/$COMMENT_ID/replies -f body="$REPLY"
Use the GraphQL node id (e.g. PRRT_kwDO...) from step 2, not the databaseId:
gh api graphql -f query='
mutation {
resolveReviewThread(input: {threadId: "$THREAD_ID"}) {
thread { isResolved }
}
}'
Resolve all threads -- including ones where you declined to make a change.
git add -A && git commit -m "address PR feedback" && git push
Skip commit if no code changes were needed.
Report:
chatgpt-codex-connector[bot] adds a +1 (thumbs-up) reaction to the PR itself — not a comment or review thread. If you see no unresolved threads but the PR has this reaction, there's nothing to address.npx claudepluginhub mistakenot/skills --plugin planning-workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.