← ClaudeAtlas

github-ci-fixlisted

Use when PR checks fail, CI is red, or GitHub Actions workflows break - systematically inspects failing checks via gh CLI, pulls logs, checks for flakiness and scopes the breaking commit, scopes external checks, then creates fix plan using existing plan skill
patrickserrano/lacquer · ★ 1 · Code & Development · score 67
Install: claude install-skill patrickserrano/lacquer
# GitHub CI Fix ## Overview Systematic workflow for debugging failing PR checks using `gh` CLI. Identifies GitHub Actions failures with logs, scopes external checks (Buildkite, etc.) as out-of-scope, then uses existing plan workflow for fixes. ## Prerequisites ```bash gh auth status # Required scopes: repo, workflow ``` **STOP if unauthenticated:** `gh auth login --scopes repo,workflow` ## Quick Reference | Task | Command | |------|---------| | Find current PR | `gh pr view --json number,url` | | Check PR status | `gh pr checks <pr>` | | View run details | `gh run view <run-id>` | | Get failed logs | `gh run view <run-id> --log-failed` | | Full run log | `gh run view <run-id> --log` | | Recent runs for this check | `gh run list --workflow <name> --branch <branch> --json conclusion,headSha,createdAt -L 20` | | Rerun without code changes (flakiness probe) | `gh run rerun <run-id> --failed` | ## Workflow ### 1. Verify Auth → 2. Find PR → 3. Inspect ```bash gh auth status # If fails: ask user to authenticate gh pr view --json number,url # Or use user-provided PR number gh pr checks <pr> # Shows check name, status, details URL ``` ### 4. Scope: GitHub Actions vs External **GitHub Actions** (`detailsUrl` has `/actions/runs/`): Pull logs, extract snippets, fix **External CI** (Buildkite, CircleCI): Report URL only, request user to share logs **STOP:** Do not attempt external CI log access. ### 4.5. Flaky or Real? Scope the Breaking Commit Before treating a failure