coderabbit-prlisted
Install: claude install-skill NomadicDaddy/aidd
# CodeRabbit PR Remediation
Fetch the review feedback the CodeRabbit GitHub App left on a pull request, triage it, fix what
is real, and commit the fixes. This is the second half of the PR review loop: the GitHub App
reviews pushed PRs in the cloud; this skill brings that feedback back into the working tree
and addresses it.
## Usage
```
coderabbit-pr [app] [pr-number]
```
If `[app]` is omitted, infer from the current working directory. If `[pr-number]` is omitted, use
the open pull request for the current branch.
## Setup
1. Check that the GitHub CLI is available and logged in:
- `gh --version`
- `gh auth status`
2. If either fails, STOP and report what is missing: install from cli.github.com, then
`gh auth login` (interactive; the user must do this themselves).
3. Confirm the repository has a GitHub remote (`gh repo view --json nameWithOwner`). If not,
stop and say so.
## Workflow
### Step 1: Resolve the pull request
- Use the `[pr-number]` argument if provided; otherwise `gh pr view --json number,headRefName,state`
for the current branch.
- If no PR exists, report that and stop. If the PR's head branch does not match the current
branch, check out the head branch first (stop instead if the working tree is dirty).
### Step 2: Collect CodeRabbit feedback
CodeRabbit posts on three surfaces; gather all of them, filtering to comments authored by
`coderabbitai[bot]`:
```bash
gh api repos/{owner}/{repo}/pulls/<pr>/comments --paginate # inline review