# gh-fix-ci

Finds failing GitHub Actions checks on pull requests, extracts error logs, and prepares a code fix plan. Useful when CI breaks right before a merge.

- skill · `type=skill` · Claude Code · 69 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/gh-fix-ci
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/gh-fix-ci

## What it does

The skill handles broken pull request checks on GitHub. Using the `gh` CLI tool and a bundled Python script `scripts/inspect_pr_checks.py`, it inspects CI statuses, pulls logs from failing runs, and extracts relevant error context. External CI tools like Buildkite remain out of scope; the agent only reports their details link.

Drafting the fix relies on the `plan` skill. The agent never edits code unprompted. It prepares a step-by-step proposal and applies changes only after direct user approval.

Without a logged-in `gh` client granting workflow and repo scopes, the skill fails immediately. In restricted sandboxes, running `gh auth status` requires `sandbox_permissions=require_escalated` so the tool can reach credentials.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/gh-fix-ci
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill gh-fix-ci -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/gh-fix-ci/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gh-fix-ci/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/gh-fix-ci/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/gh-fix-ci/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates gh-fix-ci
```

2. **Manually: put the files in place**
- File: `.github/skills/gh-fix-ci/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/gh-fix-ci
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gh-fix-ci/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/gh-fix-ci

## When to use it
- inspect failing GitHub Actions workflows on a pull request
- extract relevant log snippets from broken CI steps
- prepare an actionable fix plan using the plan skill
- apply targeted code updates after manual plan approval

## Example prompts
- Check failing CI runs on my current PR and suggest fixes
- Inspect logs for PR 123 and create a fix plan
- Run scripts/inspect_pr_checks.py for this branch to summarize errors

## Similar
- [triage](https://affpapa.org/en/nevibecode/skills/triage.md) — skill · 990453 installs
- [code-review](https://affpapa.org/en/nevibecode/skills/code-review.md) — skill · 789521 installs
- [implement](https://affpapa.org/en/nevibecode/skills/implement.md) — skill · 774700 installs
- [git-guardrails-claude-code](https://affpapa.org/en/nevibecode/skills/git-guardrails-claude-code.md) — skill · 499069 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [scaffold-exercises](https://affpapa.org/en/nevibecode/skills/scaffold-exercises.md) — skill · 480196 installs

## Other versions with the same name
- [gh-fix-ci · openai](https://affpapa.org/en/nevibecode/skills/openai-gh-fix-ci.md) — 11500 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
