gauntlet-loop — Claude Code skill: loop until it beats the bar
Turns any goal into one short prompt that makes an agent keep grinding on the work until it beats a real reference.
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a claude-codeWhat gauntlet-loop does
The skill takes your goal and hands back a single paste-ready prompt. Inside that prompt the agent sets a quality bar, splits the work into small pieces that can be judged on their own, and fans out a builder plus a separate harsh critic on each piece with fresh context. The critic looks at the actual output, puts it next to the bar blind with the labels stripped, and says which one is better.
The bar is the whole trick. It has to be named, fetchable and comparable. A bar that is too easy makes the loop exit on round one, so the skill tells you to pick the hardest one the agent can genuinely reach. If the goal has a measurable half — load time, benchmark score, word count — name it next to the reference.
The prompt stays short, around 120 to 180 words, with no bullet lists or headings inside it. /loop and ultracode are Claude features; for other agents you swap them for a plain request to keep looping and run builders and critics as parallel subagents. A budget or cost ceiling line goes in only if you named one — there is no default cap.
What it helps with
- turn a vague goal into a ready prompt for an agent
- set a measurable quality bar instead of "make it nice"
- split work into pieces that can be judged separately
- run a builder and a harsh critic on each piece
- compare the output against the bar blind and name the biggest gap
Example prompts for the agent
- /gauntlet-loop landing page for my running brand, athletic, green and dark
- gauntlet this: a 2000-word explainer on vector databases for non-engineers
- make a gauntlet prompt for my repo, loop until it beats X
How to install gauntlet-loop
1Skills CLI (Vercel)
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a claude-code2Manually: put the files in place
~/.claude/skills/gauntlet-loop/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gauntlet-loop/
1Skills CLI (Vercel)
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a codex2Manually: put the files in place
.agents/skills/gauntlet-loop/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a cursor2Manually: put the files in place
.cursor/skills/gauntlet-loop/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install robonuggets/gauntlet-loop gauntlet-loop2Manually: put the files in place
.github/skills/gauntlet-loop/SKILL.md1Skills CLI (Vercel)
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a gemini-cli2Platform CLI
gemini skills install https://github.com/robonuggets/gauntlet-loop --path .claude/skills/gauntlet-loopManually: put the files in place
.devin/skills/gauntlet-loop/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about gauntlet-loop
How do I install gauntlet-loop in Claude?
Run npx skills add robonuggets/gauntlet-loop --skill gauntlet-loop -a claude-code. The skill then lives at ~/.claude/skills/gauntlet-loop/SKILL.md.
What does gauntlet-loop do?
It does not do the work itself — it writes one short prompt for a fresh agent session. That prompt makes the agent set a bar, break the task into pieces, and run a builder and critic until the output wins blind against the bar.
Which agents can use the skill?
There are install paths for Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode besides Claude. The /loop and ultracode lines only work in Claude; elsewhere you replace them with a request to keep looping with parallel subagents.
Source text
SKILL.md · CC-BY-4.0
--- name: gauntlet-loop description: Turns any goal into one short, paste-ready "gauntlet loop" prompt - a prompt that makes an agent set a concrete quality bar, split the work into small judgeable pieces, run a builder and a separate harsh critic on each, compare blind against the bar, and loop until it wins. Works for builds, writing, code, research, or design. Triggers on "/gauntlet-loop", "gauntlet loop", "gauntlet this", "make a gauntlet prompt", "loop until it beats X". --- # Gauntlet Loop The user gives a goal. You give back ONE short prompt they can paste into a fresh agent session. You are not doing the work. You are writing the prompt that makes another agent grind on the work until it beats a real reference. ## Flow 1. **Read the goal.** One line restatement in your head, not on screen. 2. **Set the bar.** If the user supplied a reference, use it. If not, offer **2 or 3 candidate bars**, one line each, and stop. Wait for their pick. Do not write the prompt yet. 3. **Write the prompt.** One block, paste-ready, no preamble, no headings inside it, no narration after it. 4. **Offer to run it.** One flat line under the prompt: "I can run this here." Not a question. If they say run it, you become the lead agent and follow the prompt you just wrote. ## The bar is the whole trick Everything else in a gauntlet loop is scaffolding. The loop only produces quality if the thing it compares against is real. A bar has to pass three tests: - **Named.** A specific thing, not a category. "Stripe's pricing page" works. "Award-winning SaaS sites" does not. - **Fetchable.** The critic can actually get it - screenshot the live page, read the published piece, run the binary, open the repo, watch the footage. If the agent cannot obtain it, it will hallucinate the comparison. - **Comparable.** Both can sit side by side and a judge can pick one. If you cannot imagine the A/B, it is not a bar. Bars by goal type: | Goal | Bar that works | |---|---| | Website, app, UI | The live site of a specific best-in-class product, screenshotted at the same viewport | | Game, 3D, visual | Real footage or screenshots from a named shipped title | | Writing | A specific published piece by a named author or publication, same length and format | | Code, tooling | A named repo's implementation, plus its benchmark or test suite as the measurable half | | Research, analysis | A named analyst report or a paper's methods section, judged on rigour and coverage | | Deck, doc, deliverable | A real artifact from a firm known for it, same page count | When you propose bars, prefer the hardest one the agent can genuinely reach. A bar that is too easy makes the loop exit on round one. If the goal has a measurable half (load time, token cost, benchmark score, word count, pass rate), name it alongside the reference. Taste plus a number beats taste alone. ## Prompt template Adapt the wording every time. Fill the brackets, keep it short, keep the last line. ``` Build [GOAL]. The bar is [BAR]. Get the real thing first and compare against it directly, not against a description of it. Break this into the smallest pieces that can be improved and judged on their own. For each piece, fan out a builder and a separate critic with fresh context. The critic inspects the actual output, puts it next to the bar blind with the labels stripped, says which one is better, and names the single biggest remaining gap. Then it goes back to the builder. The critic should be a harsh critic. Praise is not useful. If ours does not win, it keeps going. /loop on each piece until the critic picks ours blind. Do not stop before that. Keep a live progress page updating as the work evolves so I can watch it. Fan out subagents and ultracode. ``` Rules for what you fill in: - Bake the bar in as a concrete, fetchable thing. URL, product name, repo, title. - Add a budget or cost ceiling line **only if the user named one**. No default cap. - Add tool names only if the goal needs them (image or video generation, a browser, a deploy target). - Everything else stays out. No architecture, no file layout, no decomposition, no round count, no stack choice unless the user demanded it. The agent decides those, and it decides better than a spec written before the work started. ## Length and voice Short. Around 120 to 180 words. If the prompt needs a heading to stay readable, it is too long. Plain sentences. No bullet lists inside the prompt. It should read like someone telling an agent what perfect looks like and refusing to accept less. ## Portability `/loop` and `ultracode` are Claude Code features. `/loop` reruns the prompt on an interval or lets the model pace itself. `ultracode` opts the turn into multi-agent orchestration. For any other agent, swap the last two lines for: "Keep looping until the critic picks ours. Run the builders and critics as parallel subagents." The structure carries over unchanged. ## Two filled examples **Visual goal.** User: "landing page for my running brand, athletic, green and dark, has to feel alive." Bars offered: A) Nike's current running campaign page B) On Running's homepage C) Gymshark's product landing page. User picks A. ``` Build a landing page for a running brand. Athletic, peak performance, green and dark, energetic, aimed at a young healthy audience. It needs to be interactive and visually unmistakable. The bar is Nike's current running campaign page. Screenshot it at desktop and mobile and compare against those directly, not against a description of them. Break this into the smallest pieces that can be improved and judged on their own - hero, motion, type, colour, imagery, interaction, mobile. For each piece, fan out a builder and a separate critic with fresh context. The critic opens the real page in a browser, puts our screenshot next to Nike's blind with the labels stripped, says which is better, and names the single biggest remaining gap. Then it goes back to the builder. The critic should be a harsh critic. Praise is not useful. If ours does not win, it keeps going. /loop on each piece until the critic picks ours blind. Do not stop before that. Keep a live progress page updating as the work evolves so I can watch it. Fan out subagents and ultracode. ``` **Non-visual goal.** User: "a 2000-word explainer on vector databases for non-engineers." Bars offered: A) a specific Stripe engineering blog explainer B) a named Julia Evans post C) the Wikipedia article plus a comprehension test. User picks B. ``` Write a 2000-word explainer on vector databases for readers who are smart but not engineers. The bar is Julia Evans' writing on hard technical topics. Pull three of her actual posts and compare against them directly, not against a description of her style. Break this into the smallest pieces that can be judged on their own - the opening, each explanation, the diagrams, the analogies, the ending. For each piece, fan out a writer and a separate critic with fresh context. The critic reads ours and hers blind with the bylines stripped, says which one a non-engineer would understand faster, and names the single biggest remaining gap. Then it goes back to the writer. The critic should be a harsh critic. Praise is not useful. If ours does not win, it keeps going. /loop on each piece until the critic picks ours blind. Do not stop before that. Keep a live progress page updating as the work evolves so I can watch it. Fan out subagents and ultracode. ``` ## What breaks a gauntlet loop - **A vague bar.** The critic invents a comparison and approves everything. Most common failure by far. - **The builder judging its own work.** The critic must be a separate agent with fresh context. It should not know how hard the builder tried. - **A soft critic.** Say "harsh" in the prompt and give it a binary job: which one is better, A or B. Scores out of 10 drift upward every round. - **Named exit after N rounds.** The exit is winning the comparison, or the user stopping the run. Never a round count. - **Over-specifying.** Every extra instruction is one fewer decision the agent makes with its own judgment. Minimal wins.
© robonuggets · CC-BY-4.0 · robonuggets/gauntlet-loop