Skip to content
Back to skills

Fix Ci

ASecurity

Method to make a failing CI pass again for real - read the failed logs, reproduce locally, fix the cause, verify, commit. Use when the user says the CI, the build, the checks or a GitHub Actions run is red or failing and asks to fix it.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 2, 2026
ai-agentsnoderefactoringgitapi

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add MPoulhazan/orchia --skill fix-ci --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fix Ci?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fix Ci
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mpoulhazan-fix-ci/badge)](https://www.skillsdirectory.com/skills/mpoulhazan-fix-ci)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fix-ci
description: Method to make a failing CI pass again for real - read the failed logs, reproduce locally, fix the cause, verify, commit. Use when the user says the CI, the build, the checks or a GitHub Actions run is red or failing and asks to fix it.
---

# Fix a failing CI

The control script is `scripts/fix-ci.mjs` at the plugin root, two folders up from this skill's base directory. Below, `FIXCI` stands for `node "<plugin root>/scripts/fix-ci.mjs"`.

While a run is open, the plugin's hooks refuse shortcuts (skipping or deleting tests, `continue-on-error`, `|| true`, force push, `--no-verify`) and, when you try to finish, run your check command themselves. You cannot end the turn while it fails, up to 3 attempts.

## 1. Start the run

Skip this step if the user typed `/fix-ci`. Otherwise run `FIXCI start`.

## 2. Find what fails

- GitHub: `gh run list --branch "$(git branch --show-current)" --limit 5`, then `gh run view <id> --log-failed`. Read the first error, not the last: later failures are often consequences.
- No `gh` or another CI: ask the user for the failed log, or for the link.
- Note the exact job, step and command that failed, and the versions CI uses (runtime, OS, lockfile).

## 3. Reproduce it here, then record the check

Run the same command CI runs (from the workflow file), on this machine. When you see the same failure, record it:

`FIXCI check "<that command>"`

The check must fail now and pass once fixed. One command, the narrowest that covers the failure (`npm test`, `npm run build`, `pytest tests/test_api.py`). If CI runs several steps that failed, chain them with `&&`.

If the failure does not reproduce locally (secrets, OS, versions, a flaky test), say so to the user, explain what you found, and end the run: `FIXCI stop "<why>"`. Do not guess-fix in CI.

## 4. Fix the cause

- Fix the code, or the test when the test is wrong. Say which, and why.
- Changing an expected value in a test is allowed only when the new behavior is the intended one. Say why it is.
- Never: skip, isolate or delete a test, loosen a CI step, raise a timeout to hide slowness, lower a coverage threshold, catch and swallow an error, pin a dependency to an older version with a known vulnerability. When that is the only way out, stop and ask the user.
- Keep the diff to what the fix needs. No refactoring on the way.

## 5. Get the diff reviewed

Before committing, hand the diff to the `ci-fix-reviewer` agent (Agent tool) with the failing job and the check command. If it answers FAIL, fix what it found, or tell the user why you disagree.

## 6. Commit, push, watch

- Run the check yourself, then commit only the files the fix needs. Message in English: `fix(ci): <what was broken>`.
- Push only if the project's instructions (CLAUDE.md) allow pushing to this branch. Then `gh run watch --exit-status` on the new run.
- When you finish, the hook runs the check one last time and, if the commit is pushed, reads the CI result of that commit.

## 7. Report

In a few lines, for the user: what failed, the cause, the fix, the check and its result, and the CI result if pushed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.