#What it does
The gh-fix-ci skill debugs failing GitHub Actions CI pipelines. It uses the GitHub CLI to inspect PR checks, fetch action logs, extract failure snippets, summarize root causes, and propose a fix plan. It only implements changes after explicit approval.
#How to use
bash
$gh-fix-ciInspect failing GitHub Actions checks in this repo, summarize root cause, and propose a focused fix plan.
#Workflow
- Verify gh authentication -- Run
gh auth statusand ensure repo + workflow scopes - Resolve the PR -- Find the current branch PR or use a provided PR number/URL
- Inspect failing checks -- Fetch GitHub Actions logs with the bundled script or manual fallback
- Scope external checks -- Label non-GitHub Actions checks as external, report only the URL
- Summarize failures -- Provide failing check name, run URL, and concise log snippet
- Create a fix plan -- Draft a concise plan and request approval before implementing
- Implement after approval -- Apply fixes, summarize diffs/tests, offer to open a PR
- Recheck status -- Suggest re-running tests and
gh pr checksto confirm
#Bundled script
bash
python "<path-to-skill>/scripts/inspect_pr_checks.py" --repo "." --pr "<number-or-url>"Add --json for machine-friendly output. The script handles gh field drift and job-log fallbacks.
#Prerequisites
- GitHub CLI (
gh) authenticated with repo + workflow scopes - Python 3 for the bundled inspection script
This skill is from the OpenAI Skills Catalog.