loop
Skill35 starsChanged 52 days agoApache-2.0View on GitHub
Bounded goal-driven loop over the craftsman verify gate. Use for ratchet campaigns, red-to-green test runs, violation burn-down: any task shaped as act, verify, repeat until a Done-when condition holds. Every iteration re-verifies; the loop stops on green, on no-progress, or when the budget is spent.
55 other projects use a version of this.
Adopted by
Most recently taken up by
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- SethGammon/Citadeltheir own version, first seen Nov 4, 2026
- drevendev/HungryCrabtheir own version, first seen Nov 1, 2026
- Railly/skillstheir own version, first seen Nov 1, 2026
- HeshamFS/swarmweavertheir own version, first seen Nov 1, 2026
- jtaroreh/agystacktheir own version, first seen Oct 29, 2026
Used with
Projects with it also use review-bugbot, origin and 10 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.
0mlkrizzz655335vSkillreview-bugbot
缺陷导向代码审查。用 Bugbot 子代理找 bug。
Also in 4 projects that use this
0mlkrizzz655335vSkillorigin
origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:
Also in 3 projects that use this
PandelisZSkillupdate-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
Also in 4 projects that use this
32103210Skillmigrate-to-skills
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
Also in 4 projects that use this
32103210Skillupdate-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
Also in 4 projects that use this
MicrosoftSkillautomate
Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.
Also in 4 projects that use this
- +3 more from 0mlkrizzz655335v
- +1 more from 32103210
Other versions55 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 55
- SethGammon/Citadel★ 927same name
- breezewish/CodexPotter★ 629same name
- jtaroreh/agystack★ 128same name
- dannys-code-corner/incan★ 73same name
- ww-w-ai/bkit-gemini★ 66same name
- IsuruMaduranga/one-code★ 50same name
- unclejobs-ai/second-claude-code★ 41same name
- Hassaan146/claude-skills★ 18same name
- woxiangyangzhimao/skills★ 14same name
- Railly/skills★ 11same name
45 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 repository23 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 46
No new scope inside the loop.
- Distinctive: line 53
Baseline: run verify once, record the starting verdict and failure set.
“Common” is measured: kept by at least 6 in 10 of the 50 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
/craftsman:loop - Bounded Verification Loop
Outcome Contract
- Outcome: the loop card's verify command green, or an explicit stop verdict (no_progress or budget spent) with the remaining gap named.
- Done when: a stop condition fired, the final verify output is shown, and the iteration ledger reports what changed on each pass.
- Evidence: the verify command's output per iteration, and the diff each iteration produced.
Philosophy
The loop doctrine behind Claude Code is gather context, act, verify, repeat,
and its first rule is: reach for a workflow before an agent. This skill is
the "repeat" layer on top of the /craftsman:workflow pipeline, never a
replacement for it. The judge is the plugin's existing gate (tests, ratchet,
rules engine), so the loop inherits exactly the verdict the hooks and CI
already enforce. What the loop adds is cadence and a stop condition; it adds
no new authority.
Loop Card
Built first, shown to the user before any iteration runs.
| Field | Meaning | Default |
| goal | one sentence, outcome form | required |
| verify | one command whose exit code is the verdict | required |
| max_iterations | hard cap on passes | 5 |
| stop_on | green, no_progress (2 identical failures), budget | all three |
| escalate | the question a human answers when the loop stops red | required |
Rules the card cannot override:
- The verify command is the ONLY judge. No iteration may weaken it: editing the test, raising a ratchet budget, or relaxing a rule to get to green is entombing the regression, not fixing it.
- One iteration is the smallest change that could flip the verdict, then a full verify. Batching acts between verifies turns the loop into a blind batch edit.
- No new scope inside the loop. A discovery becomes a ledger note for the next pipeline run, never a new goal mid-loop.
Process
- Card: build the loop card from the user's brief. Missing verify command: ask; never invent one.
- Baseline: run verify once, record the starting verdict and failure set. A loop without a red baseline has nothing to fix: stop and say so.
- Iterate: act (one atomic change), run verify, append one ledger line:
iteration N: <verdict> - <what changed> - <delta vs previous>. - Stop on the first of: verify green (success), two consecutive iterations with an identical failure set (no_progress), max_iterations reached (budget).
- Deliver: final verdict, the full ledger, the remaining gap when red, and the card's escalation question when the loop stopped short of green.
Cross-Turn Cadence
For work that must recur across turns or wait on external state (a CI run, a
long build, a deploy), this skill only defines the card; the cadence belongs
to the native loop runner. Hands off to: the user types /loop with the
loop card pasted as the prompt, choosing the interval or letting it
self-pace. In-session iteration above is the default; the native runner is
for cadence a single session turn cannot hold open.
Delivery Is Not Optional
The loop ends with a verdict every time: green, no_progress, or budget spent. A loop that ends silently teaches the user to distrust the command, so never let the last action be a tool call; the ledger and the verdict are the report.
Bias Protection
Acceleration: skipping verify between acts to "save iterations" makes the final verdict belong to nobody. One act, one verify, no exceptions.
Scope creep: the loop optimizes exactly one verdict. Everything else it
notices is ledger material for the next /craftsman:plan.
Comprehension debt: a green loop the user never read still shipped changes. The ledger names every diff so the human can read what the loop did, and the escalate field exists because stopping red is a human decision, not a failure of the loop.
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.

