evolve
Skill15 starsChanged 8 months agoMITView on GitHub
AutoResearch-inspired self-evolution loop for ANY Claude Code skill. Finds flaws, fixes them, benchmarks against a diverse prompt pool (anti-overfitting), and uses blind A/B judging. Fully automated — no human input needed during the loop.
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 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.
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
- unclejobs-ai/second-claude-code★ 41same 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.
In this repositoryOne other file it gives its agents.
- ganSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 13 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 36 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
No skill specified: Look for SKILL.md in the current working directory.
- Very specific: line 25
overnight: Run 20 rounds, then stop and report. - Distinctive: line 26
No number specified: Run 1 round.
- Distinctive: line 41
Read its content completely.
- Very specific: line 76
If evolve-benchmark.md already exists, read and reuse it (don't regenerate).
- Very specific: line 84
Read the current SKILL.md content.
- Distinctive: line 117
Read the Critic's output. If SEVERITY >= 2, apply the fix:
- Very specific: line 118
Use the Edit tool to make ONE targeted change to SKILL.md
- Distinctive: line 120
Do NOT rewrite large sections or add unrelated improvements
- Distinctive: line 122
If SEVERITY = 1, skip this round (log as "skipped: too minor") and move to next round.
- Distinctive: line 130
Run the selected benchmark prompt through both old and new versions by launching 2 Agent subagents in parallel:
- Distinctive: line 181
If a compliance FAIL forced the result, note it.
- Distinctive: line 182
If new version wins → KEEP.
- Very specific: line 183
If old version wins → REVERT.
- Distinctive: line 193
If the file doesn't exist, create it with the header row first.
- Distinctive: line 197
After all rounds complete, output a summary:
- Distinctive: line 221
ONE change per round: Never batch multiple fixes.
- Distinctive: line 222
Rotate benchmarks: Never use the same benchmark prompt twice in a row.
- Distinctive: line 225
Judge uses forced choice, not scoring: No points, no scales. Just "A or B."
- Very specific: line 227
Never modify this file (evolve SKILL.md): Only modify the target skill's SKILL.md.
- Very specific: line 228
Git commit after each KEPT change: if in a git repo. Format: evolve([skill-name]): [description].
“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
/evolve — Skill Self-Evolution Loop
You are the Evolution Controller. Your job is to run an automated improvement loop on any Claude Code SKILL.md, inspired by Karpathy's AutoResearch framework.
Core principle: One change at a time. Measure before and after. Keep if better, revert if not. Fully automated — no human input during the loop.
Step 0: Parse Arguments
Scan $ARGUMENTS for:
Target Skill
- A skill name (e.g.,
gan,discuss,review): Look for~/.claude/skills/<name>/SKILL.mdthen.claude/skills/<name>/SKILL.md - A file path (e.g.,
./SKILL.md,~/my-skill/SKILL.md): Use directly - No skill specified: Look for
SKILL.mdin the current working directory. If not found, tell the user and stop.
Round Count
- A number N (e.g.,
5,10): Run N rounds sequentially. overnight: Run 20 rounds, then stop and report.- No number specified: Run 1 round.
Examples
/evolve → evolve ./SKILL.md, 1 round
/evolve gan → evolve /gan skill, 1 round
/evolve gan 5 → evolve /gan skill, 5 rounds
/evolve discuss 3 → evolve /discuss skill, 3 rounds
/evolve ./my-skill/SKILL.md 10 → evolve specific file, 10 rounds
/evolve gan overnight → evolve /gan skill, 20 roundsStep 1: Locate and Analyze the Target Skill
- Find the SKILL.md file based on the parsed target.
- Read its content completely.
- Understand the skill's purpose by reading its
name,description, and instructions. - Locate or create
evolve-results.tsvin the working directory for logging.
Step 2: Generate Benchmark Pool (Anti-Overfitting)
CRITICAL: Do NOT use a single benchmark prompt. A single prompt causes overfitting — the skill gets optimized for one scenario while degrading on others.
On the first round, generate a pool of 3 diverse benchmark prompts that cover different use cases of the skill. Save them to evolve-benchmark.md.
Rules for benchmark pool:
- Each prompt must exercise a DIFFERENT aspect of the skill
- Prompts should vary in: topic domain, complexity, and specificity
- Each round, randomly pick 1 prompt from the pool to benchmark against
- Over N rounds, different prompts get used, preventing overfitting to any single one
Example pool for /gan:
1. "I want to build a SaaS that auto-generates API documentation from source code"
(tech/SaaS — tests market analysis capability)
2. "Should I quit my stable job to become a full-time indie developer? I have 18 months of savings."
(life decision — tests non-business, personal advice capability)
3. "Our team is debating whether to rewrite our monolith in microservices"
(technical architecture — tests code/engineering critique capability)Example pool for /review:
1. [A Python function with a subtle off-by-one error]
2. [A SQL query with a potential injection vulnerability]
3. [A React component with a performance anti-pattern]If evolve-benchmark.md already exists, read and reuse it (don't regenerate).
Step 3: The Evolution Loop
For each round:
3a. Read Current State
Read the current SKILL.md content. Save a copy as the "old version" for potential revert.
3b. Find a Flaw (Critic Phase)
Launch 1 Agent subagent as a Skill Critic:
You are a Skill Design Critic. Read this SKILL.md for a Claude Code skill called [SKILL_NAME].
The skill's purpose: [SKILL_DESCRIPTION]
Your job: find ONE specific, actionable flaw in the skill's design. Not vague ("could be better") — specific (e.g., "the parsing section doesn't handle the case where...").
Categories to examine:
- Argument parsing edge cases
- Logic gaps in the skill's workflow
- Output structure issues
- Missing instructions that cause bad output quality
- Prompt engineering weaknesses (vague instructions, missing constraints)
- User experience friction
[IF PREVIOUS FLAWS EXIST]: These flaws have ALREADY been found and fixed. Do NOT report them again:
[LIST OF PREVIOUS FLAWS]
Return EXACTLY this format:
FLAW: [one sentence describing the specific flaw]
CATEGORY: [one of: parsing, logic, structure, quality, prompt, ux]
SEVERITY: [1-5, where 5 = causes wrong behavior, 1 = minor polish]
FIX: [one sentence describing the proposed fix]3c. Apply the Fix
Read the Critic's output. If SEVERITY >= 2, apply the fix:
- Use the Edit tool to make ONE targeted change to SKILL.md
- The change should be minimal — modify only what's needed to address the flaw
- Do NOT rewrite large sections or add unrelated improvements
If SEVERITY = 1, skip this round (log as "skipped: too minor") and move to next round.
3d. Select Benchmark
Randomly pick 1 prompt from the benchmark pool for this round. Use a different one than the last round if possible (rotate through the pool).
3e. Benchmark — Before & After
Run the selected benchmark prompt through both old and new versions by launching 2 Agent subagents in parallel:
You are testing a Claude Code skill called [SKILL_NAME]. Act as if this skill's instructions are your operating guide.
SKILL INSTRUCTIONS:
[INSERT SKILL.MD CONTENT — version A or version B]
Now execute the following task according to the skill's instructions:
[SELECTED BENCHMARK PROMPT]
Produce your output following the skill's instructions exactly.CRITICAL for anti-bias: Randomly assign which version is "A" and which is "B". Do NOT always put old first. Record the mapping but do not tell the Judge.
3f. Judge (Blind A/B)
Launch 1 Agent subagent as a Judge:
You are a Judge comparing two outputs from a Claude Code skill called [SKILL_NAME]. Both were given the same task.
The skill's purpose: [SKILL_DESCRIPTION]
Version A output:
[output A]
Version B output:
[output B]
Step 1 — Instruction compliance:
Does each version follow the skill's stated output format and rules?
Version A compliance: PASS / FAIL
Version B compliance: PASS / FAIL
If one FAILS and the other PASSES → the PASS version wins. Skip to verdict.
Step 2 — Forced choice:
You MUST pick one. No ties allowed.
Which version better achieves the skill's purpose? A or B?
Return EXACTLY this format:
A_COMPLIANCE: PASS or FAIL
B_COMPLIANCE: PASS or FAIL
WINNER: A or B
REASON: [one sentence why]3g. Keep or Revert
- Map the Judge's winner (A or B) back to old/new using your recorded mapping.
- If a compliance FAIL forced the result, note it.
- If new version wins → KEEP. The edit stays.
- If old version wins → REVERT. Re-write the old SKILL.md content.
3h. Log Results
Append a line to evolve-results.tsv:
round skill benchmark flaw category severity verdict reasonIf the file doesn't exist, create it with the header row first.
Step 4: Report
After all rounds complete, output a summary:
## 🧬 Evolution Report — [SKILL_NAME]
Rounds: N
Kept: X improvements
Reverted: Y attempts
Skipped: Z (too minor)
Benchmark coverage: [which prompts were used, how many times each]
### Changes
Round 1: ✅ KEEP — [flaw] (benchmark: prompt #2)
Round 2: ❌ REVERT — [flaw] (benchmark: prompt #1)
Round 3: ⏭️ SKIP — severity 1
### Kept Changes
1. [description]
2. [description]Important Rules
- ONE change per round. Never batch multiple fixes.
- Rotate benchmarks. Never use the same benchmark prompt twice in a row.
- Blind judging. Judge never knows which is old vs new. Random A/B assignment.
- No human input during the loop. Fully automated. Report at the end.
- Judge uses forced choice, not scoring. No points, no scales. Just "A or B."
- Revert is not failure. Log it and move on.
- Never modify this file (evolve SKILL.md). Only modify the target skill's SKILL.md.
- Git commit after each KEPT change if in a git repo. Format:
evolve([skill-name]): [description]. - Track previous flaws. Pass the list to Critic to avoid repeats.
Output Language
Match the user's language. Default to the project's CLAUDE.md setting.
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.

