Agent skill
github-actions-check
Check GitHub Actions CI status and report failures.
Install this agent skill to your Project
npx add-skill https://github.com/notque/claude-code-toolkit/tree/main/skills/github-actions-check
SKILL.md
GitHub Actions Check Skill
Check GitHub Actions workflow status after a git push, identify failures, and suggest local reproduction commands. This skill observes and reports -- it modifies workflow files or auto-fixes code only with explicit permission.
Instructions
Step 1: Identify Repository and Branch
Read and follow any repository CLAUDE.md before proceeding -- it may contain CI-specific instructions or branch naming conventions.
Determine which repository and branch to check:
# Get repository from git remote
git remote get-url origin
# Get the branch that was pushed
git branch --show-current
Always use the branch that was actually pushed, always the branch that was actually pushed. Checking without --branch can show runs from other branches and give misleading status for the user's actual push.
Gate: Repository and branch both identified. Confirm both values before proceeding.
Step 2: Wait and Check Workflow Status
GitHub needs 5-10 seconds after a push to register the workflow run. Checking immediately returns stale results from previous runs, not the current push.
# Wait for GitHub to register the workflow run
sleep 10
# Check workflow runs for the pushed branch
BRANCH=$(git branch --show-current)
gh run list --branch "$BRANCH" --limit 5
Always use the gh CLI rather than raw GitHub API calls -- gh handles authentication, pagination, and formatting automatically. Writing custom scripts with curl or requests adds unnecessary complexity when gh already does the job.
Show the complete gh output verbatim. Show complete output rather than summarizing as "build passed" or "tests failed" -- that hides which jobs ran, their timing, and any warnings. Claiming "build passed" without showing output is unverifiable. The user needs to see the actual data.
Gate: Workflow status retrieved and complete output displayed to user. Wait for the gate to pass before proceeding.
Step 3: Investigate Failures
Only execute this step if Step 2 shows a failed or failing run. Compare against previous runs before classifying failures as pre-existing without comparing against previous runs -- that is speculation, not evidence.
# Get details of the failed run
gh run view <run-id>
# For deeper investigation (only if user explicitly requests it,
# since full logs can be very verbose)
gh run view <run-id> --log-failed
For each failing job, identify:
- Which job failed (build, test, lint, deploy)
- The specific error message
- A local reproduction command
## Failure Report
Job: [job name]
Error: [specific error from logs]
Local reproduction: [command to reproduce locally]
Suggested fix: [exact commands to fix, if applicable]
For common failures like linting or formatting, provide exact fix commands but present them for user approval. Wait for explicit user permission before auto-fixing and re-pushing -- making code changes and git commits without review may introduce unintended changes. Only use gh run watch for interactive monitoring if the user specifically asks for it.
Gate: All failures identified with reproduction commands. Wait for the gate to pass before proceeding.
Step 4: Report and Suggest
If all checks passed:
- Show the complete
gh run listoutput (not a summary) - Confirm which workflows ran and their status
If checks failed:
- Show the failure report from Step 3
- Suggest local reproduction commands
- Suggest fix commands but wait for confirmation before executing without permission
- Ask the user if they want you to apply fixes
Report facts without self-congratulation. Show command output rather than describing it. Be concise but informative.
Clean up any temporary scripts or cache files created during the check before finishing.
This skill only checks CI status. For local debugging of test failures, hand off to systematic-debugging. For local linting, hand off to code-linting. Keep workflow YAML files and CI configuration out of scope for this skill.
Gate: Complete status report delivered to user.
Error Handling
Error: "gh CLI not found"
Cause: GitHub CLI not installed on the system Solution:
- Check if
ghis available:which gh - If missing, suggest installation:
brew install ghorsudo apt install gh - As last resort, use
curlwith GitHub API (but prefer installing gh)
Error: "gh auth required"
Cause: GitHub CLI not authenticated Solution:
- Run
gh auth statusto check current auth - If not authenticated, suggest
gh auth login - Check if GITHUB_TOKEN environment variable is set as alternative
Error: "No workflow runs found"
Cause: Workflow not triggered, branch has no workflows, or checked too early Solution:
- Wait longer (up to 30 seconds) and retry
- Verify
.github/workflows/directory exists in the repository - Check if workflow is configured to trigger on the pushed branch
- Verify push event matches workflow trigger conditions
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
voice-writer
Unified voice content generation pipeline with mandatory validation and joy-check. 9-phase pipeline: LOAD, GROUND, GENERATE, VALIDATE, REFINE, JOY-CHECK, OUTPUT, CLEANUP. Use when writing articles, blog posts, or any content that uses a voice profile. Use for "write article", "blog post", "write in voice", "generate content", "draft article", "write about".
image-auditor
Non-destructive image validation for accessibility and health.
video-editing
Video editing pipeline: cut footage, assemble clips via FFmpeg and Remotion.
comment-quality
Review and fix temporal references in code comments.
e2e-testing
Playwright-based end-to-end testing workflow.
anti-ai-editor
Remove AI-sounding patterns from content.
Didn't find tool you were looking for?