Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LichAmnesia/lich-skills --skill build-until-passgit clone --depth 1 https://github.com/LichAmnesia/lich-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/lichamnesia/lich-skills/build-until-pass)<a href="https://agentmods.dev/skills/lichamnesia/lich-skills/build-until-pass"><img src="https://agentmods.dev/badge/skills/lichamnesia/lich-skills/build-until-pass.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.02799 |
| Opus 5 | $0.00046 | $0.01399 |
| Sonnet 5 | $0.00019 | $0.00560 |
| Haiku 4.5 | $0.00009 | $0.00280 |
Grade A, and why
build-until-pass scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build Until Pass
A bounded self-correcting loop: run the project's check command, capture its errors, apply the smallest diff that addresses the first failure, re-run, and repeat until it exits 0 — or until a hard attempt cap is hit.
The core principle: the check command is the judge, not you. You do not
declare the build "basically fixed." Green is exit code 0. Anything else is
red, and red means another round.
This is the engineering-discipline counterpart to "run it and hope." The cap exists so the agent backs off instead of burning tokens thrashing on an error it cannot fix without human input.
When to Use
- A build / compile / bundle command fails and the cause is mechanical (type errors, missing imports, signature mismatches, bundler config)
tsc,cargo build,go build,npm run build,vite buildexits non-zero- A typecheck or lint gate is red and you want it green before committing
- A focused test suite is failing and each failure points at a clear fix
- CI went red on a build/typecheck step and you're reproducing locally
- You catch yourself copy-pasting errors back to the agent one at a time
When NOT to Use
- You don't know the check command yet — find it first (see Phase 0)
- The failure is a genuine logic bug needing investigation, not a mechanical
fix → use
debug-hypothesisinstead, then come back here to confirm green - The fix requires a product/design decision only a human can make
- The "fix" would mean deleting tests,
// @ts-ignore-ing real errors, or loosening types to silence the compiler → that's cheating the judge, not passing it (see Anti-rationalizations) - The build passes already — there's nothing to loop on
The Loop
┌─────────────────────────────────────────────┐
│ attempt > MAX_ATTEMPTS (default 10)? │
│ → STOP, report what's left, ask the human │
└──────────────────────┬──────────────────────┘
│ no
RUN CHECK ──▶ green? ──yes──▶ DONE (exit 0, report rounds used)
▲ │
│ │ no (red)
│ ▼
│ READ ERRORS ──▶ FIX SMALLEST ──▶ re-RUN
│ first failure minimal diff, │
│ only, verbatim no refactor │
└──────────────────────────────────────────────┘
one round = one fix + one re-run
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 226 lines · 93 tokens per session scan A 473266b5dfa1
build-until-pass is a skill published in the GitHub repository LichAmnesia/lich-skills (233 stars, last pushed 3mo ago), licensed MIT. It adds 93 tokens to every session and 2,799 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
tauri-mcp-cli
Use the Tauri MCP CLI to start and recover driver sessions, automate Tauri webviews, capture UI state, debug IPC, and work with mobile or remote devices. Use whenever an agent needs to operate a Tauri v2 app from terminal commands.
logic-review
Find logic bugs in a single file or function via semi-formal execution tracing (Premises → Trace → Divergence → Trigger → Remedy). Trigger when a user shares code and suspects something is wrong without naming a concrete failure — phrases like "review this", "does this look right", "check this function", "audit this…
logic-fix-all
Autonomous repository-wide audit-and-fix pipeline: health → review → locate/explain → fix → diff-verify → iterate until clean. Starts with a mandatory consent prompt (token-intensive); after consent runs hands-free. Trigger when the user wants ALL logic issues found and fixed — "fix everything", "fix all logic…
logic-health
Sweep a directory, module, or full codebase for logic correctness and produce a scored health dashboard with systemic patterns. Trigger when the user requests a health view — "audit the whole codebase", "health check", "health overview", "logic health overview", "audit src/", "audit auth and payments modules", "where…
forge-debugger
Diagnoses and fixes issues in Atlassian Forge apps. Use this skill whenever a Forge app has errors, crashes, shows blank UI, fails to deploy, doesn't appear after installation, has permission issues, or produces unexpected output. Trigger on any mention of forge logs, forge deploy errors, resolver errors, blank…
logic-explain
Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions). Trigger when the user is confused about behavior or asks why code produces X instead of Y — "walk me through this", "trace through X with input…