gh-fix-ci
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.
Security Assessment
About gh-fix-ci
The gh-fix-ci skill helps diagnose and resolve failing pull request checks that run in GitHub Actions. It is designed for situations where a user needs to understand why a GitHub PR check failed and determine the appropriate remediation steps. The skill uses the GitHub CLI (`gh`) to inspect pull request checks, retrieve workflow and job logs, extract actionable failure information, and present a concise summary of the underlying issue. Rather than making immediate changes, it follows a structured workflow that emphasizes review and approval before implementation.
Key capabilities include verifying GitHub CLI authentication, resolving pull requests from either the current branch or a provided PR reference, inspecting failing GitHub Actions checks, collecting workflow logs, and extracting relevant failure snippets. The skill supports a bundled inspection script that simplifies log retrieval and failure analysis, with an optional JSON output mode for machine-friendly processing. It also includes fallback procedures using native GitHub CLI commands when needed. External CI providers are intentionally excluded from detailed analysis; for those checks, the skill reports only the available details URL. After analyzing failures, it generates a concise fix plan and waits for explicit user approval before implementing changes.
This skill is intended for developers, maintainers, and engineering teams who manage repositories that use GitHub Actions for continuous integration. Common use cases include investigating failed PR validations, identifying test or workflow errors, reviewing CI logs before making code changes, and creating an approval-based remediation process. It is particularly useful for repositories that rely on GitHub CLI access and GitHub-hosted workflow execution.
FAQ
How do I use this skill to investigate a failing pull request check?
Provide a repository context and optionally a pull request number or URL. The skill inspects GitHub Actions checks, retrieves logs, summarizes failures, and proposes a fix plan before any implementation.
Does this skill require GitHub CLI authentication?
Yes. The workflow requires a configured GitHub CLI session. Authentication should be verified with `gh auth status`, and appropriate repository and workflow permissions are typically required.
Can it analyze checks from external CI providers such as Buildkite?
No. External providers are considered out of scope. The skill reports the available details URL but does not attempt to inspect or debug those systems.
What happens after a failure is identified?
The skill summarizes the failing check and relevant log information, then creates a concise fix plan and requests explicit approval before implementing any changes.
Is there a way to get machine-readable output?
Yes. The bundled inspection script supports a `--json` option for machine-friendly output that can be used for automated processing or summarization.
Install gh-fix-ci
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
openai/skills