/ratchet-github:github-ci-operationsfrom ratchet-github
Use when CI is slow, queued, backlogged, or expensive, when asked to cancel, re-run, or clean up stuck or queued workflow runs, when jobs wait for runners, or when deciding whether to add runners or upgrade a plan on GitHub Actions. Measures job time and queue wait with small API queries, gives the hosted-runner limits, and says what to do, in order, when runs are backed up.
Ships in ratchet-github. 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.
Read when SKILL.md points to them; scripts run unread.
Read every applicable AGENTS.md first. Repository-local policy overrides these defaults.
This skill is for a CI system that works but is slow, backed up, or costly. For a run that
fails, use review-ci-logs. For how a workflow should be written, including job size and which
suites run on pull requests, use github-actions-authoring.
Ask the API for the fields you need. A log or a full JSON response costs thousands of tokens and answers the same question a five-column table does. When a request asks by name for something this section says not to do, such as a polling loop or a whole run's log, say why and give the small query in its place. Do not hand over what was asked for with a note beside it.
cookbook has the commands for each measurement below, and two bundled scripts: a CI report for a window of runs and a canceller for runs stuck for hours.
started_at - created_at. Run time is completed_at - started_at. Step times are in the
same response.gh run watch, gh pr checks --watch, or a sleep
loop. A poll tells an agent nothing the timestamps will not: how long a job queued is
started_at - created_at once it starts, so the jobs of a run, read once after the jobs
start, give the wait exactly. To wait for a result, use the event-driven tool the repository
provides.review-ci-logs owns how to read it.Concurrency on GitHub-hosted standard runners is counted across every repository in the account, not per repository. The limits as documented on 2026-11-23:
| Plan | Total concurrent jobs | Concurrent macOS jobs |
|---|---|---|
| Free | 20 | 5 |
| Pro | 40 | 5 |
| Team | 60 | 5 |
| Enterprise | 500 | 50 |
Jobs queuing for runners at the account's limit is its own situation, with steps that are wrong at any other time, such as cancelling runs on the default branch. When jobs wait minutes for a runner and the count of running jobs has reached a limit in the table above, read backlog and follow its order. On standard hosted runners, a queue while the account is under those limits is the provider's delay; wait it out. A self-hosted or larger-runner pool has its own capacity, which the table does not give.
Outside a backlog, cancel only these, without asking:
gh-readonly-queue/...), whose cancel removes its pull request from the
queue, or a run for a tag or a release.Never cancel a run on the default branch outside the backlog steps: each commit there needs its own result. A run that is not stuck or superseded is left to finish.
Give the measurements the decision rests on: jobs per run, the share that finish in under two minutes, total queue wait, wall time, and the saturated label. State what was cancelled.
references/backlog.md (opens in a new tab)references/cookbook.md (opens in a new tab)scripts/extras.py (opens in a new tab)scripts/ghlib.py (opens in a new tab)scripts/report.py (opens in a new tab)scripts/stale.py (opens in a new tab)tests/fakegh.py (opens in a new tab)tests/test_ghlib.py (opens in a new tab)tests/test_report.py (opens in a new tab)tests/test_stale.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jongleberry/ratchet-stack --plugin ratchet-github11 skills in this plugin
/dependabotUse when writing or reviewing dependabot.yml or a workflow that runs on Dependabot pull requests, when asked to trigger, re-run, or force a Dependabot run, or when a Dependabot pull request has a conflict, a stale lockfile, or a failing bump. Configures coverage, grouping, cooldowns, and secrets, starts an update check on demand, and repairs a Dependabot pull request./git-commit-checklistUse before every git commit, before a rebase, reset, or force push of a branch another person or agent may push to, when a rebase or merge conflicts in a lockfile, a generated file, or source, when a stacked branch's base has merged, and when git fails on a .lock file. Check scope, staged content, and message, resolve conflicts without taking a side, and force-push or clear a lock safely./github-actions-authoring