loop
Skill40 starsChanged 3 months agoMITView on GitHub
Use when benchmarking and evolving prompt assets through a fixed-suite optimization loop
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, map and 6 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
srpadronoSkillmap
Crawls a codebase to discover all user journeys and creates a journey map (journeys.json) with test coverage status. Use when starting UI test coverage work, auditing existing coverage, or exploring a new codebase's user flows.
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
dcs-soniSkillcodebase-onboarding
Help developers understand unfamiliar codebases quickly. Use when
Also in 3 projects that use this
AnthropicSkillverify
Drive the contracts engine's runtime surface (the stdio MCP server) to verify changes end-to-end. Scoped to public-plugins/plugins/healthcare/skills/contracts/ and ../../servers/documents/.
Also in 6 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
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
- BULDEE/ai-craftsman-superpowers★ 35same name
- Hassaan146/claude-skills★ 18same name
- woxiangyangzhimao/skills★ 14same name
- Megaprompting/torque-loop★ 9same 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.
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 31 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 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
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.

