loop
Skill41 starsChanged 7 days agoMITView on GitHub
Use when benchmarking and evolving prompt assets through a fixed-suite optimization loop
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
- BULDEE/ai-craftsman-superpowers★ 35same 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.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 2 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Run a Karpathy-style optimization loop over the plugin's own prompt assets.
- Very specific: line 44
Use node scripts/loop-runner.mjs show-suite <name> to load the suite and verify the allowed targets.
- Very specific: line 45
Use node scripts/loop-runner.mjs run <name> ...
- Very specific: line 48
Keep the top 1-2 elite candidates per generation.
- Very specific: line 49
Only promote a winner when all hard gates pass and the score beats baseline by at least min_delta.
- Very specific: line 66
Do not add routing for this skill in prompt-detect.mjs for v1.
- Very specific: line 67
Do not mutate .mjs, docs/, README*, or tests/ as loop targets.
- Very specific: line 68
Do not declare a winner when baseline remains best or when min_delta is not met.
- Distinctive: line 69
Do not write to the main worktree directly.
“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
Resolve runtime paths before file or script operations.
Iron Law
A loop without a benchmark is meaningless.
Red Flags
- "Let's just run it and see what happens" → STOP, because the Iron Law says a loop without a benchmark is meaningless — a fixed suite with numeric scoring must exist before any run.
- "The new variant feels better" → STOP, because evaluator output must expose a numeric score that can be parsed deterministically — subjective improvement is not a valid promotion signal.
- "Baseline is close enough, let's promote the candidate" → STOP, because winners are promoted only when the score beats baseline by at least
min_delta— close is not enough. - "I'll mutate the docs and test files too" → STOP, because
.mjs,docs/,README*, andtests/are excluded from mutation scope — only allowed targets in the suite allowlist may be changed. - "One more generation might improve it" → STOP, because the loop must stop when budget is exhausted,
min_deltais not met, or scores plateau — open-ended iteration wastes tokens without measurable gain.
Loop
Run a Karpathy-style optimization loop over the plugin's own prompt assets.
When to Use
- Maintainers want to improve
skills/**/SKILL.md,agents/*.md,commands/*.md, ortemplates/*.md - A fixed benchmark suite with numeric scoring already exists
- Candidate variants should compete under the same time budget and the best variant should be promoted to an isolated branch
Subcommands
| Command | Purpose |
list-suites | List bundled loop suites in benchmarks/loop/ |
show-suite <name> | Inspect the validated suite manifest |
run <name> | Create an isolated run branch, score a baseline, generate candidates, and promote a winner if min_delta is met |
resume <run_id> | Reload the saved loop state from .data/state/loop-active.json |
Workflow
- Use
node scripts/loop-runner.mjs show-suite <name>to load the suite and verify the allowed targets. - Use
node scripts/loop-runner.mjs run <name> ...to create the isolatedcodex/loop-...branch and run worktree. - Inside that run worktree, create 3-5 prompt variants only within the selected targets.
- Evaluate every candidate with the suite's fixed case commands. Parse scores from JSON or review-style output only.
- Keep the top 1-2 elite candidates per generation. Stop when budget is exhausted,
min_deltais not met, or the loop plateaus. - Only promote a winner when all hard gates pass and the score beats baseline by at least
min_delta.
Hard Gates
- Selected targets must stay within the suite allowlist and the global v1 mutation scope.
- Contract/runtime smoke checks must still pass when those files exist in the repo.
- Evaluator output must expose a numeric score that can be parsed deterministically.
- Winners are promoted only into the run branch/worktree, never into the current workspace.
State
- Active state:
<plugin-data>/state/loop-active.json - Artifacts:
.captures/loop-<run_id>/ - Bundled suites:
benchmarks/loop/*.json
Gotchas
- Do not add routing for this skill in
prompt-detect.mjsfor v1. It is slash-command only. - Do not mutate
.mjs,docs/,README*, ortests/as loop targets. - Do not declare a winner when baseline remains best or when
min_deltais not met. - Do not write to the main worktree directly. The isolated loop branch is the output surface.
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.

