wise-pr-watchlisted
Install: claude install-skill e1024kb/wise-claude
# /wise-pr-watch — watch a PR's pipelines and drive fixes
## Why this skill exists
After a PR lands, the ritual is: watch checks, fix the failures,
push, repeat until green. This skill is that loop, detached from PR
creation / reviewer attach so you can run it on any PR whenever you
want to hand off CI babysitting. (The `ticket-auto` workflow runs an
autonomous analogue of the same procedure.)
Single source of truth for the watch logic:
`plugins/wise/references/pr/watch-pipelines.md`. The drafting routine
the fix path commits with lives at
`plugins/wise/references/pr/commit-from-fix.md` (distilled from
`wise-commit-message` §3–§6). This skill reads `watch-pipelines.md`
at run time and follows it.
## Invocation
```
/wise-pr-watch
/wise:wise-pr-watch # canonical namespaced form
```
No positionals, no flags.
## Procedure
This skill does NOT probe dependencies up-front. If `gh` / `git`
is missing or `gh` is unauthenticated, the first command below
fails with a clean error and Claude surfaces that to the user
with a pointer at `/wise-init`.
### 1. Verify a PR exists for this branch
```bash
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
PR_JSON="$(gh pr view --json number,url 2>/dev/null)"
```
If `PR_JSON` is empty, STOP with:
```
No open PR found for branch <BRANCH>.
Create one first:
/wise-pr-create
```
Otherwise parse:
- `pr_number = .number`
- `pr_url = .url`
- `current_branch = <BRANCH>`
### 2. Detect the project path
```bash
PROJECT_PATH="$(git rev-par