
Fix until green
Runs test, lint and typecheck in a loop, fixing one root cause at a time until all pass
Fix until green is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 12
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Fix until green
This skill tells an agent to repeatedly run the project's full gate of tests, lint and typecheck, read the highest-signal failure, fix its root cause, and re-run the whole gate. Success requires all three commands to exit clean in the same run, and the agent is told to assume failure until that happens.
The workflow resolves the gate commands first from a project profile file if one exists, then from declared scripts such as package.json or Makefile targets, and finally from a per-stack default reference. The commands are recorded in a fix plan so each iteration runs the same gate. Hard failures such as flaky tests are routed to a separate diagnosis loop rather than guessed at. Changes are checkpointed, and the loop stops on an iteration cap, three rounds without progress, or a budget limit.
The skill forbids weakening the gate, such as deleting tests or adding ignore directives, and escalates instead. It relies on a Stop-hook reference for a deterministic gate and on Claude Code tooling, and it is intended to be invoked explicitly rather than triggered automatically.
When your agent uses it
Drive a failing build to passing: run the full gate (tests, lint, typecheck), fix one root cause, re-run everything, until all three exit clean. Hard cap, no-progress detection, no cheating the gate. Use when asked to drive red tests or CI green, or as the QE inner loop; not merely because a test failed. Trigger on "fix until green", "make the tests pass", "get CI green", "loop until tests pass".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Edit, Bash, Grep, Glob(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 4 files (20 KB) on GitHub on 4 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 skill-madness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madnessOr copy only this skill to ~/.claude/skills/fix-until-green:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/fix-until-green &&
cp -R "$tmp/skills/loops/fix-until-green" ~/.claude/skills/fix-until-green &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/fix-until-green inside it instead.
Copy the skill folder to ~/.agents/skills/fix-until-green to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/fix-until-green &&
cp -R "$tmp/skills/loops/fix-until-green" ~/.agents/skills/fix-until-green &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/fix-until-green inside it instead.
Copy the skill folder to ~/.cursor/skills/fix-until-green to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/fix-until-green &&
cp -R "$tmp/skills/loops/fix-until-green" ~/.cursor/skills/fix-until-green &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/fix-until-green inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/loops/fix-until-greenOr copy the folder to ~/.gemini/skills/fix-until-green yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/fix-until-green:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/fix-until-green &&
cp -R "$tmp/skills/loops/fix-until-green" ~/.copilot/skills/fix-until-green &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/fix-until-green inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.gitThen copy Skill-Madness/skills/loops/fix-until-green into your agent's skills folder as fix-until-green. Agents that support SKILL.md read one folder per skill.
What it does
- Whole-gate verification
- Runs test, lint and typecheck together and re-checks all three after every change.
- Root-cause fixing
- Targets one underlying cause per iteration instead of patching many symptoms at once.
- Gate command detection
- Resolves the commands from a project profile, declared scripts or a stack default.
- Stop conditions
- Halts on an iteration cap, repeated failures with no progress, or a budget limit.
- Anti-cheat rules
- Forbids deleting tests, skipping them or silencing checks to force a pass.
- Stop-hook gate
- Includes a reference for a deterministic gate that blocks exit until checks pass.
Good for
- Get failing CI tests passing on a feature branch
- Fix type errors and lint warnings until the build is clean
- Drive a red test suite to green before opening a pull request
- Run a QA inner loop that repeats fixes until the gate passes
Fix until green FAQ
When should Fix until green be used?
When asked to drive red tests or CI green, or as the QE inner loop. It is not meant to trigger merely because one test failed.
Can the agent delete failing tests to get a pass?
No. The skill forbids removing, skipping or weakening tests and adding ignore directives, and asks the agent to surface genuinely wrong tests to a human.
Does Fix until green need Claude Code?
The skill is marked as requiring Claude Code and uses Claude Code's allowed tools list.
Does Fix until green run automatically?
No. Model invocation is disabled, so it runs when the user types the command or the orchestrator dispatches it.
How do I install Fix until green in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/fix-until-green to use it in all your projects, or to .claude/skills/fix-until-green in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.
Does Fix until green 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 until green?
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 until green?
The closest alternatives to Fix until green are Self correcting loop, Build until pass, Check fix, Debugging and error recovery and Bugfix.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ivy00johns/Skill-Madness

Finds merged and stale git branches, then deletes them only after your confirmation
- Open source
- 12 GitHub stars
- Developer tools

Finds and removes git worktrees whose changes are already merged into main
- Open source
- 12 GitHub stars
- Developer tools

Bulk-scans a skill ecosystem for consistency, quality gaps and ownership conflicts
- Open source
- 12 GitHub stars
- Developer tools

Runs a single-skill quality review covering structure, triggering and output checks
- Open source
- 12 GitHub stars
- Developer tools

Turns skill review or audit reports into a prioritized list of concrete SKILL.md fixes
- Open source
- 12 GitHub stars
- Developer tools

Applies planned edits to SKILL.md files, validates them, and offers to sync
- Open source
- 12 GitHub stars
- Developer tools





