loop
Skill128 starsChanged 2 days agoMITView on GitHub
Run iterative verification hillclimbs against a concrete test command using Antigravity reactive scheduling. Use for /loop, 'loop until green', or automated hypothesis testing with a verification predicate.
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run iterative verification loops and hillclimbs on Antigravity without manual polling.
- Very specific: line 34
Frame: Read target files. Generate baseline evidence by executing the verify command via run_command or bash.
- Distinctive: line 36
Verify: Run the verification command.
- Very specific: line 38
When verify passes, log success, mark status CONVERGED, and finish.
- Very specific: line 39
When verify fails and iterations remain, record the delta, revert regressions if hillclimbing, and set a reactive timer using …
- Distinctive: line 40
Stop calling tools immediately after scheduling to end the turn and let the timer fire.
- Very specific: line 41
When budget is reached, mark status EXHAUSTED and hand back to the user with a summary table.
“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
Loop
Run iterative verification loops and hillclimbs on Antigravity without manual polling.
How It Works
The /loop skill drives discrete edits against a verification command (--verify "<command>").
It maintains iteration state in <appDataDir>/brain/<conversation-id>/scratch/loop/state.json.
It uses the native Antigravity schedule tool to manage reactive iteration delays.
For open-ended autonomous tasks where no single bash exit code determines completion, use the /goal slash command or the Autonomous run playbook instead.
For standing background jobs or periodic status checks, use the schedule tool directly.
Invocation
Format:
/loop <goal> --verify "<command>" [--max-iterations N] [--interval S]
Default values:
max-iterations: 10interval: 30 seconds
State Machine
The loop maintains durability through structured state transitions.
The file state.json records git revision, active task ID, iteration counters, and status.
During execution, state.json records git revision for each step.
- Frame. Read target files. Generate baseline evidence by executing the verify command via
run_commandor bash. Record initial state in<appDataDir>/brain/<conversation-id>/scratch/loop/state.json. Record the currentgit_revisionfromgit rev-parse HEAD. - Step. Apply one discrete edit or hypothesis. Update
git_revisionif a commit or checkpoint is created. - Verify. Run the verification command. Capture stdout, stderr, and exit code.
- Decide.
- When verify passes, log success, mark status
CONVERGED, and finish. - When verify fails and iterations remain, record the delta, revert regressions if hillclimbing, and set a reactive timer using
schedule(DurationSeconds=interval, Prompt="Loop iteration wakeup for <goal>", TimerCondition="never"). Updatestate.jsonwith the returnedtask_idand next iteration count. - Stop calling tools immediately after scheduling to end the turn and let the timer fire.
- When budget is reached, mark status
EXHAUSTEDand hand back to the user with a summary table.
- When verify passes, log success, mark status
- Wakeup. On schedule trigger, the agent reactively wakes up, reads
state.json, and executes the next step.
Crash and Restart Recovery
The loop recovers gracefully across crashes, context compactions, or server restarts:
- State restoration. On session startup or resume, read
<appDataDir>/brain/<conversation-id>/scratch/loop/state.json. - Revision verification. Compare
git rev-parse HEADwith the recordedgit_revision. If the working tree has drifted, reset to the recorded revision before proceeding. - Deduplication. Inspect the recorded
task_idinstate.json. Usemanage_taskwithAction: "list"orAction: "status"to inspect pending scheduled tasks. - Orphan cleanup. Kill stale or orphaned timers using
manage_taskwithAction: "kill"to prevent duplicate wakeups. - Execution resumption. Resume iteration from the restored state machine position without repeating finished work.
Arguments
| Argument | Description | Default |
goal | Description of the desired state | Required |
--verify | Command that exits 0 on success | Required |
--max-iterations | Maximum number of attempts | 10 |
--interval | Delay between iterations in seconds | 30 |
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
- ww-w-ai/bkit-gemini★ 66same name
- dannys-code-corner/incan★ 63same name
- unclejobs-ai/second-claude-code★ 40same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- IsuruMaduranga/one-code★ 19same name
- Hassaan146/claude-skills★ 18same name
- woxiangyangzhimao/skills★ 14same name
- Megaprompting/torque-loop★ 9same 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.
Used alongsideProjects 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
HermeticOrmusSkillautomate
Turn a repetitive task into a reliable automation script. Scope the task and its frequency/inputs/outputs/edge cases, pick the simplest tool, implement the smallest version, add error handling and idempotency, dry-run then schedule. Use when the task is "automate this", "write a script for", or scheduling an unattended job.
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
- +3 more from 0mlkrizzz655335v
- +1 more from 32103210
In this repository57 other files it gives its agents.
- rules/AGENTS.mdAGENTS.md
- agystackSkill
- architectSkill
- arenaSkill
- automate-meSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- correctSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- deslopSkill
- figure-it-outSkill
- howSkill
- interrogateSkill
- in-your-own-wordsSkill
- ketchupSkill
- maintain-verification-skillSkill
- no-commentsSkill
- poteto-modeSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- recallSkill
- reflectSkill
- setup-agystackSkill
- sharpenSkill
- show-me-your-workSkill
- statechartSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- typescript-best-practicesSkill
- unslopSkill
- whySkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

