evolve
Skill41 starsChanged 7 days agoMITView on GitHub
Use when a prompt asset keeps causing the same PDCA gate failure and you want to evolve it against a maintainer-authored structural check
41 other projects use a version of this.
Adopted by
Most recently taken up by
- SethGammon/Citadeltheir own version, first seen Nov 4, 2026
- vidit19sharma/neogentstheir own version, first seen Nov 1, 2026
- cabernect/caberostheir own version, first seen Nov 1, 2026
- Snowflake-Labs/coco-skillstheir own version, first seen Nov 1, 2026
- NobiResearch/Ovenbirdtheir own version, first seen Nov 1, 2026
- ES-92/esctheir own version, first seen Oct 20, 2026
Used with
Projects with it also use instinct-export, instinct-import and 7 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.
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 4 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 4 projects that use this
AWSSkillmap
Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.
Also in 5 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
launch52-aiSkillskill-create
Create and validate Claude Code skills with proper structure, checklists, and validation scripts. Use when creating a new skill, auditing existing skills, or ensuring skills meet quality standards. Generates complete skill scaffolds with SKILL.md, check scripts, guides, and templates.
Also in 3 projects that use this
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
Also in 5 projects that use this
- +1 more from TheKREATORS
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- revfactory/harness★ 9.1ksame name
- Q00/ouroboros★ 6.3ksame name
- yologdev/yoyo-evolve★ 1.9ksame name
- iovisor/ubpf★ 996same name
- SethGammon/Citadel★ 927same name
- GAIR-NLP/ASI-Evolve★ 867same name
- Kanevry/session-orchestrator★ 53same name
- mycelium-hq/ai-brain-starter★ 50same name
- Snowflake-Labs/coco-skills★ 49same name
- epicsagas/epic-harness★ 20same name
31 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
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 36 edited versions we read keep these.
0
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
- could be automatic: a setting could enforce it
- Very specific: line 56
Commit scripts/evolve-scorer.mjs and the target asset, then node scripts/evolve-runner.mjs run evolve-<id> — runs the loop on an isolated …
- Very specific: line 57
Read .captures/loop-<runId>/winner.diff.
- Very specific: line 71
Run artifacts: .captures/loop-<run_id>/ (owned by the loop engine)
- Very specific: line 77
Do not author the assertion from a model's guess.
“Common” is measured: kept by at least 6 in 10 of the 36 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
Every evolve check is hand-authored by the maintainer — never by the optimized model class — and it scores structural conformance of the prompt asset, not runtime behavior. The maintainer's merge review of
winner.diffis the final behavioral gate.
Red Flags
- "I'll write a check for what the asset should do" → STOP. The agent must NEVER author the assertion. The maintainer hand-authors every regex; evolve only surfaces which asset is weak. A model-authored check is self-deception — the optimizer games a benchmark it invented.
- "This asset feels weak, evolve it" → STOP. evolve only targets assets with a real, recurring logged gate failure (
recurrence ≥ 3). No provenance, no target. - "Lower min_delta so it promotes" → STOP. Generated suites pin
min_deltato the0.02floor; evolve refuses to run below it. - "Score went up, so it's better" → STOP. The score only proves the asset matches the maintainer's regex. Behavior is verified by reading
winner.diffbefore merge. - "It scored higher, merge it" → STOP. Winners land on the isolated
codex/loop-*branch; merging to main is a manual maintainer decision.
Evolve
The ouroboros maintainer loop. It closes the self-improvement ring: PDCA runs → Check gate fails → failure logged → evolve harvest surfaces the weak asset → the maintainer authors a structural check → the unmodified loop engine evolves the asset on an isolated branch → the maintainer merges → the next PDCA run starts stronger.
evolve is a target-selection + check-authoring layer on top of loop. It runs no optimizer of its own and relaxes no loop gate.
When to Use
- The same PDCA gate (
sources_min_5,min_two_reviewers, …) keeps failing across runs and the root cause is the producing prompt asset, not the individual run. - The maintainer can express the desired structure as static regexes.
- A fixed loop engine + promotion gates already exist (they do).
v1 Scope — what can actually promote
The loop's mutations are five fixed text substitutions: should→must, can→must, a legacy command-prefix rewrite to /scc:, trailing-whitespace trim, blank-line collapse. None add content. A candidate beats baseline only when the maintainer's regex flips fail→pass because a substitution fired — i.e. the asset still holds a should / can / legacy-prefix token the regex wants rewritten.
A check requiring new content the asset lacks (a missing heading, an added section) can never be satisfied by v1 mutations — every candidate stays byte-identical and the run ends min_delta_not_met. Those need manual editing or a future mutation set. Author assertions inside the promotable space.
Subcommands
| Command | Purpose |
list-failures [--min-recurrence N] [--asset PATH] | Scan real gate_fail events, surface assets that crossed the recurrence threshold. |
show-failure <id> | Inspect one provenance record + prior ratified checks for that asset. |
harvest <id> --assertion '<regex>[,<regex>]' [--target PATH] | Attach the maintainer-authored check and generate benchmarks/loop/evolve-<id>.json. |
run <name> | Shell out to the unmodified loop engine, then report any holdout regression (advisory). |
resume <run_id> | Delegate to loop-runner.mjs resume. |
Workflow
node scripts/evolve-runner.mjs list-failures— which assets recur. Provenance only, never a check.- Decide the structural property, inside the v1 promotable space above. The maintainer authors the regex. The agent must not invent it.
node scripts/evolve-runner.mjs harvest <id> --assertion '/scc:'— a normalization check (the legacy long command prefix is rewritten to the canonical/scc:namespace). Writes a validated suite with the check inline (base64) so the worktree needs no extra file.- Commit
scripts/evolve-scorer.mjsand the target asset, thennode scripts/evolve-runner.mjs run evolve-<id>— runs the loop on an isolated branch; prior ratified checks ride along as weight-0 holdouts. (Refuses if either is missing fromHEAD.) - Read
.captures/loop-<runId>/winner.diff. Merge to main manually only if genuinely better.
Hard Gates
- Maintainer authorship is a procedural control, not a code gate. The runner stamps
check_author: "maintainer"and refuses an empty--assertion, but cannot tell a human regex from a model one. The "never model-authored" guarantee rests on this skill plus your review — never let the agent invent the assertion. - Generated
min_deltais pinned to0.02;evolve runrefuses below it. (Invokingloop-runner.mjs run evolve-*directly bypasses this — always useevolve run.) - Targets stay in the v1 scope (
skills/**/SKILL.md,agents/*.md,commands/*.md,templates/*.md), restricted to a safe charset so they cannot carry shell metacharacters into the generated command. - Inherited loop gates (syntax, manifest, contract-smoke, allowed-targets, critic-output) apply unchanged — evolve edits no engine code. evolve does not validate a suite's case-command safety (a baseline loop property); only run suites evolve itself generated.
State
- Provenance ledger:
<plugin-data>/evolve/failures.jsonl(local-only) - Asset attribution map:
config/evolve-asset-map.json - Generated suites:
benchmarks/loop/evolve-*.json - Run artifacts:
.captures/loop-<run_id>/(owned by the loop engine)
Gotchas
- Slash-only. No
prompt-detect.mjsrouting. A self-mutating loop must never trigger autonomously, and is never daemon-scheduled. - v1 scores structure, not behavior, bounded by the loop's fixed mutations. Calling it "failure reproduction" would be false — it is structural-conformance evolution against a maintainer-authored check.
- Do not author the assertion from a model's guess. Do not merge a winner without reading
winner.diff.
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.

