
Fix ci
Diagnoses failing PR checks and iterates on focused fixes until CI is green
Fix ci is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 5.1K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Fix ci
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
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 (1 KB) on GitHub on 1 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 pstack plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add michael-denyer/pstack-claude
/plugin install pstack@pstack-claudeOr copy only this skill to ~/.claude/skills/fix-ci:
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.
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/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.
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/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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/michael-denyer/pstack-claude.git --path plugins/pstack/skills/fix-ciOr copy the folder to ~/.gemini/skills/fix-ci yourself.
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/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.
Get the folder:
git clone --depth 1 https://github.com/michael-denyer/pstack-claude.gitThen 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.
What it does
- 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
Fix ci 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.
More from michael-denyer/pstack-claude

Makes the agent read pstack's poteto-mode skill first and follow its routing
- Open source
- 5.1K GitHub stars
- Developer tools

Has the agent restate your goals and the problem you're solving in its own words
- Open source
- 5.1K GitHub stars
- Productivity

Prototype 2-3 competing designs and compare them before committing to one
- Open source
- 5.1K GitHub stars
- Developer tools

Sketches types, signatures and module layout before the agent writes code
- Open source
- 5.1K GitHub stars
- Developer tools

Runs parallel candidate attempts at a task, then merges the best parts into one artifact
- Open source
- 5.1K GitHub stars
- Developer tools

Drafts a personal working-style skill from your past agent conversations
- Open source
- 5.1K GitHub stars
- Developer tools





