prlisted
Install: claude install-skill thettwe/nyann
# pr
Wraps `bin/pr.sh`. Two modes:
1. **Context-only** (`--context-only`). Collects branch + commit range
+ suggested title without any network calls. The gh auth check is
skipped entirely in this mode (the script exits with the JSON
summary before reaching the gh guard), so context-only also works
when `gh` isn't installed or authenticated. Use this when the user
wants you to synthesize a PR title and body from the commits before
shipping.
2. **Create** (default). Pushes the current branch with `-u` tracking
and invokes `gh pr create` with your title + body. Returns the PR
URL.
## 0. Drift check (quick, non-blocking)
Run `bash bin/session-check.sh --flow=pr`. If it produces output,
surface the line to the user verbatim. Do not block the flow.
## 1. Pre-flight
- Verify `gh` is installed and authenticated. `bin/pr.sh` does this
and emits `{skipped, reason}` with reason `gh-not-installed` or
`gh-not-authenticated`. If you see a skip, relay it cleanly; don't
try to install `gh` for the user.
- Verify the current branch is not `main`/`master`. If it is, refuse
and suggest `/nyann:branch` to create a feature branch first.
- Verify there are commits ahead of the base. If `ahead == 0`, tell
the user there's nothing to PR and suggest they commit first.
### Pre-action guards
```
bash bin/pre-action-guard.sh --flow pr --target <cwd> [--profile <resolved-profile.json>]
```
| Exit | Meaning | Action |
|---|---|---|
| 0 | Pass (or advisory warnin