From lucas-dev-tools
Interactively walk through and address PR review comments one at a time. Use when the user says 'address PR comments', 'handle PR feedback', 'go through PR comments', 'fix review comments', 'what did reviewers say', 'let's fix the review feedback', 'address review threads', 'work through PR feedback', or any variation of wanting to systematically address pull request review comments. NOT for reviewing code (use review-pr) or just fetching comments (use get-pr-feedback). Accepts an optional PR number argument; defaults to the current branch's PR.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lucas-dev-tools:address-pr-commentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interactively walk through PR review comments one at a time, asking the user what to do for each, committing after each change, and optionally replying on GitHub.
Interactively walk through PR review comments one at a time, asking the user what to do for each, committing after each change, and optionally replying on GitHub.
gh pr view --json number,urlgh repo view --json owner,namegh api graphql -f query='
query($owner: String!, $repo: String!, $pr: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
url
reviewThreads(first: 100) {
nodes {
id
isResolved
isOutdated
path
line
startLine
comments(first: 50) {
nodes {
id
author { login }
body
createdAt
url
}
}
}
}
}
}
}' -F owner="$OWNER" -F repo="$REPO" -F pr="$PR_NUMBER"
[bot] or bot), except chatgpt-codex-connector — keep its commentsisResolved == true)[index] @author — file:line — first ~80 chars of bodyIf no comments remain after filtering, say so and stop.
For each unresolved thread, in order:
@author — file:lineAskUserQuestion to ask what to do. Offer these options (adjust based on context):
```suggestion)git commit fails with "1Password: agent returned an error", STOP immediately — user is AFK{thread_id, action taken, short summary}Continue until all threads are processed.
AskUserQuestion: "Want to push the commits?"Replies are only offered after pushing — replying "fixed" to a comment should reference code the reviewer can actually see.
AskUserQuestion: "Want to reply to the addressed comments on GitHub?"AskUserQuestion with options:
gh api repos/OWNER/REPO/pulls/PR_NUMBER/comments -f body="REPLY" -F in_reply_to=COMMENT_ID
gh api graphql -f query='
mutation($threadId: ID!) {
resolveReviewThread(input: {threadId: $threadId}) {
thread { isResolved }
}
}' -f threadId="THREAD_ID"
npx claudepluginhub lucaspimentel/claude-plugins --plugin lucas-dev-toolsProcesses PR review feedback by analyzing comments, implementing fixes, committing, pushing, replying on GitHub, and resolving threads. Triggered by /pr-respond or relevant queries.
Reads open GitHub PR review comments, triages by severity, applies code fixes, and drafts replies. Use when addressing PR feedback or code review.
Fetches GitHub PR review feedback, triages comments as valid/stale/incorrect, implements fixes, verifies with tests, and drafts replies.