name: fix-pr-comments description: This skill should be used when the user asks to "fix PR comments", "address PR feedback", "resolve PR threads", mentions "PR review", or discusses GitHub pull request comments. version: 1.0.0
Fix PR Comments
Handle PR review comments by choosing the appropriate response for each comment.
Response Types
For each PR comment, choose one of these responses:
- Address and resolve: Fix the issue, push the changes, and resolve the thread
- Explain: If the comment doesn't make sense, leave a comment explaining why. Only resolve the thread if the comment is from a bot user.
- Ask for clarification: If unclear, leave a question asking for clarification
Comment Prefix
When leaving comments on PRs, always prefix with "Claude Code: " to make it clear the comment came from Claude.
Comment Guidelines
Never leave top-level comments on the PR (via gh pr comment or the issues comments API). Only reply directly within review comment threads using the replies API. Top-level comments like "Addressed all feedback" are not helpful and clutter the PR.
Workflow
- Read all PR comments to understand the feedback
- For each comment, determine the appropriate response type
- Make code changes where needed
- Push all changes
- Resolve threads that have been addressed
- Request re-review from reviewers whose comments have all been addressed
- Leave explanatory comments or clarification questions as needed
Re-requesting Review
After addressing all comments from a reviewer, request their re-review:
gh pr edit --add-reviewer <reviewer-username>
To find reviewers who left comments:
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews --jq '.[].user.login' | sort -u
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!