Gh Fix CI

Debug failing GitHub Actions CI checks on the current branch's PR using the gh CLI — inspect logs, summarize root cause, and propose a focused fix plan before implementing.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add euxx/claude-skills-for-copilot --skill gh-fix-ci
Manual install
git clone --depth 1 https://github.com/euxx/claude-skills-for-copilot.git /tmp/claude-skills-for-copilot
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills-for-copilot/skills/gh-fix-ci ~/.claude/skills/gh-fix-ci

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Fix Failing CI Checks

Use `gh` to locate failing PR checks, fetch GitHub Actions logs, summarize the failure, then propose a fix plan and implement only after explicit user approval.

## Prerequisites

Verify `gh` authentication before doing anything else:

```
gh auth status
```

If unauthenticated, ask the user to run `gh auth login` (repo + workflow scopes required), then stop.

## Workflow

### 1. Resolve the PR

```
# if the user specified a PR number or URL:
gh pr view <number-or-url> --json number,url,headRefName

# otherwise (current branch):
gh pr view --json number,url,headRefName
```

Extract `owner` and `repo` from the returned `url` field — PR URLs have the form `https://github.com/<owner>/<repo>/pull/<number>`, so split on `/` to get the 4th and 5th segments. These are the base (target) repository coordinates where GitHub Actions checks run, and are reliable even for cross-fork PRs.

### 2. Inspect failing checks

```
gh pr checks <pr-number> -R <owner>/<repo> --json name,state,bucket,link,startedAt,completedAt,workflow
```

If a field is rejected, rerun with the available fields reported by `gh`. Scope only to **GitHub Actions** checks. If `link` is not a GitHub Actions run URL, label it as external, report the URL only, and do not investigate further (e.g. Buildkite, CircleCI are out of scope).

### 3. Fetch failure logs

For each failing GitHub Actions check:

1. Extract the run ID from `link` (the numeric segment in the URL).
2. Fetch run metadata:
Read the full skill on GitHub

Details

Skill name
gh-fix-ci
Path
skills/gh-fix-ci/SKILL.md
License
MIT
Repo updated
2 November 2026

FAQ

What does the Gh Fix CI skill do?

Debug failing GitHub Actions CI checks on the current branch's PR using the gh CLI — inspect logs, summarize root cause, and propose a focused fix plan before implementing.

How do I install the Gh Fix CI skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add euxx/claude-skills-for-copilot --skill gh-fix-ci. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Gh Fix CI popular?

It lives in euxx/claude-skills-for-copilot, which has 5 GitHub stars and 0 forks.

Related skills

Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.