Read the user's GitHub pull-request dashboard with `prmarmot-cli` — their own PRs and what blocks them (CI, conflicts, reviews, unresolved comments, missing reviewers), their review queue, every open PR in one repository, what changed since they last looked, and a blocking watch that waits for a PR event such as CI passing or a review arriving. Use it whenever the user asks "what's the status of my PRs", "what needs my attention", "what should I review", "anything waiting on me", "did CI pass...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Prmarmot Cli?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/oliver-kriska-prmarmot-cli)
---
name: prmarmot-cli
description: Read the user's GitHub pull-request dashboard with `prmarmot-cli` — their own PRs and what blocks them (CI, conflicts, reviews, unresolved comments, missing reviewers), their review queue, every open PR in one repository, what changed since they last looked, and a blocking watch that waits for a PR event such as CI passing or a review arriving. Use it whenever the user asks "what's the status of my PRs", "what needs my attention", "what should I review", "anything waiting on me", "did CI pass", "tell me when this PR is approved/merged", or wants a PR summary for standup or a report. Prefer it over hand-written `gh pr list` or `gh api` loops, because it applies PR Marmot's categorization and costs one GraphQL request per view. Read-only: it cannot comment, approve, merge, watch, or snooze.
---
# prmarmot-cli
`prmarmot-cli` prints PR Marmot's views: **My PRs**, the **Review queue**, and
**All open** (every open PR in one repository, whoever wrote it). It uses the same GitHub query, categories, Notes, and sections as the desktop
app. Authentication comes from `gh`.
## Before the first call
Run `prmarmot-cli --version`. If the command is missing, tell the user. The PR
Marmot app installers (Homebrew cask, `install.sh`, `make install`) put it on
`PATH`; without the app it installs with
`cargo install --locked --git https://github.com/oliver-kriska/prmarmot prmarmot-cli`.
This skill is built into the binary. If a flag here is rejected, run
`prmarmot-cli skill` to read the copy that matches the installed version.
`prmarmot-cli skill install --force` refreshes the user-level copy, but ask the
user before running it.
## Snapshot: what is the state right now
Always pass `--json`; its shape is stable (`prmarmot-cli/board@1`). Pass a scope
explicitly, because the default comes from the user's config:
```sh
prmarmot-cli mine --repo owner/name --json # PRs the user authored in one repo
prmarmot-cli mine --all-repos --authored --json # PRs the user authored, any repo
prmarmot-cli mine --all-repos --json # every open PR involving the user
prmarmot-cli review --all-repos --json # PRs waiting for the user's review
prmarmot-cli all --repo owner/name --json # every open PR in one repo, anyone's
```
`all` needs one repository and exits 2 without one. It lists the repository's
open PRs in the same sections as `mine --all-repos`, with `todo` for reviews
requested from the user. In `--filter`, `label:` and `author:`
are matched by GitHub across the whole repository; other terms check only the
loaded PRs. `total` says how many are open (or match those two terms): when it
is larger than `count + filters.filtered_out`, not every PR was checked.
**Structure:**
- The top level has `sections[]`, in the app's display order: the default one,
or the user's `section_order` from config.toml. Find a section by `key`,
never by position.
- Each section has a stable `key`, a `label`, an `explanation` (one sentence on
what puts a PR there; quote it when the user asks what a section means), and
`prs[]`.
- Section keys:
| Key | Meaning |
| --- | --- |
| `approved` | approved and waiting to merge |
| `action` | the user's PRs blocked on the user (see `blockers`); in `mine --all-repos` and `all`, also others' PRs with a conflict, failing CI, requested changes, or unresolved comments |
| `await` | waiting on reviewers: one is requested or has commented, nothing blocks it, nobody approved yet |
| `todo` | review requested from the user |
| `available` | nobody requested yet: in `review`, a PR the user may pick up; in `mine --all-repos` and `all`, someone else's PR with no reviewer requested and no review |
| `done` | already reviewed |
| `draft` | drafts |
| `snoozed` | snoozed in the app; mention them only if asked |
**Each PR has:**
- **Identity:** `repo`, `number`, `url`, `title`, `author`.
- **State:** `ci` (`pass`, `fail`, `running`, `none`), `conflict`,
`review_decision`, `requested_reviewers`, `reviews[]`, `my_review`,
`unresolved_threads`, `labels`, `issue`, `stack`. `unresolved_threads_capped`
is true when the PR has more threads than the newest 100 that were read, so
the count is a minimum. `replied_threads` are the unresolved threads whose
newest comment is the user's own (answered, not on their plate), and
`returned_threads` the threads they opened on someone else's PR that the
author has since answered (their turn again).
- **Reviews:** `reviews[]` has each other reviewer's standing review and
`my_review` the user's own (`NONE` if none). A standing review is the latest,
except that a later comment does not cancel an approval or change request.
- **`note`:** a one-line human summary. "CI failing" names the failing
checks and "changes requested" names who asked when GitHub said.
- **`commits_since_review`:** `{count, lower_bound}` when the PR's head moved
on from the commit the user reviewed (`lower_bound` true means at least
`count`, past the newest 20 commits read); null otherwise.
- **`failed_checks`:** the checks on the latest commit that failed, each with
its `name` and run `url` (null when GitHub gave none); at most 10. Empty
when CI is not failing. **`unresolved_paths`:** the files the open review
threads are on, each once, newest first; at most 20.
- **Pickup age:** `waiting_since` is when the PR started waiting for a
reviewer (its review request, or when it opened or became ready for
review), null when it isn't waiting (drafts, already reviewed). `stale` is
true once it has waited `filters.stale_after_days` (default 3) or longer.
Sections that wait on a reviewer list the longest wait first.
- **`agent`:** true when a coding agent or bot opened the PR (GitHub's `Bot`
account type, or an author the config's `agent_authors` names). An agent's
PR no person has reviewed and nothing blocks reads "no human has looked
yet": a review whose `bot` is true (a `Bot` account's) does not count, and
a plain comment is not a review.
- **`size`:** `band` (`small`: at most 100 changed lines and 10 files;
`large`: more than 400 lines or 30 files; otherwise `medium`),
`additions`, `deletions`, and `changed_files`. It is null when GitHub
didn't report the counts. Don't turn a band into a time estimate.
- **`blockers[]`:** typed as `merge_conflict`, `cannot_rebase` (only in a
repository that allows rebase merges alone), `ci_failing`,
`changes_requested`, `unresolved_comments` (with `count`), or `no_reviewers`
(with `suggested`).
- **`attention`:** `watched`, `snoozed`, `changed`, and `changes[]`, the
phrases for what changed.
Fields are only added within `@1`, so ignore any you don't know. The full
JSON Schemas are `cli/schema/board-v1.schema.json`,
`cli/schema/event-v1.schema.json`, `cli/schema/pr-v1.schema.json` (`pr`),
and `cli/schema/report-v1.schema.json` (`report`) in the PR Marmot repository.
Useful filters:
```sh
# What needs the user's action
prmarmot-cli mine --all-repos --json |
jq -r '.sections[] | select(.key == "action") | .prs[] | "\(.repo)#\(.number) \(.note) \(.url)"'
# Reviews to do
prmarmot-cli review --all-repos --json |
jq -r '.sections[] | select(.key == "todo") | .prs[] | "\(.repo)#\(.number) by \(.author) \(.url)"'
# Reviews that have waited too long, oldest first
prmarmot-cli review --all-repos --stale --json |
jq -r '.sections[] | select(.key == "todo" or .key == "available") | .prs[] | "\(.repo)#\(.number) waiting since \(.waiting_since) \(.url)"'
# Requested and available PRs, smallest change first
prmarmot-cli review --all-repos --sort smallest --json |
jq -r '.sections[] | select(.key == "todo" or .key == "available") | .prs[] | "\(.repo)#\(.number) \(.size.band // "unknown") \(.url)"'
# What changed since the user last looked in PR Marmot
prmarmot-cli mine --all-repos --changed --json |
jq -r '.sections[].prs[] | "\(.repo)#\(.number): \(.attention.changes | join("; "))"'
```
Other flags:
- `--watched`: only PRs the user watches in the app.
- `--stale`: only PRs that have waited `stale_after_days` or longer for a
reviewer. Good for "what's been sitting too long?".
- `--agent` / `--no-agent`: only PRs a coding agent or bot opened (GitHub's
`Bot` accounts plus config `agent_authors`), or only a person's. The same
split as `is:agent` / `is:human` in `--filter`.
- `--sort smallest` (`review` only): list requested and available PRs by
size band, then changed lines, then longest wait. The default is
`--sort wait`. The envelope's `sort` says which order was used.
- `--pages N` (1–5): load more results. Use it only when the output says
`more_pages_available: true`.
- `--format markdown`: a ready-to-paste report with linked PR tables, useful
when the user wants the dashboard itself rather than an answer.
## One PR: everything the app knows about it
```bash
prmarmot-cli pr owner/name#123 --json # or the PR's URL
```
Prints one pull request as the board's `pr` object (same fields as above,
classified as in Involving me), plus `status`: `open`, `merged`, `closed`,
or `inaccessible` (nothing came back: no such PR, or the token can't see it;
`pr` is null and the exit code is 1). Without `--json` it prints a heading,
the link, and one line per Details-panel entry — the Note and the evidence
behind it (failing check names, the files with unresolved threads, who asked
for changes), CI, checks, reviewers, reviews, the wait, size, labels, issue —
and an `In PR Marmot:` line with the app's marks (watched, snoozed, changed,
stale) when any apply. Use it after a board call to drill into one PR; it
costs one small request after the id lookup.
## Report: what happened since a moment
```bash
prmarmot-cli report --since 1d --json # also 12h, 3d, 1w, or 2026-10-01
prmarmot-cli report --since 1w --repo owner/name
```
A standup in one call: `merged` (PRs involving the user merged since the
moment, each with `yours` and `merged_at`), `opened` (PRs the user opened
since it, with `state` open / merged / closed), `blocked` (the user's open
PRs in Needs action right now, as `board@1` PR objects with their Note), and
`waiting` (the user's open PRs in Awaiting review, with `waiting_since` and
`stale`). Without `--json` it prints Markdown ready to paste into a standup
thread: four headed lists with linked references, the last two cut at 10 PRs
with the rest counted (JSON holds them all). `--since` defaults to one day;
`--all-repos` or `--repo` scope it like the views. `truncated` is true when
a search matched more than the 100 rows a list holds. `blocked`, `waiting`,
and the section an open PR in `opened` is placed in come from the first
page of the user's open PRs (60 rows); `open_truncated` is true when there
were more, and an open PR off that page reads just "open". `prmarmot-cli
mine` reads every page.
## Watch: wait for something to happen
`watch` blocks. It prints one JSON line per event and exits after `--events N`
events. Run it as a background task, not a foreground command that can time
out:
```sh
# Wait for the next change to one of the user's PRs in a repo (checks every 60 s)
prmarmot-cli watch mine --repo owner/name --json --interval 60 --events 1
# Follow one PR (any repo, any author) until it merges or closes
prmarmot-cli pr owner/name#123 --json
prmarmot-cli watch --pr owner/name#123 --json --interval 60
# Wait for one PR's CI: exit 0 when it passes, 5 if it fails, 6 after 30 minutes
prmarmot-cli watch --pr owner/name#123 --json --until ci-pass --timeout 30m
```
The first line is `{"type":"ready",...}`. After that, each line is one of:
- `changed`: `kind` is `merge_conflict`, `changes_requested`, `review_again`,
`ci_passed`, or `changed`. The line also has `title`, `body`, `changes[]`,
and the full `pr`.
- `added`: a PR entered the view.
- `removed`: a PR left the view. `status` is `merged`, `closed`, `open`,
`inaccessible`, or `unknown`. With `--pr` the watch ends here (exit 0) once
the PR merges, closes, or becomes inaccessible (at once if it already has);
with `--until`, an `until` line follows it.
- `rate_limited` or `error`: informational. The watch retries by itself; these
don't count toward `--events`.
- `until`: the last line of a `--until` or `--timeout` wait (see below).
To wait for one specific PR, use `--pr owner/name#123` (a PR URL works too)
rather than filtering a view. Add `--events 1` to return on its first change
instead of when it closes. `--pr` can't be combined with `--repo`,
`--all-repos`, `--watched`, or `--authored`; a PR or repository that doesn't
exist or isn't visible to `gh` exits 1 before the first event.
### Wait for a condition
To wait for a state rather than for any change, add `--until` to `--pr`. The
exit code is the answer, so there is nothing to parse unless you want the
reason:
| `--until` | Met (exit 0) when | Unmet (exit 5) when |
| --- | --- | --- |
| `ci-pass` | the checks are green (a cancelled or skipped check doesn't fail them) | CI fails. A PR with no checks never passes; bound the wait with `--timeout` |
| `approved` | GitHub's review decision is approved. Without branch protection the standing reviews decide: an approval, the user's own included, and no change requests | changes are requested |
| `mergeable` | approved, CI green, no conflict, not a draft, no unresolved threads, and GitHub reports a clean merge state (nothing blocking, branch up to date) | CI fails or changes are requested |
| `merged` | the PR merged | the PR closed without merging |
A merge ends every wait as met (exit 0): whatever you were waiting for before
acting no longer matters. The `until` line then has `condition: "merged"`, and
`reasons[]` lists the asked-for conditions that were never seen (`not_seen`),
so you can tell "merged" from "approved". Every condition is unmet when the PR
closes without merging or becomes inaccessible. Requested changes don't end a
`ci-pass` wait.
- Repeat `--until` or comma-separate it (`--until ci-pass,approved`) to stop at
whichever holds first. The wait is unmet only when none of them can hold.
- Conditions are checked on every poll, including the first, so a PR that
already qualifies returns at once.
- `--timeout 30m` (also `90s`, `2h`, `1h30m`) gives up with exit 6. The last
check lands on the deadline when the 30-second floor allows it.
- `--until` can't be combined with `--events`.
The last line is `{"type":"until",...}`:
- `outcome` is `met`, `unmet`, or `timeout`.
- `condition` names the condition that was met (`merged` after a merge).
- `reasons[]` lists each unmet condition as `condition`, `reason` (`ci_failed`,
`changes_requested`, `closed`, `inaccessible`), and `text`. After a merge it
lists the conditions never seen, with reason `not_seen`.
- `pr` is the PR as last seen.
With `--pr`, the `ready` line also carries `until[]` and `timeout_secs`.
```sh
# Wait up to 2 hours for an approval (a merge ends the wait too)
prmarmot-cli watch --pr https://github.com/owner/name/pull/123 --json --until approved --timeout 2h
```
Don't pipe the stream into `head` or a read loop: the pipe only closes when the
next event arrives.
Keep polling cheap:
- `--interval` can't go below 30 seconds, and the default is five minutes.
- Never loop snapshot commands to poll; use `watch`.
## Exit codes
| Code | Meaning | What to do |
| --- | --- | --- |
| `0` | ok | continue |
| `1` | GitHub or network error, or `--repo` not found / not accessible | read stderr; fix the repo name, or retry once later |
| `2` | bad arguments, or `all` without a repository | read `prmarmot-cli --help`; pass `--repo` to `all` |
| `3` | `gh` missing or not signed in | ask the user to run `gh auth login`; never handle credentials yourself |
| `4` | rate limited | stop and report; don't retry in a loop |
| `5` | `watch --until`: the condition can no longer be met (CI failed, changes requested, closed without merging, inaccessible) | report the `reasons` from the `until` line; don't restart the wait |
| `6` | `watch --timeout` passed first | report that it is still pending; wait again only if the user wants |
Errors go to stderr, and stdout carries only data.
## Limits to respect
- **Read-only.** To comment, review, or merge, use `gh`, and only when the user
asks. Watch, snooze, and "mark as seen" happen in the desktop app. Never claim
you changed them.
- **`attention.changed`** means changed since the user last selected the PR in
PR Marmot. The CLI never clears it.
- **Watch events** are measured from one check to the next, starting when the
watch starts.
- **Truncation.** If `truncated` or `more_pages_available` is true, the list is
incomplete. Say so rather than presenting it as everything.