Skip to content
Skill

Fix ci

Diagnoses and fixes a failing pull request CI run in one pass using GitHub CLI

Fix ci is an open-source agent skill for developer tools. It is available on Cursor.

Scripts
None
Platforms
Cursor
GitHub stars
215
Last commit
License
GPL-3.0
Listing updated

Similar skills

About Fix ci

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 を直して".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (5 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Fix ci 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.

More from fumiya-kume/claude-code

  1. Breaks a complex task into detailed, verifiable todos and logs a summary in the plan file

    • Open source
    • 215 GitHub stars
    • Developer tools
  2. Removes AI-generated code slop from the changes on your current git branch

    • Open source
    • 215 GitHub stars
    • Developer tools
  3. Stress-tests an active plan by surfacing hidden assumptions and unaddressed risks

    • Open source
    • 215 GitHub stars
    • Developer tools