pr-respondlisted
Install: claude install-skill thinkyou0714/github-flow-kit
# PR Review Comment Responder
Systematically address all unresolved review comments on a GitHub PR.
## Setup Check
1. Run `gh auth status` — if not authenticated, output:
```
⚠️ gh CLI not authenticated. Run: gh auth login
```
and stop.
2. If `--pr` argument is provided, use that PR number. Otherwise run:
`gh pr list --state open --reviewer @me --json number,title,reviewDecision`
and pick the PR with unresolved comments.
## Step 1: Collect Comments
```bash
gh pr view <PR_NUMBER> --comments --json body,comments,reviewDecision,files
```
Parse each review comment into this structure:
```
COMMENT:
id: <comment_id>
file: <filepath or null>
line: <line_number or null>
body: <comment text>
author: <reviewer username>
thread_resolved: <true/false>
```
Skip comments where `thread_resolved: true`.
## Step 2: Classify Each Comment
For each unresolved comment, classify into one of:
| Class | Criteria | Action |
|---|---|---|
| MUST-FIX | Code change explicitly requested ("fix", "change", "use X instead", "wrong", "bug", "型が違う") | Edit file + commit + reply |
| ACK | Acknowledged suggestions, style notes, nitpicks ("nit:", "optional", "LGTM with") | Reply only ("了解しました") |
| DISCUSS | Questions, ambiguities, "why did you...?", design discussions | Reply with explanation or counter-question |
| SKIP | Already-outdated, emoji-only, or references resolved code | Mark as handled silently |
Read `references/patterns.md` ONLY WHEN a comment is ambiguous