Darwin.skill 3.0 — behavior-ratcheted evolution loop for Agent Skills
From README links · today
Evolve agent skills with blind A/B runs, not doc reviews.
What they did
They took a repo full of Agent Skills and ran Darwin.skill 3.0's evolution loop on one SKILL.md at a time. First a zero-cost `darwin.py check` sweep flagged routing gaps, bodies over 500 lines, missing referenced files, and leaked secrets or personal paths. Then a baseline run compared an agent with the skill against a bare model on the same tasks, to see whether the skill added anything at all. Each round changed exactly one hypothesis in a single editable asset, and an independent executor agent ran the dev-set prompts with the new version while a blind judge compared old and new outputs without knowing which was which. A/B order was randomized and tallied by `scripts/darwin.py`, with factual claims verified before counting votes. Changes were kept only if strictly better, or if tied and shorter; everything else was reverted via git. A held-out set checked for test-fitting, and a human checkpoint gated each skill before the result card was written.
How it went
The loop produces per-skill result cards with evidence grades (E0 static check, E1 read review, E2 real runs, E3 production), plus explicit verified / unverified / residual-risk sections. The 9-dimension rubric survives only as a diagnostic for finding and ranking problems. Reported gains come from real runs rather than document scores, and the ratchet keeps skill length from creeping up on ties.
Worth knowing
Requires a working agent harness that can run skills end-to-end and a judge model separate from the executor; without real task prompts the loop degrades to doc review. Dev and held-out prompt sets must be authored up front, and human checkpoints mean it is not unattended. Token cost scales with every A/B pair, and results are comparative, not absolute scores.
Wiring
Install with `npx skills add alchaincyf/darwin-skill` so the Darwin SKILL.md is available to the host agent. The Darwin skill acts as program.md: it defines the rubric, the ratchet rules, and the checkpoint protocol. `scripts/darwin.py` handles the mechanical parts — `check` for the token-free static sweep, and randomized A/B ordering, vote tallying, and verdicts for each round. Each target skill's SKILL.md is the single editable asset per round, versioned in git so keep/revert is a commit operation. Executor and judge are separate sub-agents; the judge receives anonymized outputs only. Test prompts live in test-prompts.json split into dev and held-out sets. Order: static check → baseline vs bare model → one-hypothesis edit → blind A/B on dev set → script verdict → git keep/revert → held-out validation → human checkpoint → result card.
Try it yourself
Run Darwin.skill 3.0 on this repo. Steps: (1) run `python scripts/darwin.py check` across all skills and list routing gaps, bodies over 500 lines, broken file references, and any secrets or personal paths; (2) pick the one skill with the most concrete problems and write 8 dev-set and 4 held-out task prompts that exercise it; (3) run a baseline comparing an agent with the skill vs a bare model on the dev set and tell me if the skill shows no value or actively hurts; (4) if it helps, propose one single-hypothesis edit to that SKILL.md only; (5) run old vs new blind with randomized A/B order, tally with darwin.py, keep only if strictly better or tied-and-shorter, else revert with git; (6) validate on the held-out set and write a result card with evidence grades and residual risks. Stop at each checkpoint for my approval.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-darwin-skill-and-nuwa-skillcurl -s https://api.runchr.com/api/recipes/runchr/stack-darwin-skill-and-nuwa-skill/manifestSystem prompt
You run Darwin.skill 3.0's behavior-ratcheted evolution loop on Agent Skills in this repo, changing one hypothesis at a time and keeping a change only when blind A/B runs show it is strictly better, or tied and shorter. You stop at every human checkpoint for approval and never claim gains that real runs did not show.
This system prompt was generated from this stack's copy and tools. A person has not reviewed it.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-darwin-skill-and-nuwa-skill/manifest.