Agent skill
fix-pr-comments
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.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/fix-pr-comments
SKILL.md
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
Only request re-review from reviewers who have not already approved the PR. If a reviewer has approved, their approval still stands even after addressing their comments.
To check review states before requesting re-review:
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews --jq '.[] | "\(.user.login): \(.state)"' | sort -u
To request re-review (only for reviewers with CHANGES_REQUESTED or COMMENTED state, not APPROVED):
gh pr edit --add-reviewer <reviewer-username>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?