Check GitHub Actions CI status for PRs and branches. Use when the user asks "did CI pass", "check status", "what failed", "are checks green", "PR checks", "CI status", "workflow status", "re-run jobs", or wants a quick summary of GitHub Actions runs for a PR or the current branch.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Quickly check GitHub Actions CI status for a PR or branch, summarize results, and triage failures.
Determine what to check:
github.com/.../actions/runs/123): use /gha-log-reader instead — it's built for run-level diagnosisgh pr view --json number,url,headRefName --jq '"\(.number)|\(.url)|\(.headRefName)"'branch=$(git branch --show-current)
gh run list --branch "$branch" --limit 5 --json databaseId,status,conclusion,name,createdAt,headBranch \
--jq '.[] | "\(.databaseId)|\(.name)|\(.status)|\(.conclusion // "—")|\(.createdAt)"'For a PR:
gh pr checks <number> --json name,state,description,detailsUrl,completedAt \
--jq '.[] | "\(.name)|\(.state)|\(.description // "")|\(.detailsUrl)"'Present a concise summary:
## PR #<number> Checks
✅ 3 passed | ❌ 1 failed | ⏳ 1 pending
| Check | Status | Details |
|-------|--------|---------|
| build | ✅ pass | — |
| lint | ✅ pass | — |
| test | ❌ fail | Node 20 — exit code 1 |
| deploy | ⏳ pending | Waiting on test |Rules:
For each failed check:
Get the run ID:
gh pr checks <number> --json name,state,detailsUrl \
--jq '.[] | select(.state == "FAILURE") | "\(.name)|\(.detailsUrl)"'Extract the run ID from the URL (format: .../actions/runs/<id>/...)
Get the failed step and tail of its log:
gh run view <run-id> --json jobs \
--jq '.jobs[] | select(.conclusion == "failure") | "\(.name): step \(.steps[] | select(.conclusion == "failure") | .name)"'Pull the last 50 lines of the failed job's log:
gh run view <run-id> --log-failed 2>/dev/null | tail -50Present a brief diagnosis:
### ❌ test (run 12345678)
Failed step: Run tests
<last few relevant log lines>
Likely cause: <one-sentence assessment>Based on the results:
<name> failure?" → invoke /gha-log-reader with the run URLgh run rerun <run-id> --failed/loopWhen the user asks to re-run:
# Re-run only failed jobs (cheaper, faster)
gh run rerun <run-id> --failed
# Re-run all jobs in the run
gh run rerun <run-id>Always prefer --failed unless the user explicitly asks to re-run everything.
/gha-log-reader for deep log analysis when the tail snippet isn't enough/git:push — check status after pushingpr-style — confirm checks before marking ready for review/gha-log-reader's jobphatblat/dotfiles
4d65cab
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.