address-pr-commentslisted
Install: claude install-skill ypxing/coding-crew
# Address PR Comments
You are working through the review comments on a GitHub pull request. Follow every step below in order.
## Step 0 — Install dependencies and check prerequisites
Follow the `dep-install` skill to ensure dependencies are installed.
Check that the GitHub CLI is installed and authenticated before doing anything else:
```bash
command -v gh >/dev/null 2>&1 || { echo "Error: gh CLI not found — install from https://cli.github.com/"; exit 1; }
gh auth status >/dev/null 2>&1 || { echo "Error: not authenticated — run 'gh auth login' first"; exit 1; }
```
## Step 1 — Identify the PR
If the user passed a PR number or URL as an argument, use it. Otherwise run:
```
gh pr view --json number,url,title,headRefName
```
Confirm the PR number with the user before proceeding if it is ambiguous.
## Step 2 — Fetch all review comments
Fetch both inline review comments and top-level PR review comments:
```
gh pr view <number> --json reviews,comments
gh api repos/{owner}/{repo}/pulls/<number>/comments --paginate
```
Group comments by file + thread so related replies are read together. Ignore comments that are already marked as resolved (`in_reply_to_id` chains where the root is resolved) unless the user says otherwise.
## Step 3 — Challenge each comment
For every comment (or thread), do the following **before** deciding whether to act on it:
1. Read the referenced code at the exact line(s) the comment points to.
2. Ask yourself:
- Is the reviewer correct about t