agentleFS
MegapromptingMegaprompting/torque-loop/skills/loop/SKILL.md

loop

Skill10 starsChanged 4 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.

55 other projects use a version of this.

Adopted by

Most recently taken up by

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.
  • 0mlkrizzz655335vSkill

    review-bugbot

    缺陷导向代码审查。用 Bugbot 子代理找 bug。

    Also in 4 projects that use this

  • 0mlkrizzz655335vSkill

    origin

    origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:

    Also in 3 projects that use this

  • PandelisZSkill

    update-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

  • 32103210Skill

    migrate-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

  • 32103210Skill

    update-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

  • MicrosoftSkill

    automate

    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

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 50 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
  1. Very specific:

    Patch: only what failed (/ratchet:patch).

    line 28
  2. Very specific:

    Run ratchet score confidence and read BOTH loopClear and the workflow-closure layer (closure.closed).

    line 43
  3. Distinctive:

    If either read is false, run another iteration.

    line 52

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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 confidence

The cycle (repeat until the stop condition holds)

Each iteration:

  1. Discover the missing thing. The highest-leverage gap right now — an untested assumption, an open defect, a missing piece of the artifact. (Borrow /ratchet:cut and /ratchet:auction logic to pick it.)
  2. Build the artifact or the fix (/ratchet:build).
  3. Attack it with the five-voice board (/ratchet:attack); record defects.
  4. Patch only what failed (/ratchet:patch); resolve the original defect with evidence.
  5. Verify bound to the artifact (/ratchet:verify); on green, ratchet artifact close <id>.
  6. 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:

  • loopClear holds — no unresolved critical/high defect, no untested core assumption, no missing next action.
  • workflowClosed.closed is 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.