/rhiza:remote [branch, or --all for every open request] (optional; defaults to the branch you are on)from Rhiza
Checks CI status for open pull/merge requests, reproduces failures locally, and pushes fixes to the request's branch without touching the default branch.
Ships in Rhiza. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running /remote in the current working directory's repo.
The gap this closes. /rhiza:quality files findings as issues, those issues become
branches, and the branches become requests that were green when they left. Local green
and origin green are different claims, and only the second one merges. A suite that
passes on a warm cache with the author's toolchain says nothing about a matrix leg on
another OS, a lockfile the runner resolves differently, a gate that exists only in the
workflow, or a network call that is rate-limited today.
This command asks the forge what actually happened, and then fixes what it finds. It is the only rhiza command that reads CI.
One rule outranks everything below: never make a check green by weakening it.
Deleting the failing test, lowering the threshold, narrowing the matrix, adding
continue-on-error or --ignore — each of those turns a red build into a green one
without changing what is broken, and the next person inherits both the defect and a gate
that will never mention it again. If the honest fix is out of reach, say so, leave the
build red, and report why. A red request is information; a falsely green one is not.
git rev-parse --is-inside-work-tree
uv run --python 3.12 --no-project python "${CLAUDE_PLUGIN_ROOT}/scripts/platform_cli.py" auth-status
${CLAUDE_PLUGIN_ROOT} resolves at runtime (keep the quotes); in a source checkout
it is empty, so fall back to plugin/scripts/platform_cli.py. The same substitution
applies to every script below.
auth-status distinguishes the two failures that look alike from here — no CLI
installed and a CLI that is not logged in — and it names which of gh/glab this
repo's origin calls for. Neither is something to work around: without it there is no
way to read CI, and guessing at the state of a build is worse than reporting that you
could not read it. Stop and say which of the two it was.
This command needs no .rhiza/ directory and no template. A repo that is not
rhiza-managed still has requests and still has CI, and all of this applies unchanged.
uv run --python 3.12 --no-project python "${CLAUDE_PLUGIN_ROOT}/scripts/pr_status.py"
Flags:
--branch <name> — one branch's request. The default is the branch you are on, so
the bare command answers "is the thing I am working on green?".--all — every open request. Use it when $ARGUMENTS says so, and when the branch you
are on has no request.--limit <n> — how many requests to fetch (default 20).--json — the same report as an object, when you want to reason over it rather than
read it.--dry-run — print the query without running it.If $ARGUMENTS names a branch, pass it to --branch; if it is --all, pass that.
What the report means, precisely, because two of its states are routinely misread:
| state | reading |
|---|---|
fail | at least one check failed. This is the work. |
pending | something is still running. Not yet an answer — say so rather than reporting the passing subset as a verdict. |
cancelled | usually superseded by a newer push, occasionally a runner that died. Look before treating it as either. |
unknown | a state the script has not seen, or no checks at all. |
pass | every check that ran, passed. |
unknown with an empty check list is a finding, not a blank. A request whose
workflow never triggered — a path filter that no longer matches, a workflow file the
runner refuses to parse, a fork whose runs need approval — shows a perfectly clean
report. Merging it is merging untested code. Chase it exactly as hard as a fail.
The report is per-job on GitHub and per-pipeline on GitLab. That asymmetry is
deliberate and is stated in plugin/scripts/pr_status.py: only GitHub's per-job shape has been
verified against a live forge. On GitLab the drill-down command under a failing pipeline
is the one that lists its failing jobs, so the extra step is a command away, not a guess.
For each failing check, the report prints a logs: line — the exact command for this
platform. Run it, and read the failure rather than the check name.
gh run view <RUN_ID> --log-failed
glab ci get --pipeline-id <PIPELINE_ID> --status failed --with-job-details
On GitLab that lists the failing jobs; glab ci trace <JOB_ID> then streams one job's
log. Always name a job — bare glab ci trace opens an interactive picker, which
hangs a non-interactive run.
Sort what you find into four kinds, because only one of them is a code fix:
cargo, resolves a lockfile
differently, starts from a cold cache, or lacks a secret. The code may be fine and the
workflow is what needs the change — or the dependency needs pinning.Read
${CLAUDE_PLUGIN_ROOT}/prompts/known-issues.md (source checkout:
plugin/prompts/known-issues.md) before diagnosing. It names failures that are not this
repo's to fix, keyed by the template ref in .rhiza/template.lock — and one of them
must specifically not be fixed, because the obvious fix makes the package
unbuildable.State which kind each failure is before proposing anything. The four have different fixes and three of them are not code.
Before changing a line, try to make the failure happen here:
make test
make lint
Run the target the failing job ran, bare — no pipe, redirect, chain or cd prefix. The
plugin's own PreToolUse hook denies a compound make and tells you to re-run it bare,
because the arguments and thresholds live in the target.
A failure you can reproduce is one you can verify you fixed. One you cannot is the common case here — that is what "passes locally, fails on origin" means — and it changes the standard of evidence, not the standard of care. Say which situation you are in. When you cannot reproduce it, the fix is a hypothesis until CI agrees, and the honest sentence is "this should fix it; the run on origin will say".
git fetch origin
git checkout <BRANCH>
git pull --ff-only
Then make the smallest change that addresses the cause, run the local gates, and commit in Conventional Commits form:
git commit -am "fix(ci): <what changed and why>"
git push origin HEAD
Four boundaries, none of them negotiable:
AskUserQuestion.--all, finish and report one before starting the
next; a single commit spanning three unrelated red builds cannot be reviewed or
reverted.If the branch has diverged, or the fix belongs somewhere other than this request, stop and say so instead of improvising a merge.
If the commit is refused by check-managed-files, that is not a problem to work
around. In a rhiza-managed repo the likeliest thing a CI fix touches is
.github/workflows/* or .gitlab-ci.yml, and those are template-owned — so the hook
refusing the commit is it doing its job, telling you the edit would vanish at the next
sync. Do not reach for SKIP=: that bypass belongs to the sync commit, which
restores managed files, and using it here silently commits an edit with a known
expiry date. Instead report which managed path the fix needs, and say that the change
belongs upstream in the template — or under exclude: in .rhiza/template.yml if this
repo means to own that file from now on. Both are the user's call, not this command's.
Re-run step 1 for the branch you pushed to. CI takes minutes, so a pending report right
after a push is expected, not a result — say that rather than presenting it as one, and
let the user decide whether to wait.
Close with, per request touched:
Report the ones you did not fix as prominently as the ones you did. An infrastructure flake you re-ran, a failure whose honest fix is out of scope, a request you never got to — each is a thing the user has to decide about, and a summary that mentions only the fixed ones reads as "all clear".
For a quality score rather than a CI report, use /rhiza:quality; it is the only command
that scores, and it never reads the forge.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jebel-quant/rhiza-claude --plugin rhiza12 skills in this plugin
/completions1. Work out which shellInstall shell tab-completion for make targets, so `make <TAB>` lists a project's targets. Writes to the user's data directory, not to the repo. Works in any make project./detach1. Confirm intent firstDetach this repo from rhiza — delete every rhiza-managed file listed in .rhiza/template.lock, prune the emptied directories, and remove the lock file. DESTRUCTIVE; prompts for confirmation unless --force is passed./docs1. Detect the repo's factsCreate or refresh this repo's README.md, CLAUDE.md and mkdocs.yml, detecting project metadata from git and the manifest. Preserves hand-written prose. Writes files only — no commit, no branch, no PR./fix0. PreconditionsRead this repo's open issues, triage them, and open one pull request per issue that can be fixed without a judgement call. Issues that need a decision, or that look stale or superseded, are reported with a recommendation rather than guessed at./history0. PreconditionsRead this repo's open pull requests and issues together — say which are obsolete and why, the order the open requests should merge in, which issues are trivial, and what to address next. Closes nothing; it only posts the comments you select./init1. PreconditionsMake the current folder a rhiza-managed repo — write the .rhiza/template.yml pointer, add a skeleton and license, open a PR. Supports Python, Rust and Go. Syncs nothing; run /rhiza:update after it merges.