/ratchet-github:github-actions-authoringfrom ratchet-github
Use when writing, editing, or reviewing a GitHub Actions workflow such as ci.yml, or a composite action, or when asked to add or change a job, a matrix, test shards, triggers, or a concurrency block. Design GitHub Actions workflows that react to events instead of polling, and check triggers, concurrency, timeouts, runners, pins, and job size.
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.
Read every applicable AGENTS.md first. Repository-local policy owns runner labels, permissions, action pins, concurrency, secrets,
and required-check names, and overrides these defaults. When the no-mistakes-rules plugin is
installed, no-mistakes-rules:github-actions-rules is the optional rule list for triggers,
permissions, pins, and timeouts; this skill covers the design those rules do not prescribe.
A workflow reacts to a state transition and never polls; "Reject polling designs" states the rule and its two exceptions.
When a request asks by name for something this skill or one of its references says not to do, such as chaining independent jobs or one job per small upload, say why and give what the rule calls for in its place. Do not hand over what was asked for with a note beside it.
Before editing any workflow, read the workflow baseline:
trigger types that restart passed checks, concurrency and cancellation, the 30-minute job bound,
runner choice, and pinning. For a manually dispatched workflow that mutates shared infrastructure
or data, also read destructive workflows. For a job on a
self-hosted or otherwise persistent runner, or one moving from such a runner to a hosted one,
also read persistent runner workspaces: checkout, workspace
ownership and repair, and the runner-local state a move drops. When adding a job, a matrix, a
shard, or a needs edge, or choosing which suites run on a pull request, read
job sizing.
needs for jobs in one workflow. Use workflow_call when the caller must await a reusable
workflow. When a consumer must run after failure or skip, give it an explicit status condition and
read needs.<job>.result. The implicit success condition skips it otherwise.workflow_run when a completed workflow is the trusted event boundary. Validate the source
workflow, repository, branch or pull-request head, conclusion, and artifacts before acting.workflow_run receiver must already exist on the default branch. GitHub chains at most three
workflow_run levels. Plan that rollout, and collapse a deeper chain into one DAG.repository_dispatch for a cross-repository transition or an authenticated external callback.
Authenticate the sender, pass immutable correlation data, validate it against the source, and make
duplicate delivery safe. The receiver must already exist on the default branch before senders are
enabled.gh or the API, even once. On a
tag or branch push that workflow may still be running, so a single lookup races it. Call it with
workflow_call and needs, or trigger on a validated workflow_run. A manually dispatched
run, such as promoting an operator-chosen SHA, may look up a run that already completed when it
validates the workflow, repository, SHA, and successful conclusion.
It does not wait for convergence.run: script to a tracked file with tests. Inline scripts are not linted
beyond syntax, cannot be run locally, and are reviewed as YAML strings./bin/bash (3.2), not
only on the Linux runner. Avoid mapfile, declare -A, ${var,,}, and GNU-only flags, or
state the interpreter and require a newer one explicitly. With set -u, expand a possibly
empty array as "${arr[@]+"${arr[@]}"}". Never assign zsh's read-only status or pipestatus.gh api calls
in a step, read revisions, secrets, caches, and artifacts.codecov.yml, no Codecov
statuses. A status that can go red without blocking anything is noise that hides real failures.continue-on-error: true
on the upload step. The upload fails for reasons the change did not cause, such as an outage or
a rate limit, and a job that is red for that hides whether the tests passed. The tests, and any
coverage threshold the repository checks itself, still fail the job.continue-on-error. It fails loudly when it cannot publish, and it is skipped on a cancelled
run. The Codecov upload differs because the job's result is the tests; here the report is the
result, and a swallowed failure means reviewers never saw a plan, while a cancelled run that
still posts reports a false "Plan failed".github-ci-operations owns it.Declare a cloud role or API key at job level, in a job gated on a trusted context, so an
untrusted pull request never receives it. A job that calls a live provider or real cloud
resources stays out of the required gate's needs and has no continue-on-error: its red status
is the signal, and a rerun gains nothing. test-authoring owns what gates instead.
Never grant actions: write in the job-level permissions of a job that runs checked-out code.
That token can cancel runs, delete caches, and dispatch workflows, so any code the job executes,
including a dependency install script, can use it. Put the step that needs it in a separate job
that checks out nothing.
Bind a policy check to an immutable commit SHA, not a branch or tag name, and confirm which inputs an untrusted pull request cannot rewrite. Read the policy from the base revision, not the head that is being checked.
gh run watch on a run or deployment that another workflow owns.sleep before a step to let something settle. Trigger on the event that
says it has. ratchet-backend:event-handlers covers the same rule for handlers and jobs.review-ci-logs says how to retry a download.aws ecs wait services-stable after it updates the service, under the step's timeout. How
that command waits is the provider's concern; the workflow adds no sleep or loop of its own.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-ci-operations