| description | context |
|---|---|
Tools for interacting with GitHub Actions CI/CD workflows |
fork |
This skill provides tools for working with GitHub Actions workflows, including checking build status, retrieving logs, and analyzing CI failures.
Finds the latest CI run for the current branch and extracts error messages from failed jobs.
Usage:
!`~/.claude/skills/github-actions/scripts/get-build-failures.py`What it does:
- Detects the current git branch
- Finds the most recent CI run (pull_request or push events)
- Lists all failed jobs
- Extracts and displays relevant error messages from each failed job
- Filters out noise (false positives like proto definitions, cache warnings)
Output format:
- Branch and run information
- List of failed jobs with IDs
- Error details for each failed job with context
Requirements:
ghCLI must be installed and authenticated- Must be run from within a git repository
- Repository must have GitHub Actions workflows
Example output:
Branch: add-pyfunc-services
Latest run: Pull Request (#21157478597)
Status: failure
Created: 2026-01-20T02:33:35Z
=== Failed Jobs ===
• Test LLM Optimize (ID: 60845052993)
• Check Proto Generation (ID: 60845052998)
=== Error Details ===
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Job: Test LLM Optimize
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
mise ERROR no task //services/pyfunc-llm-optimize:python:check-format found
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
##[error]Process completed with exit code 1.
Use this skill when you need to:
- Check if the latest CI build passed or failed
- Investigate build failures without opening the GitHub web UI
- Extract error messages from failed CI jobs
- Gather build failure data for debugging in the main chat session
Scripts in this skill are data gatherers, not problem solvers:
- They report what failed, not why it failed
- They extract error messages with context
- They don't attempt to diagnose issues or look at code
- They provide clean output for the main chat session to analyze
Potential additions to this skill:
cancel-workflow.py- Cancel running workflowsrerun-failed-jobs.py- Rerun only failed jobsget-workflow-logs.py- Download logs for a specific workflow runlist-recent-runs.py- Show recent CI runs with status
Scripts use the gh CLI which handles GitHub authentication automatically. Ensure gh auth login has been run.
The get-build-failures.py script filters out common false positives:
- Proto field definitions (error_message, ErrorResponse, etc.)
- JSON fields in logs ("error": 7561)
- Cache warnings
- Dependency downloads
- Elixir compiler hints
Scripts look for actual CI runs (pull_request or push events) and skip:
- pull_request_review events (Claude Code bot actions)
- pull_request_review_comment events
- Skipped runs
- Cancelled runs