Catalogue / ci-watcher
ci-watcher
MITSignedWatch a GitHub PR's CI status efficiently via a single shell loop, then trigger next actions--- name: ci-watcher description: Watch a GitHub PR's CI status efficiently via a single shell loop, then trigger next actions version: 1.0.0 triggers: - ci - checks - pr status ---
ci-watcher
Watches a PR's CI checks in a single exec call instead of burning agent turns polling.
Usage
From shell (via exec)
bash skills/ci-watcher/scripts/wait_for_ci.sh <repo> <pr_number> [max_wait_secs] [poll_interval_secs]
From an agent skill
exec("bash skills/ci-watcher/scripts/wait_for_ci.sh owner/repo 42 600 15", timeout=660)Parse the JSON output, then take action based on status:
| status | exit code | meaning | |-----------|-----------|--------------------------------| | success | 0 | All checks passed | | failure | 1 | One or more checks failed | | timeout | 2 | Exceeded max wait time |
Next actions (agent decides after parsing output)
- merge:
gh pr merge <pr> --repo <repo> --merge --delete-branch(only if status=success + mergeable=MERGEABLE) - notify: return the JSON to the calling skill
- review: spawn a reviewer subagent on the PR
- rebase-and-retry: if mergeable=CONFLICTING, run
git rebaseand re-push
Output format
{
"status": "success|failure|timeout",
"checks": [{"name": "...", "status": "...", "conclusion": "...", "url": "..."}],
"mergeable": "MERGEABLE|CONFLICTING|UNKNOWN",
"failed_checks": [{"name": "...", "url": "..."}],
"elapsed_seconds": 45
}| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 1.6 kB | 70e672f0a70e |
| SKILVAULT_SOURCE.json | 1.2 kB | 2942ef431447 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | 8044067c6690 |
| scripts/wait_for_ci.sh | 2.4 kB | 223086f4d9e6 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | ec7a57bdcbd2 | 29 Nov 2026 |
Locking a skill to one version needs Pro.