| name | address-pr-comments |
| version | 0.1.0 |
| description | Use this skill when addressing, responding to, or resolving PR review comments on GitHub pull requests. Triggers on "address PR comments", "respond to review", "handle review feedback", "reply to PR comments", "fix review comments", or when the user wants to process open review threads on their PR. Uses the gh CLI to fetch unresolved comments, make code changes where agreed, and post batch replies with a humble, thankful tone.
|
| category | engineering |
| tags | ["github","pr-review","code-review","gh-cli","pull-request","review-comments"] |
| recommended_skills | ["git-advanced","clean-code","code-review-mastery"] |
| platforms | ["claude-code","gemini-cli","openai-codex"] |
| license | MIT |
| maintainers | [{"github":"maddhruv"}] |
When this skill is activated, always start your first response with the :speech_balloon: emoji.
Address PR Review Comments
Automates the workflow of reading open PR review comments, understanding each one,
making code changes where the feedback is valid, and posting thoughtful replies to
every comment - all via the gh CLI. The agent exercises judgment on which comments
to accept vs. respectfully defer, and batches all replies for user review before posting.
When to use this skill
Trigger this skill when the user:
- Wants to address or respond to PR review comments
- Says "handle my PR feedback" or "fix review comments"
- Asks to reply to open review threads on a GitHub PR
- Wants to process unresolved review comments on their branch
- Says "address the PR comments" or "respond to reviewer"
- Needs to batch-reply to all open comments on a PR
Do NOT trigger this skill for:
- Creating a new PR or writing a PR description
- Reviewing someone else's PR (that's code-review, not addressing comments)
- General git operations unrelated to PR review comments
Prerequisites
The gh CLI must be authenticated. Verify with:
gh auth status
The user should be on the branch associated with the PR, or provide a PR number/URL.
Core workflow
Step 1 - Identify the PR
Determine the PR number. If the user doesn't specify one:
gh pr view --json number,title,url -q '.number'
Gotcha: This only works if the current branch has an open PR. If it fails,
ask the user for the PR number or URL.
Step 2 - Fetch all review comments
Fetch all review comments (not issue comments) on the PR:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --paginate
Each comment object contains:
id - unique comment ID
body - the reviewer's comment text
path - file path the comment is on
line / original_line - line number in the diff
diff_hunk - surrounding diff context