claude-address-reviewlisted
Install: claude install-skill erclx/canon
# Claude address review
The worker's half of the review channel. `claude-pr-review` posts findings to
the PR from an independent session. This skill consumes them: fix, reply, push.
## Guards
- If no open PR resolves for the current branch via `gh pr view`, stop: `❌ No open PR. Nothing to address.`
- If the PR has no review comments or threads, run step 5's staleness test before deciding. A branch that still merges stops here: `✅ No review findings to address.` One that does not skips steps 1 through 4 and runs step 5 onward, since a branch goes stale from `main` moving and a closed review says nothing about whether it still merges.
- Fix findings. Do not merge.
## Step 1: pull the review findings and CI status
Read the review comments and threads on the PR:
```bash
gh pr view --json number,reviews,comments
```
For inline review comments, read them via `gh api` on the PR's review comments. Collect each finding with its file, location, and body.
Also read the CI check status so the fixes cover failing checks, not only review comments:
```bash
canon pr checks <number> --json
```
Read the verdict off the record's `state` rather than off the exit. Treat `failing` as a finding to resolve alongside the review comments. A `pending` covers a tip whose runs have yet to conclude and a tip carrying no run at all, which the record separates on `matched`, and neither is a green to continue on. Fall back to `gh pr checks <number>` when no record comes back at all, which is a targ