From gh-pr-comments
Help address GitHub PR review comments. Use when the user mentions PR reviews, code review feedback, reviewer comments, or needs to resolve review threads.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gh-pr-comments:address-commentsThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill helps you work with GitHub PR review comments using the `gh-pr-comments` CLI extension.
This skill helps you work with GitHub PR review comments using the gh-pr-comments CLI extension.
IMPORTANT: Always use the
AskUserQuestiontool to get user confirmation before making any changes or decisions. Never act autonomously on review comments without explicit user approval.
There are two types of comments on a PR:
review_comment (inline): Attached to specific lines of code
issue_comment (general): Not attached to code
# List unresolved comments (resolved hidden by default)
gh pr-comments list
# List all comments including resolved
gh pr-comments list --all
# Show hierarchical tree view
gh pr-comments tree
# View full details of a comment
gh pr-comments view <comment-id>
# Reply to a comment
gh pr-comments reply <comment-id> --body "message"
# Mark comments as resolved
gh pr-comments resolve <comment-id> [comment-id...]
# Hide (minimize) comments
gh pr-comments hide <comment-id> --reason resolved
# Clean up reviews with all comments resolved
gh pr-comments cleanup
gh pr-comments list --json to see all comments (both review_comment and issue_comment types)review_comment: These are always actionable code review feedbackissue_comment: Check if the content contains review feedback or suggestions that require code changes. Reviewers like Claude Code often post detailed reviews as issue comments.gh pr-comments view <id> to see full context including diff (for review_comment) or full message (for issue_comment)AskUserQuestion tool to let the user choose how to handle each actionable comment. Never skip this step or make assumptions:
review_comment: Use gh pr-comments resolve <id> to mark as resolvedissue_comment: Use gh pr-comments hide <id> --reason resolved to minimize (issue comments cannot be resolved)When the user wants to address the comment immediately:
# 1. Make the code changes using Edit tool
# 2. Reply explaining what was fixed
gh pr-comments reply <id> --body "Fixed: <brief description of what was changed>"
# 3. Mark as resolved
gh pr-comments resolve <id>
When the user chooses to defer a fix:
# Create a GitHub issue to track the work
gh issue create --title "<concise-title>" --body "From PR review: <link-to-comment>
<description of what needs to be done>"
# Reply to the comment with the issue link
gh pr-comments reply <id> --body "Tracked in #<issue-number>"
# Optionally resolve the comment
gh pr-comments resolve <id>
When the suggested change is not appropriate:
# Reply with explanation
gh pr-comments reply <id> --body "No changes needed: <clear explanation>"
# Resolve the comment
gh pr-comments resolve <id>
You MUST use the AskUserQuestion tool before taking any action on a comment. Never assume what the user wants - always ask first.
Use AskUserQuestion to:
DO NOT make decisions on behalf of the user. Even if a fix seems obvious, always present it and get explicit confirmation.
--json flag for programmatic parsingcleanup to minimize the reviewnpx claudepluginhub strrl/gh-pr-comments --plugin gh-pr-commentsAddresses review or issue comments on open GitHub Pull Requests using gh CLI. Inspects threads, applies fixes, and responds to resolve feedback.
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 comments via gh CLI and Python script, creates task checklists for threads, links commits to reviews, and blocks completion until all resolved. Use for systematic PR feedback handling.