agentleFS
gregwebsgregwebs/skills-sdlc/skills/github-actions-ci/SKILL.md

github-actions-ci

Skill17 starsChanged 2 months agoMITView on GitHub

Monitor, wait for, diagnose, rerun, and cancel a repository's GitHub Actions checks and runs. Use the bundled helper for check status and the GitHub App helper for rerun and cancel. Use after pushing or opening/updating a PR, when asked to watch CI or verify a named job such as Playwright, or when a GitHub Actions check fails.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the bundled helper as the single interface for check-run status.

    line 9
  2. Distinctive:

    Run one of these stable command shapes from the repository root:

    line 15
  3. Distinctive:

    After confirming a failure is transient or unrelated to the change, rerun the failed jobs for the workflow run with the GitHub App helper:

    line 32
  4. Very specific:

    Use the workflow run ID from the failed job URL.

    line 45
  5. Very specific:

    Use actions-force-cancel when a normal cancel is not taking effect:

    line 58
  6. Distinctive:

    Always relay the job URL printed by the helper.

    line 91
  7. Very specific:

    When the helper's stderr reports that no GitHub Actions checks apply (exit 0 with no job listing on stdout), tell the user the PR/commit …

    line 95

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub Actions CI

Use the bundled helper as the single interface for check-run status. It selects the host-compatible curl binary, resolves the repository and commit, and uses GitHub App authentication when local App credentials are available.

Monitor checks

Run one of these stable command shapes from the repository root:

${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh
${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh --wait
${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh --job JOB --wait
${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh --job JOB --wait COMMIT

The stable approval prefix is:

${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh

Rerun failed jobs

After confirming a failure is transient or unrelated to the change, rerun the failed jobs for the workflow run with the GitHub App helper:

./scripts/gh-app.sh actions-rerun-failed RUN_ID

The stable approval prefix is:

./scripts/gh-app.sh

Use the workflow run ID from the failed job URL. This reruns only failed jobs; it does not create a new workflow run or rerun successful jobs. Monitor the replacement checks with ${CLAUDE_SKILL_DIR}/scripts/check-ci-runs.sh --wait COMMIT.

Cancel runs

Cancel a workflow run by its run ID with the GitHub App helper:

./scripts/gh-app.sh actions-cancel RUN_ID

Use actions-force-cancel when a normal cancel is not taking effect:

./scripts/gh-app.sh actions-force-cancel RUN_ID

Both share the ./scripts/gh-app.sh stable approval prefix as rerun. Get the run ID from the failed job URL. Cancellation is destructive: only cancel a run when the user has asked, and confirm the run ID first.

GitHub requires network access. In a restricted Codex sandbox, request network escalation on the first call using that narrow prefix. Do not probe with raw curl or first run the helper without network access when DNS failure is expected. A persisted prefix approval can then match later invocations without another prompt.

With --wait, keep the process running and poll its existing execution session at intervals no longer than 30 seconds so the user continues to receive timely updates. Do not start duplicate monitors. Authenticated polling defaults to ten seconds; the helper backs off to sixty seconds when App credentials are absent to respect GitHub's anonymous rate limit. When no check runs are found yet, the helper waits up to CI_ABSENT_GRACE_SECONDS (default 120s) before concluding that no GitHub Actions checks apply to the commit.

Exit status means:

  • 0: every selected check completed successfully, or the helper determined that no GitHub Actions checks apply to this commit at all. Read the stderr line to tell which — a "no GitHub Actions workflows configured" or "no GitHub Actions checks apply to <sha>" message means the latter.
  • 1: at least one selected check completed unsuccessfully.
  • 2: selected checks are pending or undetermined when not using --wait.

Always relay the job URL printed by the helper.

No CI configured

When the helper's stderr reports that no GitHub Actions checks apply (exit 0 with no job listing on stdout), tell the user the PR/commit has no GitHub Actions CI rather than saying "CI passed" — there is nothing to point a job URL at. Stop there: do not rerun the helper, start --wait again, or otherwise keep monitoring a commit that has nothing to report.

Handle results

On success, run the unfiltered helper once to report the complete final CI state when the repository workflow requires all jobs to pass.

On failure:

  1. Open the printed job URL or use the GitHub App read helpers where they cover the needed metadata.
  2. Identify the first substantive failing step; ignore teardown noise caused by the failure.
  3. Reproduce with the repository's documented local command when the host supports it.
  4. Make only in-scope changes, run the relevant local checks, push, and wait for the replacement CI run.

For CI architecture, artifacts, and project specific troubleshooting, create and update project specific documentation rather than duplicating it here.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.