# Fix ci

> Fix ci is an open-source agent skill for developer tools. Diagnoses failing PR checks and iterates on focused fixes until CI is green. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michael-denyer/pstack-claude/tree/main/plugins/pstack/skills/fix-ci
- **Repository:** https://github.com/michael-denyer/pstack-claude
- **GitHub stars:** 5,057
- **License:** MIT
- **Skill name:** fix-ci
- **Collection:** https://github.com/michael-denyer/pstack-claude
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent through getting a branch or pull request back to passing CI. It starts by listing the PR's checks with the GitHub CLI, then reads the logs of failed jobs, or the external check link when no Actions log is available, to isolate the first real error.

The workflow is iterative: the agent applies the smallest safe change, pushes, re-checks the check set, and repeats. The guardrails steer it to fix one failure at a time and prefer minimal, low-risk edits over broader refactors. The skill also covers Claude Code cloud sessions, where a GraphQL refusal from gh pr checks requires reading check runs and commit statuses through REST calls instead, documented in a referenced file in a sibling skill folder.

It expects the gh command-line tool to be installed and authenticated against the repository, plus access to the PR's branch so changes can be pushed. It does not ship scripts, and it reports back the primary failing job, the fixes made in order, and the current CI status with a next action.

## When your agent uses it

> Find failing PR checks, inspect logs or external check links, and apply focused fixes

## What it can access

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

- [Instructions only, no scripts](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/fix-ci)
- [License: MIT](https://github.com/michael-denyer/pstack-claude/tree/HEAD/plugins/pstack/skills/fix-ci)

## Features

- **Locate failing PR checks:** Lists the pull request's check set with the GitHub CLI to find which jobs are failing.
- **Extract the first error:** Reads Actions logs or external check links to identify the first actionable failure.
- **Iterative fix loop:** Applies one small fix, pushes, and re-checks until the checks pass.
- **Low-risk change guardrails:** Favors minimal edits and one failure at a time over broad refactors.
- **Cloud session fallback:** Describes REST-based reads of check runs and statuses when GraphQL access is refused.
- **Structured status report:** Summarizes the primary failure, fixes in order, and the current CI state.

## Good for

- Fix a failing GitHub Actions test job on my pull request
- Find out why the lint check on this PR is red
- Work through CI failures until my branch is green
- Read the logs of a failed build and apply a minimal fix

## Install

### Claude Code

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

```sh
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claude
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-ci &&
cp -R "$tmp/plugins/pstack/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/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-ci &&
cp -R "$tmp/plugins/pstack/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/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-ci &&
cp -R "$tmp/plugins/pstack/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/michael-denyer/pstack-claude.git --path plugins/pstack/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/michael-denyer/pstack-claude.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-ci &&
cp -R "$tmp/plugins/pstack/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/michael-denyer/pstack-claude.git
```

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

## FAQ

### What does Fix ci need to run?

It relies on the GitHub CLI (gh pr checks) to list PR checks, and it expects access to the PR so fixes can be pushed.

### When should the agent use Fix ci?

When branch or PR CI is failing and needs a fast, iterative path to green checks.

### Does Fix ci include scripts?

No, the skill folder contains only the SKILL.md instruction file.

### What happens if gh pr checks is refused?

In a Claude Code cloud session with a GraphQL refusal, the skill directs the agent to read check runs and commit statuses through REST commands from a referenced document.

### 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 pstack plugin, which includes it: /plugin marketplace add michael-denyer/pstack-claude, then /plugin install pstack@pstack-claude.

### 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?

Claude Code. 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 Gh fix ci, Ci, Iterate PR, Diagnose ci gate and Babysit.

## Where this comes from

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

## Alternatives

- [Gh fix ci](https://ai-powered.com/skills/gh-fix-ci): Gh fix ci is a free agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci 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.
- [Diagnose ci gate](https://ai-powered.com/skills/diagnose-ci-gate): Diagnose ci gate is an open-source agent skill for developer tools.
- [Babysit](https://ai-powered.com/skills/babysit): Babysit is an open-source agent skill for developer tools.
- [GitHub actions efficiency](https://ai-powered.com/skills/github-actions-efficiency): GitHub actions efficiency 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.
- [Correct](https://ai-powered.com/skills/correct): Correct is an open-source agent skill for developer tools.

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