← ClaudeAtlas

pr-respondlisted

Address open GitHub PR review comments automatically. For each unresolved comment, classifies as MUST-FIX (edit code), ACK (reply only), or DISCUSS (ask back). Edits the relevant files, commits, and drafts a response comment for each item. Use when you receive PR review feedback and want to address all comments in one pass. Triggers on: "PRのコメントに対応", "review comments", "address PR feedback", "レビュー対応", "pr-respond", "コメント修正". DO NOT USE FOR: creating new PRs, writing code from scratch, or Issue responses.
thinkyou0714/github-flow-kit · ★ 0 · AI & Automation · score 76
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