/tend-ci-runner:monitor-cifrom tend-ci-runner
Polls CI checks for a pinned commit until all settle, returning green/red/unverified. Use after pushing to a PR or before declaring a failure pre-existing.
Ships in tend-ci-runner. 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.
Obtain CI evidence for the caller's pinned commit. Return the result to the calling workflow; that workflow decides what to repair or do next.
A session polling CI holds its runner while it waits, and on GitHub-hosted
runners the checks it waits for compete for the same account's job slots.
When the prompt says the review's CI wait is off, under yolo, tend-land acts
as each check finishes: it lands a head the review recorded once its CI is
green, and starts one repair session per failing head on a PR with no human
author. So after you push to a PR with no human author, record the push per
After the push in /tend-ci-runner:push-commits, say in your report that
tend-land owns its CI from there, and carry on with the rest of your workflow
without polling or merging that head. Poll as below where nothing else acts on the result: a PR
with a human author, a session whose prompt doesn't say the CI wait is off, a
rerun without a push (tend-land has already started that head's one repair),
or a check you need before calling a failure pre-existing. A review reads CI
for its approval per Without the CI wait in /tend-ci-runner:review.
Poll with the bundled script, pinned to the commit this session is accountable for — never the PR's current head: another actor can advance the head while the loop sleeps, and a poll that follows it reports their commit's results as yours:
# After your own push:
PINNED_SHA=$(git rev-parse HEAD)
# In a review session, HEAD is the ephemeral refs/pull/N/merge commit, which
# carries no rollup at all; pin the PR head instead:
# PINNED_SHA=$(cat "$TMPDIR/reviewed-head")
# When the push happened in a $TMPDIR worktree the recipe then removes, capture
# the OID there — `git rev-parse HEAD > "$TMPDIR/<name>-sha"` — before the removal.
# Back in the main checkout HEAD is the default branch, not what you pushed.
tend runtime poll-pr-checks poll <number> "$PINNED_SHA"
Run this command in the foreground with the longest command timeout the harness allows. It has no fixed time limit: it waits until every check settles, however long the repo's CI takes. It returns sooner only when no check registers, when checks still pend and the PR head moves, or when checks still pend near the session's end, where a red already standing is reported as red and otherwise the result is unverified.
The poll waits for every check, advisory ones included. Where the repo's overlay names checks the poll leaves out, pass each as --skip '<check name>', the name gh pr checks shows: the poll neither waits for nor reads any check of that name, so a red one doesn't stop the verdict either.
Exit 0 is green, judged on the latest run of each check — where one workflow ran twice independently on the same SHA, read the earlier run's own conclusion before relying on it. Exit 1 is red, with the failing checks and their run URLs: diagnose each failure with gh run view <run-id> --log-failed. Any other exit or command timeout is unverified, not green. Exit 3 means the head moved: report the checks it lists as unverified, marking each required or advisory (gh pr checks <number> --required lists the required contexts already registered on the commit; an omnibus that hasn't registered yet is required too).
Before calling a failure pre-existing (Grounded Analysis in /tend-ci-runner:run-tend), check the recent default-branch runs of the workflow it belongs to. Filter by that workflow — on a bot-active repo an unfiltered listing fills with other workflows' runs.
DEFAULT_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
# <workflow>: the workflow the failing check or test runs in, by name or file
gh run list --branch "$DEFAULT_BRANCH" --workflow "<workflow>" --status completed \
--limit 5 --json conclusion,createdAt,url
If you cannot verify, say "I haven't confirmed whether these failures are pre-existing."
To rerun a run's failed jobs and wait for the outcome, use the bundled script — it reruns, finds the new attempt's jobs (the parent run's .status and the commit rollup stay pending on unrelated siblings, so neither is a usable signal), and polls them to terminal:
tend runtime rerun-failed-jobs <run-id>
Same foreground invocation as above; it waits until the re-run jobs finish. Exit 0 prints each job's conclusion — completed is not success; the follow-up turns on the conclusions. Any other exit means the rerun never took: report the jobs as unverified.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub max-sixty/tend --plugin tend-ci-runner24 skills in this plugin
/act-in-other-reposAct in another repository. Use before filing an issue, commenting, or contributing anywhere other than this repo./check-requester-accessCheck a requester's access tier. Use when a request aims you at someone else's work — close, lock, label, revert, dismiss, push./code-reviewStructured second pass over a diff — correctness and cleanup angles, a verify pass, ranked findings returned to the caller./continue-prContinue an unfinished PR with no human author, including red CI and unresolved findings after a prior response or review./dismiss-approvalDismiss a standing bot approval. Use when you conclude that a PR the bot approved should not merge./fix-a-bugWrite a code fix for a bug. Use before writing any fix, whichever workflow you are running.Other plugins' skills for the same job