gh-fix-ci

Diagnose and fix failing GitHub Actions checks by inspecting logs and proposing plans.

416|6|Updated Apr 24, 2026
Ready to run
npx skills add https://github.com/mizchi/skills --skill gh-fix-ci-mizchi
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: gh-fix-ci
Source: https://github.com/mizchi/skills/tree/main/gh-fix-ci
Command: npx skills add https://github.com/mizchi/skills --skill gh-fix-ci-mizchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve? When GitHub Actions CI checks fail on a pull request, developers waste time manually navigating logs, identifying root causes, and planning fixes. This Skill automates that diagnosis and surfaces actionable failure context. ## Core Features & Use Cases - Automated Check Inspection: Queries failing PR checks via gh, extracts GitHub Actions run logs, and locates failure snippets with surrounding context. - Log Analysis & Summarization: Identifies error patterns (stack traces, assertion failures, timeouts) and presents them with metadata (workflow name, branch, commit SHA). - Plan-Driven Fixes: Proposes a fix plan for user approval before implementation, ensuring transparency in CI remediation. - Use Case: Your Node.js build workflow is timing out. Run this Skill on your PR to fetch the exact timeout error, see which step failed, and get a targeted fix recommendation. ## Quick Start Run this Skill on a pull request to inspect all failing GitHub Actions checks, then approve and apply the suggested fixes.

Frequently Asked Questions about gh-fix-ci

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

FAQPage Schema
How do I debug failing GitHub Actions checks programmatically?▼

This Skill uses `gh pr checks` to list failing checks and `gh run view --log` to retrieve full GitHub Actions logs. It then parses logs for error markers (traceback, timeout, assertion, panic) and extracts a context window around the failure.

What authentication does gh-fix-ci require?▼

GitHub CLI must be authenticated with `gh auth login` using a token that includes `repo` and `workflow` scopes. Run `gh auth status` to verify; the Skill aborts if unauthenticated.

Does this work with non-GitHub Actions CI like Buildkite?▼

No. External CI systems are detected via the `detailsUrl` field and reported as out-of-scope; only GitHub Actions run logs are fetched and analyzed.

What happens if logs are not yet available?▼

If a run is still in progress, the Skill marks logs as pending and fetches job-level logs as a fallback. It exits early rather than blocking, so users can rerun once logs complete.

Can this Skill automatically fix CI issues without approval?▼

No. After analyzing logs and proposing a fix plan, the Skill waits for explicit user approval before making any changes. This ensures transparency and prevents unintended modifications.

What failure patterns does log analysis detect?▼

The Skill searches logs for markers including 'error', 'fail', 'traceback', 'exception', 'timeout', 'panic', and 'assertion'. It extracts lines matching these patterns plus surrounding context, prioritizing the last occurrence in the log.