michael-f-bryan/skills

wait-for-ci

Wait for a GitHub Actions run to finish with minimal terminal output and a reliable exit code.

First seen Mar 10, 2026

Installation

$ npx skills add michael-f-bryan/skills --skill wait-for-ci

Summary

  • Wait for a GitHub Actions run to finish with minimal terminal output and a reliable exit code.
  • Use when an agent must wait for CI to pass (e.g. after push, after opening a PR, or when verifying a specific run).
  • Prefer gh run watch with --exit-status and --compact to avoid flooding context with poll output.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from michael-f-bryan/skills · top by installs.

npx skills add michael-f-bryan/skills

Browse all from michael-f-bryan/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,925 B
  • docs SUMMARY.md 326 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 21 installs

SKILL.md

Wait for CI (GitHub Actions)

When waiting for a GitHub Actions run to complete, use gh run watch with flags that minimise stdout and provide a checkable exit code. Do not run plain gh run watch <run-id>; it polls every 3 seconds and prints full pipeline status each time, which wastes context.

Command

gh run watch <run-id> --exit-status --compact
  • --exit-status: Exits with non-zero status if the run fails. Use the command’s exit code to decide success/failure.
  • --compact: Shows only relevant or failed steps instead of every step, reducing output size.

Optional: reduce poll frequency

To cut down output further, increase the refresh interval (default 3 seconds):

gh run watch <run-id> --exit-status --compact --interval 10

Checking the result

After the command exits:

  • Exit code 0 → run succeeded.
  • Non-zero exit code → run failed or was cancelled.

In shell scripts or when deciding next steps, rely on $? or the command in a conditional, e.g.:

gh run watch 12345 --exit-status --compact || echo "CI failed"

Getting a run ID

  • From the URL of a run: https://github.com/owner/repo/actions/runs/<run-id>.
  • From the CLI after a push: gh run list --limit 1 and use the run ID from the first row.
  • After gh pr create or gh pr checks: the run ID may be in the command output or from gh run list.

Repo in another repository

Use -R owner/repo when the run is not in the current repo:

gh run watch <run-id> --exit-status --compact -R owner/repo