indefinite-loop
Skill7 starsChanged 4 days agoMITView on GitHub
Optimize continuously, indefinite loop, keep improving metrics. Run successive research-driven experiment batches until interrupted; use run-experiment for a bounded comparison.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- audit-and-resolveSkill
- context-pagingSkill
- coordinate-workSkill
- design-skillSkill
- design-time-triggered-skillSkill
- design-validationSkill
- diagnose-and-repairSkill
- install-dev-skillsSkill
- operate-workflowSkill
- polish-docsSkill
- run-experimentSkill
- contract-disciplineSkill
- documentation-styleSkill
- evidence-disciplineSkill
- git-disciplineSkill
- scratch-spaceSkill
- testing-doctrineSkill
- context-compaction-procedureSkill
- maintain-scratchSkill
- refine-skillSkill
- security-hygiene-checkSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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 16
Use the user's metrics. If none are supplied, inspect the project's goals, representative usage, and current bottlenecks.
- Distinctive: line 24
Execute sequentially: Run each experiment against the latest accepted incumbent, isolating its contribution.
- Distinctive: line 26
Renew the search: Update the incumbent and research priorities from the results, then start the next batch without requesting routine …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Indefinite loop
Remain committed to improving the project's metrics through successive batches of experiments. A completed batch, reached target, or plateau is a reason to reassess and continue, not declare the loop finished.
For ongoing work, read and update scratch records in agents/scratch/: baseline, accepted candidate, batch results, rejected directions, and next experiments.
Preamble: define success
Use the user's metrics. If none are supplied, inspect the project's goals, representative usage, and current bottlenecks; select and justify outcome-aligned metrics. Proceed with that rationale unless an unresolved user tradeoff prevents choosing responsibly.
Define the primary objective, improvement direction, correctness and quality constraints, representative evaluation, and a material gain exceeding measurement noise. For competing metrics, establish priorities or acceptable tradeoffs before experimenting. Record a reproducible baseline and recoverable incumbent. Keep evaluation stable; changing the objective or workload requires an explicit rationale and new baseline.
Repeat
- Research and design a batch. Inspect measurements, relevant literature or implementations, and previous results. Propose about five distinct hypotheses, each with a mechanism, expected metric impact, evaluation, and bounded experiment cost. Rank by expected impact and information gain per unit cost.
- Favor structural opportunities. Target the measured bottleneck: eliminate work, change algorithms or representations, rewrite a kernel, fuse stages, or remove transfers and synchronization. Size alone does not justify a rewrite. Group neighboring parameter variants into one bounded sweep; do not fill batches with block-size changes or repeatedly sweep an exhausted neighborhood. Tuning needs evidence of remaining headroom. A plateau calls for renewed measurement and a different mechanism.
- Execute sequentially. Run each experiment against the latest accepted incumbent, isolating its contribution. Check correctness and compare under equivalent conditions; repeat enough to resolve plausible noise. After an accepted change, revise invalidated hypotheses.
- Keep only demonstrated wins. Accept a candidate only when it meets the predefined improvement criterion and preserves constraints. Reject or mark inconclusive everything else, restoring only that experiment's changes. Retain a compact record of hypothesis, source/configuration, measurements, and verdict. Check cumulative gains against the original baseline and representative held-out cases to detect workload overfitting.
- Renew the search. Update the incumbent and research priorities from the results, then start the next batch without requesting routine continuation. Keep a resumable checkpoint with accepted state, results, rejected directions, and next experiments; provide concise progress updates.
Continue until the user stops or redirects the loop, an applicable resource or runtime limit is reached, or further progress requires unavailable input or authorization. At an interruption, preserve the checkpoint and identify the continuation point. This skill does not create background execution; never imply work continues after execution ends.
Illustrative batch: for a pipeline with measured compute and transfer costs, test eliminating duplicate computation, fusing adjacent stages, changing the intermediate representation, rewriting the dominant kernel, and overlapping transfers with independent work. Each hypothesis must explain its expected end-to-end benefit.
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.

