git-review-respondlisted
Install: claude install-skill tatsushige-i/shared-claude-code
# PR Review Comment Response Skill
Fetch and analyze GitHub PR review comments, then perform code fixes, commits, and replies in bulk.
## Steps
### Step 1: Determine PR Number
- If `$ARGUMENTS` is specified as a number, use that PR number
- If `$ARGUMENTS` is empty (no argument), infer the PR from the current branch:
- Run `gh pr view --json number,state,headRefName,title,url` (resolves the PR associated with the current branch)
- If a PR is found, announce it and use that PR number:
```text
Using PR #XX associated with the current branch `<branch>`.
```
- If no PR is found (the command fails, or the current branch has no PR), fall back to asking the user for the PR number:
```text
Could not detect a PR from the current branch. Please provide the PR number you'd like to address.
```
- If `$ARGUMENTS` is specified but is not a number, ask the user for the PR number:
```text
Please provide the PR number you'd like to address.
```
- If a clear number cannot be determined from the user's response, exit with an error. Do not guess or make ambiguous interpretations:
```text
Error: Could not identify the PR number. Please specify a number.
```
### Step 2: Fetch PR Information and Switch Branch
1. Fetch PR information with `gh pr view <PR number> --json state,headRefName,number,title,url`
2. If the command fails (no PR exists for the given number):
- Check if it exists as an Issue with `gh issue view <PR number>`, and if it's