address-pr-comments
/address-pr-comments
Fetches unresolved PR comments, categorizes them (must-fix, suggestion, question, nit), proposes fixes or replies for each, and executes approved actions. Use when addressing PR review feedback or when someone requests changes on your PR.
- Author
- mostafa-drz ↗
- Repository
- claude-skills ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Fetches unresolved PR comments, categorizes them (must-fix, suggestion, question, nit), proposes fixes or replies for each, and executes approved actions. Use when addressing PR review feedback or when someone requests changes on your PR.
Arguments
/address-pr-comments <PR number or URL>
Original author description
Fetches unresolved PR comments, categorizes them (must-fix, suggestion, question, nit), proposes fixes or replies for each, and executes approved actions. Use when addressing PR review feedback or when someone requests changes on your PR.
How it works
- Preferences
- Context
- Command routing
- First-time detection
- Steps
- Principles
SKILL.md preview
---
name: address-pr-comments
description: >-
Fetches unresolved PR comments, categorizes them (must-fix, suggestion, question, nit),
proposes fixes or replies for each, and executes approved actions. Use when addressing
PR review feedback or when someone requests changes on your PR.
argument-hint: <PR number or URL>
disable-model-invocation: true
allowed-tools:
- AskUserQuestion
- Bash
- Read
- Write
- Edit
- Glob
- Grep
- WebFetch
- mcp__claude_ai_Linear__get_issue
- mcp__claude_ai_Linear__list_issues
- mcp__claude_ai_Linear__update_issue
- mcp__claude_ai_Linear__create_comment
metadata:
trigger: "Addressing PR review feedback or when someone requests changes on your PR."
tags: "git, code review, github"
---
# Address PR Comments
Fetch unresolved PR comments, understand the code context, categorize feedback, and address each item interactively.
## Preferences
_Read `~/.claude/skills/address-pr-comments/preferences.md` using the Read tool. If not found, no preferences are set._
## Context
_On startup, use Bash to detect: current git branch and repo name (`gh repo view --json nameWithOwner -q .nameWithOwner`). Skip any that fail._
## Command routing
Check `$ARGUMENTS`:
- **`help`** → display help then stop
- **`config`** → interactive setup then stop
- **`reset`** → delete `~/.claude/skills/address-pr-comments/preferences.md`, confirm, stop
- **anything else** → process as PR review
### Help
```
Review PR — Address PR review comments interactively
Usage:
/address-pr-comments <number> Review PR in current repo
/address-pr-comments <number> <repo> Review PR in specific repo
/address-pr-comments <github-url> Review PR from URL
/address-pr-comments config Set defaults
/address-pr-comments reset Clear preferences
/address-pr-comments help This help
What it does:
1. Fetches all unresolved review and conversation comments
2. Reads code context for each comment
3. Categorizes: must-fix, suggestion, question, nit
4. Presents summary with proposed actions
5. Executes approved fixes, posts replies
6. Commits and pushes changes
Comment sources:
- Inline review comments
- PR conversation comments
- Automated review tools (Claude, Copilot)
Current preferences:
(shown above under Preferences)
```
### Config
Use **`AskUserQuestion`**:
**Q1** — "Default repository?" (Current repo (detect), Always ask)
**Q2** — "Which comments to include?" (Unresolved only (default), All comments, Latest review round only)
**Q3** — "Auto-commit after fixes?" (Yes — commit and push (default), No — stage only, Ask each time)
Save to `~/.claude/skills/address-pr-comments/preferences.md`.
## First-time detection
If no preferences file exists, show:
"First time using /address-pr-comments? Run `/address-pr-comments config` to set defaults, or continue — I'll review unresolved comments in the current repo."
Then proceed.
## Steps
### 1. Parse input
From `$ARGUMENTS`:
- **PR number**: Numeric ID
- **Repository**: From URL, second arg, or current git remote
- **Organization**: From URL or git remote
If only a number, detect repo from pre-injected context above.
### 2. Gather context (parallel)
**PR details:**
```
gh pr view <number> --repo <org/repo> --json title,body,headRefName,baseRefName,state,reviewDecision,files
```
**Review comments (inline):**
```
gh api repos/<org>/<repo>/pulls/<number>/comments --paginate
```
**Conversation comments (top-level):**
```
gh api repos/<org>/<repo>/issues/<number>/comments --paginate
```
**Changed files:**
```
gh pr diff <number> --repo <org/repo> --name-only
```
**Branch check:** Note if you're on the PR branch or not.
### 3. Filter and categorize
**Filter:**
- Exclude resolved review threads
- Exclude purely informational bot comments (CI, deploy URLs)
- Include automated review tools (Claude Code Review, Copilot) — they have actionable feedback
**Categorize each comment:**
1. Read the code at the commented location
2. Understand the suggestion
3. Assess category:
- **Must-fix**: Bugs, security issues, logic errors, breaking changes
- **Suggestion**: Improvements, better patterns, refactoring
- **Question**: Reviewer needs clarification
- **Nit**: Style, naming, minor preferences
4. Draft action: code change, reply, or explanation
### 4. Present summary
```
PR #N: [title]
Branch: [branch]
Comments: X unresolved (Y must-fix, Z suggestions, W questions, V nits)
Must-fix:
1. [file:line] @reviewer — "issue description"
→ Proposed fix: [change]
Suggestions:
2. [file:line] @reviewer — "description"
→ Proposed change: [change]
Questions:
3. [file:line] @reviewer — "question"
→ Draft reply: [explanation]
Nits:
4. [file:line] @reviewer — "nit"
→ Proposed change: [change]
```
### 5. Confirm actions
Use **`AskUserQuestion`** (multiSelect: true):
- One option per comment action
- "Address all"
- "Skip all"
### 6. Execute
**For code changes:**
1. Read current file at relevant lines
2. Apply the edit
3. Show diff
4. Batch changes in same file
**For replies:**
```
gh api repos/<org>/<repo>/pulls/<number>/comments --method POST --field body="<reply>" --field in_reply_to=<comment_id>
```
**After all actions** (based on preference):
- Stage changed files
- Commit with message referencing the review
- Push to PR branch
- Optionally reply to addressed comments
### 7. Summary
```
Review complete for PR #N
Applied: X changes
Replied: Y comments
Skipped: Z items
Changes committed: [hash] "[message]"
Pushed to: [branch]
Remaining unresolved: [count]
```
### 8. Learn
If user consistently skips nits, note preference.
If user prefers certain reply styles, save pattern.
## Principles
- **Read before acting**: Always read code context before proposing fixes.
- **Respect the reviewer**: Treat each comment as valid. Explain disagreements respectfully.
- **Atomic changes**: Minimal, targeted fixes. Don't refactor surrounding code.
- **Batch smartly**: Group changes in the same file.
- **Don't auto-resolve**: Let reviewers resolve their own comments.
- **Preserve intent**: Don't change the approach unless explicitly asked.
- **Never edit original reviewer comments**: Always add replies to comment threads, never modify someone else's feedback.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · mostafa-drz/claude-skills | 100 | MIT |
| automattic/pocket-casts-ios | 100 | MPL-2.0 |
| stevevitali/agent-skills | 100 | MIT |
| ruddercode/rudder | 100 | Apache-2.0 |
| microsoft/vscode-pull-request-github | 90 | MIT |
| cecilapp/cecil | 90 | AGPL-3.0 |
Database snapshot: 13.11.2026 · package version 8fef1a7c1813 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 90rb:pr-review
Addressing GitHub PR review comments: fetches them via gh, categorizes by comment type (code change / question / nit / etc.), drafts responses, and optionally fixes code. Use when a reviewer leaves comments or shares a PR number/URL. - 100address-pr-feedback
Helps a PR author work through the open review comments on their pull request. Fetches unresolved review threads from GitHub, groups them by file and theme, proposes a code fix or a reply for each one, applies fixes only after the user agrees, and drafts replies for the user to… - 100gh-address-comments
Address actionable GitHub pull request review feedback. Use when the user wants to inspect unresolved review threads, requested changes, or inline review comments on a PR, then implement selected fixes. - 100review-pr-comments
Address review comments on a GitHub pull request — fetch unresolved comments, investigate each issue, fix valid ones, reply, and resolve threads. Use this skill when the user asks to review PR comments, address PR feedback, handle PR review, respond to reviewer comments, or fix… - 84fix
This skill should be used when the user asks to "fix PR comments", "fix review feedback", "fix PR #123", "address review comments", "resolve PR feedback", "apply review suggestions", "handle PR feedback", or wants to automatically process unresolved review threads on a pull… - 100fix-pr
Reads all unresolved review comments and threads on a change (PR/MR) — and its failing CI checks, which count as feedback too — implements the fixes, pushes, and replies to each thread. Tracker- and host-agnostic — GitHub via gh is the factory default; docs/agents/code-host.md…