
Build until pass
Loops a failing build, typecheck, lint or test until the check exits 0
Build until pass is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 233
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Build until pass
Build Until Pass gives the agent a bounded fix loop for a failing check command. The agent locks in the command that defines green, runs it once unmodified to confirm the failure, then repeats a cycle: read the first error, apply the smallest targeted diff, and re-run until the exit code is 0 or an attempt cap is reached. Each round is reported in one line showing errors remaining and the change made.
The skill sets firm rules against cheating the check. Suppressing errors with ignore comments, loosening types, deleting tests or forcing a zero exit code are all treated as failures rather than passes. It also tells the agent to stop early when errors do not shrink or oscillate between states, and to hand the problem back to a human with the remaining errors and a hypothesis.
The skill is plain instructions with no bundled scripts. It expects a project with a runnable check command, found through the user's request, CI config, package.json scripts, a Makefile or the build tool's conventions. It is aimed at mechanical failures such as type errors, missing imports, signature mismatches and bundler configuration, and points logic bugs to a separate debugging skill.
When your agent uses it
Use when a build, typecheck, lint, or test command is failing and you want the agent to drive it to green on its own — run the check, read the errors, apply the smallest fix, re-run, repeat until exit code 0. Stops the human from being the while-loop (run → read error → fix one line → run again) and stops the agent from bulldozing huge speculative rewrites between checks.
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 (11 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 lich-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skillsOr copy only this skill to ~/.claude/skills/build-until-pass:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/build-until-pass &&
cp -R "$tmp/skills/build-until-pass" ~/.claude/skills/build-until-pass &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/build-until-pass inside it instead.
Copy the skill folder to ~/.agents/skills/build-until-pass to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/build-until-pass &&
cp -R "$tmp/skills/build-until-pass" ~/.agents/skills/build-until-pass &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/build-until-pass inside it instead.
Copy the skill folder to ~/.cursor/skills/build-until-pass to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/build-until-pass &&
cp -R "$tmp/skills/build-until-pass" ~/.cursor/skills/build-until-pass &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/build-until-pass inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/build-until-passOr copy the folder to ~/.gemini/skills/build-until-pass yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/build-until-pass:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/build-until-pass &&
cp -R "$tmp/skills/build-until-pass" ~/.copilot/skills/build-until-pass &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/build-until-pass inside it instead.
Get the folder:
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.gitThen copy lich-skills/skills/build-until-pass into your agent's skills folder as build-until-pass. Agents that support SKILL.md read one folder per skill.
What it does
- Locked check command
- Identifies and records the exact command that defines a passing build before any code changes.
- Smallest-diff fix rounds
- Applies one targeted fix per round, addressing the first error only, followed by a re-run.
- Attempt cap and escalation
- Stops after a default of ten rounds, or early when progress stalls, and reports what remains.
- Anti-suppression safeguards
- Forbids silencing errors, deleting tests or loosening types to fake a passing result.
- Per-round progress reporting
- Logs each round in a single line showing errors left and the change made.
Good for
- Fix the TypeScript type errors that are blocking my build
- Get the failing test suite green before I commit
- Make the lint gate pass after my last refactor
- Reproduce our CI typecheck failure locally and fix it
- Resolve missing imports and signature mismatches until tsc exits cleanly
Build until pass FAQ
When should the skill be used?
When a build, typecheck, lint or test command is failing and the cause is mechanical, such as type errors, missing imports, signature mismatches or bundler configuration.
When should Build until pass not be used?
When the failure is a logic bug needing investigation, when a product decision is required, or when the build already passes. The skill points logic bugs to a separate debug-hypothesis skill.
Does the skill run scripts or need extra files?
No. The folder contains a single SKILL.md file and no scripts.
How does Build until pass decide the build is fixed?
Only a zero exit code from the locked check command counts as green. The agent is told not to judge success from log text.
What happens if the loop does not converge?
The agent stops at the attempt cap, or earlier if the error count is not falling or errors oscillate, and reports the remaining errors with a hypothesis for a human.
How do I install Build until pass in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/build-until-pass to use it in all your projects, or to .claude/skills/build-until-pass in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.
Does Build until pass 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 Build until pass?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Build until pass?
The closest alternatives to Build until pass are Build fix edho ferdian, Verification loop, Fix ci, Ci and Vibe quality loop.
Where this comes from
- Description: from the skill's own SKILL.md.
More from LichAmnesia/lich-skills

Guides an agent through a hypothesis-driven loop for hard-to-find bugs
- Open source
- 233 GitHub stars
- Developer tools

Guides the agent to build distinctive, polished frontend interfaces instead of generic
- Open source
- 233 GitHub stars
- Design and media

Gates new project ideas with memory checks and kill criteria before any work starts
- Open source
- 233 GitHub stars
- Productivity

Lets your agent pull GA4 reports and turn them into prioritized SEO and traffic fixes
- Open source
- 233 GitHub stars
- Marketing and SEO

Generates and edits images from text prompts using Google's Nano Banana 2 model
- Open source
- 233 GitHub stars
- Design and media

Routes an agent to the right lich-skill for each phase of its current task
- Open source
- 233 GitHub stars
- Developer tools





