# Fix ci

> Fix ci is an open-source agent skill for developer tools. Diagnoses and fixes a failing pull request CI run in one pass using GitHub CLI. It is available on Cursor.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Cursor
- **Website:** https://github.com/fumiya-kume/claude-code/tree/master/fix-ci/cursor/skills/fix-ci
- **Repository:** https://github.com/fumiya-kume/claude-code
- **GitHub stars:** 215
- **License:** GPL-3.0
- **Skill name:** fix-ci
- **Collection:** https://github.com/fumiya-kume/claude-code
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks the agent through a single pass at a red pull request. It checks that the GitHub CLI is authenticated, reads the status of each check on the current PR, and pulls the logs of the failed runs. Investigation of the failing code is delegated to a read-only exploration subagent, which correlates the errors with recent commits on the branch and classifies each failure as build, test, lint, type, dependency, config or environment.

The main agent then explains the root cause and intended fix in chat, applies a minimal edit, commits with a fix(ci) message, pushes, and waits on the PR checks. The skill is deliberately single-attempt: if checks are still failing, it stops and hands off to the user rather than looping. Findings and a summary are written to the active Cursor plan file, or to a new PLAN.md if none is active.

It expects the GitHub CLI installed and logged in, git access to the branch, and a Cursor environment with plan and subagent tools. It is written for Cursor; a Japanese-language trigger phrase is also included.

## When your agent uses it

> This skill should be used when the user asks to "fix CI", "fix failed checks", "PR is red", "diagnose CI failure". Also triggers when the user says in Japanese: "CI 直して", "CI が落ちてる", "PR の CI を直して".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/fumiya-kume/claude-code/tree/HEAD/fix-ci/cursor/skills/fix-ci)
- [License: GPL-3.0](https://github.com/fumiya-kume/claude-code/tree/HEAD/fix-ci/cursor/skills/fix-ci)

## Features

- **Authentication gate:** Checks GitHub CLI login status before any fix attempt and stops with guidance if it is missing.
- **Failed log collection:** Reads PR check rollups and pulls the failed log output for each failing run.
- **Read-only analysis subagent:** Delegates investigation of failing code and recent commits to a non-editing exploration agent.
- **Minimal fix and push:** Applies only the edits needed to turn checks green, then commits and pushes them.
- **Single-attempt handoff:** Stops after one fix attempt and reports blockers to the user instead of retrying.
- **Plan file summary:** Writes a structured CI fix summary with status, causes, fixes and follow-ups to the plan file.

## Good for

- Fix a failing test suite on my open pull request
- Diagnose why the lint check is red on this branch
- Find out why CI fails after my last push and patch it
- Summarize the CI failures and what was changed for the team

## Install

### Claude Code

This skill ships in the `fix-ci` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add fumiya-kume/claude-code
/plugin install fix-ci@kuu-marketplace
```

Or copy only this skill to `~/.claude/skills/fix-ci`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-ci &&
cp -R "$tmp/fix-ci/cursor/skills/fix-ci" ~/.claude/skills/fix-ci &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/fix-ci` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/fix-ci` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-ci &&
cp -R "$tmp/fix-ci/cursor/skills/fix-ci" ~/.agents/skills/fix-ci &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/fix-ci` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/fix-ci` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-ci &&
cp -R "$tmp/fix-ci/cursor/skills/fix-ci" ~/.cursor/skills/fix-ci &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/fix-ci` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/fumiya-kume/claude-code.git --path fix-ci/cursor/skills/fix-ci
```

Or copy the folder to `~/.gemini/skills/fix-ci` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/fix-ci`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-ci &&
cp -R "$tmp/fix-ci/cursor/skills/fix-ci" ~/.copilot/skills/fix-ci &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/fix-ci` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/fumiya-kume/claude-code.git
```

Then copy `claude-code/fix-ci/cursor/skills/fix-ci` into your agent's skills folder as `fix-ci`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need before using Fix ci?

The GitHub CLI must be authenticated, either through gh auth login or a GH_TOKEN variable. The skill stops if gh auth status fails.

### Does Fix ci retry if the fix does not pass?

No. It is designed as a single attempt. If checks are still failing, it writes a NEEDS_HUMAN_INTERVENTION status and hands off to you.

### Where does Fix ci save its results?

It appends a CI Fix Summary section to the active Cursor plan file, or creates ./PLAN.md if no plan is active.

### Which clients does Fix ci support?

The skill is written for Cursor and relies on Cursor's plan and subagent tools.

### How do I install Fix ci in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/fix-ci to use it in all your projects, or to .claude/skills/fix-ci in one project. Or install the fix-ci plugin, which includes it: /plugin marketplace add fumiya-kume/claude-code, then /plugin install fix-ci@kuu-marketplace.

### Does Fix ci run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Fix ci?

Cursor. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Fix ci?

The closest alternatives to Fix ci are Fix ci, Loop on ci, Ci, Gh fix ci and Diagnose ci gate.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Loop on ci](https://ai-powered.com/skills/loop-on-ci): Loop on ci is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Gh fix ci](https://ai-powered.com/skills/gh-fix-ci): Gh fix ci is a free agent skill for developer tools.
- [Diagnose ci gate](https://ai-powered.com/skills/diagnose-ci-gate): Diagnose ci gate is an open-source agent skill for developer tools.
- [Iterate PR](https://ai-powered.com/skills/iterate-pr): Iterate PR is an open-source agent skill for developer tools.
- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/fix-ci-fumiya-kume
