fix-ci-failures

Diagnose and fix failing CI checks on pull requests using the GitHub CLI.

Updated Apr 28, 2026
Ready to run
npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill fix-ci-failures-cokistudios
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: fix-ci-failures
Source: https://github.com/CokiStudios/cokistudios.github.io/tree/main/vscode-src/.github/skills/fix-ci-failures
Command: npx skills add https://github.com/CokiStudios/cokistudios.github.io --skill fix-ci-failures-cokistudios

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When CI checks fail on a pull request, developers waste time clicking through GitHub Actions pages to find the failing job, locate the error in thousands of log lines, and determine whether the failure is caused by their changes or by flaky infrastructure. This Skill automates that entire investigation loop from the terminal. ## Core Features & Use Cases - Failed Check Discovery: Identify the PR for the current branch, list failed checks, and extract run and job IDs using gh pr checks and gh run view. - Log Retrieval Strategies: Download failed step logs, per-job logs via the GitHub API (even while a run is still in progress), and test artifacts such as crash dumps and VS Code log bundles. - Failure Triage: Distinguish real code regressions from infrastructure issues (npm registry timeouts, Electron CDN 502s, disk-full runners) and flaky tests, then re-run failed jobs or iterate on a fix. - Use Case: You push a branch and see a red checkmark. Ask the assistant to investigate; it finds the failed Linux Electron test job, greps the job log for ##[error], identifies an assertion failure in your changed code, applies a fix, pushes, and watches the re-run until green. ## Quick Start Investigate why the CI checks are failing on my current pull request and fix the underlying issue.

Frequently Asked Questions about fix-ci-failures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find failed CI checks on a GitHub pull request?▼

Run gh pr checks --json name,state,link,bucket to list all checks, then filter with --jq '.[] | select(.bucket == "fail")' to show only failures. The link field contains the run ID needed to inspect the failing job.

How to download GitHub Actions logs for a failed job?▼

Use gh run view <RUN_ID> --job <JOB_ID> --log-failed for failed step logs once the run completes. If the run is still in progress, use gh api repos/<owner>/<repo>/actions/jobs/<JOB_ID>/logs to fetch the completed job's log directly.

Why does gh run view --log-failed hang or error?▼

The --log-failed flag requires the entire workflow run to finish, not just the failed job. If other jobs are still running, download the individual job log through the GitHub API endpoint instead.

How do I tell if a CI failure is caused by my PR or is flaky?▼

Check whether the failing test touches code you changed, then compare against recent main branch runs with gh run list --branch main. Network errors, disk-full messages, and runner shutdowns indicate infrastructure issues that a re-run usually resolves.

Can I re-run only the failed jobs in a GitHub Actions workflow?▼

Yes, run gh run rerun <RUN_ID> --failed to re-execute only the jobs that failed. This is the recommended response to infrastructure failures like npm registry timeouts or Electron download errors rather than changing code.