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.
## Usage
```bash
/address-pr-comments [PR number or URL]
```
**Examples:**
```bash
# Current branch's PR
/address-pr-comments
# Specific PR by number
/address-pr-comments 123
```
## Step 0 — Branch safety check
**Check current branch:**
This skill works on existing PR branches. Do not run on the default branch.
```bash
bash "<skill-dir>/scripts/branch-safety-check.sh"
```
If on the default branch, the script exits with an error. If on a non-default branch, continue to Step 0.1.
## Step 0.1 — 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