PR Comment Response
Respond directly to individual review comments on a GitHub PR.
Instructions
- •
First, fetch the current PR's review comments to get the comment IDs:
bashgh pr view --json number -q '.number' # Get PR number gh api "repos/{owner}/{repo}/pulls/{pr_number}/comments" --jq '.[] | {id, path, body, user: .user.login}' - •
For each comment you need to respond to, use the script in this skill directory:
bash~/.claude/skills/pr-response/gh-reply-pr-comment.sh <comment_id> "<response_body>"
- •
Always prefix your response with
[claude]so reviewers know the response is from Claude. - •
Be concise, professional, and address the specific feedback in the comment.
Example
If a reviewer comments "Why did you use a map here instead of a for loop?":
bash
~/.claude/skills/pr-response/gh-reply-pr-comment.sh 1234567890 "[claude] The map was chosen for its declarative style and to avoid mutation of external state. Happy to refactor to a for loop if that's preferred for consistency with the codebase."
When to use
- •When asked to respond to PR review comments
- •When asked to reply to feedback on a PR
- •After addressing review feedback and wanting to notify the reviewer