loop
Skill9 starsChanged 5 months agoMITView on GitHub
Run recursive improvement — build → attack → patch → compile — until the artifact is genuinely done. Use to drive an artifact to a stable, tested, serialized state without stopping at the first draft. Repeats the cycle and reports an iteration log and confidence score, stopping only when no critical/high defect, no untested core assumption, and no missing next action remain.
34 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- Bogzx/seekstheir own version, first seen Oct 1, 2026
- yacb2/aidextheir own version, first seen Sep 30, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- oldwinter/skillstheir own version, first seen Sep 26, 2026
- BULDEE/ai-craftsman-superpowerstheir own version, first seen Sep 21, 2026
Used with
Projects with it also use fleet, improve and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
oguzhnatlySkillfleet
Multi-agent fleet management for OpenClaw, Claude Code, Codex, Cursor, Windsurf, Gemini CLI, and custom agent stacks. One CLI to monitor, manage, and orchestrate your entire AI agent fleet. Fleet judges reliability, routes intelligently, tracks deltas, and keeps gateways, HTTP workers, Docker workers, and local processes accountable. Network access stays limited to loopback and explicitly configured endpoints. Operator consent required before install.
Also in 3 projects that use this
AnasX7Skillimprove
Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on source code — never implements, fixes, or refactors anything itself. Use when asked to audit a codebase, find improvement opportunities (bugs, security, performance, test coverage, tech debt, migrations, DX), suggest features or where to take the project next (roadmap, product direction), or generate handoff plans for another agent to implement.
Also in 3 projects that use this
VercelSkillworkflow
Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.
Also in 3 projects that use this
dcs-soniSkillcodebase-onboarding
Help developers understand unfamiliar codebases quickly. Use when
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 4 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 5 projects that use this
Other versions34 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 34
- SethGammon/Citadel★ 922same name
- ww-w-ai/bkit-gemini★ 66same name
- jtaroreh/agystack★ 58same name
- unclejobs-ai/second-claude-code★ 40same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- Hassaan146/claude-skills★ 18same name
- woxiangyangzhimao/skills★ 14same name
- cbdreamer11/CB-loop-kit-claude-plugin★ 8same name
- oldwinter/skills★ 8same name
- Bogzx/seeks★ 4same name
24 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 31 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Patch: only what failed (/ratchet:patch).
- Very specific: line 43
Run ratchet score confidence and read BOTH loopClear and the workflow-closure layer (closure.closed).
- Distinctive: line 52
If either read is false, run another iteration.
“Common” is measured: kept by at least 6 in 10 of the 31 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/ratchet:loop — recursive advancement
One pass rarely finishes anything. This command repeats the core cycle until the artifact actually holds under attack. It is the closest thing Ratchet has to a software-quality agent: discover the missing thing, build it, try to break it, fix what broke, serialize.
Step 0 — Load state
ratchet status
ratchet score confidenceThe cycle (repeat until the stop condition holds)
Each iteration:
- Discover the missing thing. The highest-leverage gap right now — an untested
assumption, an open defect, a missing piece of the artifact. (Borrow
/ratchet:cutand/ratchet:auctionlogic to pick it.) - Build the artifact or the fix (
/ratchet:build). - Attack it with the five-voice board (
/ratchet:attack); record defects. - Patch only what failed (
/ratchet:patch); resolve the original defect with evidence. - Verify bound to the artifact (
/ratchet:verify); on green,ratchet artifact close <id>. - Compile the advance (
/ratchet:compile); recompute confidence.
The cycle is build → attack → patch → verify → compile. Compiling before verifying records an unproven state as if it were an advance.
Report each iteration compactly:
ITERATION n: discovered <gap> → built <thing> → attack <c crit / h high> → patched <delta> → confidence <score>Stop condition (all must hold)
Run ratchet score confidence and read BOTH loopClear and the workflow-closure layer
(closure.closed). Stop only when:
loopClearholds — no unresolved critical/high defect, no untested core assumption, no missing next action.workflowClosed.closedis true — the active artifact carries a closure certificate and no open defect is unattached.- The artifact is genuinely usable (passes its 5-point test).
If either read is false, run another iteration. Do not stop because the output "looks good" — the CLI reads are the arbiter, not your impression.
There is no convergence escape. If two iterations find nothing new while
workflowClosed.closed is false, you are not converged — you are blocked. Stop with
STOP REASON: blocked-needs-human, name the blocker the closure read printed, and hand it
over. "Nothing left to try" and "finished" are different states, and only one of them is
an ending.
Output contract
ITERATION LOG:
- ITERATION 1: ...
- ITERATION 2: ...
STOP REASON: closed | blocked-needs-human
WORKFLOW: CLOSED | NOT CLOSED — <blockers, if any>
FINAL CONFIDENCE: <score>/100 (<band>)
REMAINING RISK: <what a human should still watch>
NEXT: <action> → /ratchet:<command>Then confirm serialization with ratchet export markdown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

