skill-to-gene
Turn your static AI skills into evolving Genes that compete, improve, and self-select in a live Arena. Use when the user wants smarter skills, self-improving agents, or mentions evolution, fitness, arena, gene, or rotifer.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 1
01 前言 Front Matter
- name
- skill-to-gene
- description
- Turn your static AI skills into evolving Genes that compete, improve, and self-select in a live Arena. Use when the user wants smarter skills, self-improving agents, or mentions evolution, fitness, arena, gene, or rotifer.
03 SKILL.md 正文
Skill-to-Gene
Your skills are static. Genes evolve.
Rotifer Protocol upgrades AI agent capabilities from fixed skill files into Genes — executable units that compete in an Arena, rank by fitness, and get replaced when a better one appears. No manual maintenance. No stale tools.
Why upgrade from Skills to Genes?
| Skill | Gene | |
|---|---|---|
| Updates | Manual — you edit, you push | Autonomous — Genes mutate and compete |
| Quality | Trust the author | Proven in Arena — fitness-ranked |
| Redundancy | Multiple skills doing the same thing | Arena selects the best, eliminates the rest |
| Safety | Hope for the best | L0 immutable constraint layer — cannot be bypassed |
| Composition | Copy-paste between skills | Algebraic: Seq / Par / Cond / Try operators |
| Isolation | Runs in your process | WASM sandbox — zero trust execution |
Get started (30 seconds)
npm install -g @rotifer/playground
rotifer init my-agent && cd my-agent
You'll see a live Arena with 5 Genesis Genes ranked by fitness. No configuration needed.
Convert any function into a Gene
rotifer scan genes/ # Find candidate functions
rotifer wrap my-function # Wrap as a Gene
rotifer test my-function # Validate in WASM sandbox
rotifer arena submit my-function # Submit to Arena — let it compete
rotifer arena list # Watch the rankings
Write a Gene in TypeScript
// genes/my-search/index.ts
export function express(input: { query: string }) {
return { results: [`Found: ${input.query}`], total: 1 };
}
rotifer wrap my-search --domain search
rotifer compile my-search # TS → WASM automatically
rotifer arena submit my-search # Compete against existing search Genes
Browse & install community Genes
rotifer search "code format" # Find Genes on Cloud
rotifer install <gene-ref> # Install to your Agent workspace
rotifer arena list # See how it ranks locally
Browse: rotifer.dev/genes
Compose Genes into Agents
rotifer agent create search-bot --genes web-search formatter --composition Seq
rotifer agent create resilient --genes primary backup --composition Try
rotifer agent run search-bot --input '{"query":"hello"}'
| Operator | What it does |
|---|---|
| Seq | Pipeline: A → B → C |
| Par | Parallel: run all, merge results |
| Cond | Branch: pick Gene based on input |
| Try | Fallback: primary with recovery |
Full CLI
| Command | Description |
|---|---|
rotifer init |
Initialize an Agent workspace with Genesis Genes |
rotifer scan |
Find gene candidates in source code |
rotifer wrap |
Convert function to Gene |
rotifer test |
Test in WASM sandbox |
rotifer compile |
Compile TS → WASM → Rotifer IR |
rotifer arena submit |
Submit to Arena |
rotifer arena list |
View rankings |
rotifer publish |
Publish Gene to Cloud |
rotifer search |
Search Cloud registry |
rotifer install |
Install from Cloud |
rotifer agent create |
Build Agent from Genes |
rotifer agent run |
Execute Agent pipeline |
Links
- rotifer.dev — Website
- rotifer.dev/genes — Gene Store
- rotifer.dev/docs — Documentation
- GitHub — Source
- Discord — Community
04 同仓库更多 Skills
fixture-skill
A synthetic ClawHub skill for wrap --from-clawhub tests
rotifer-self-evolving-agent
Rank an Agent's Rotifer Genes against the Arena and swap in stronger ones, and create and run the local Agents built from those Genes. Invoked explicitly via /evolve — scan local capabilities, compare Genes, inspect fitness scores, replace weak ones with user approval (each replacement can be rolled back), write an Agent definition into the project (/evolve create-agent), and execute a local Agent's Genes in the WASM sandbox (/evolve run-agent). Not for capabilities outside Rotifer.
rotifer-guide
Entry point for Rotifer Protocol. Onboards a user to Rotifer Genes, scaffolds a Gene from a description, diagnoses a Gene's F(g) score or compile failure, searches the Rotifer Gene registry, upgrades a Gene's fidelity from Wrapped to Native, and submits a Gene to the Arena and follows its ranking. It works by proposing `rotifer` CLI commands; the ones that install software, send work to Rotifer's servers, publish a Gene or overwrite files wait for the user's approval. Meant to be invoked explicitly when working with Rotifer, or when unsure which Rotifer capability fits. Its scope is Rotifer Genes and the Rotifer CLI; onboarding, tutorials, troubleshooting or search for anything else are outside it.
rotifer-gene
The Gene manual for Rotifer Protocol — write a Gene's express function and phenotype schema, run the four-layer security audit before publishing, and migrate a Gene's fidelity from Wrapped to Hybrid or Native. Invoke explicitly when building, auditing, or upgrading a Rotifer Gene. Do NOT use for general code review, dependency auditing, or framework migration — every procedure here operates on Rotifer Genes, their phenotype schemas, and the Rotifer CLI, and nothing else.
rotifer-arena
Benchmark Rotifer Genes against each other in the Arena — import from ClawHub / local / scratch, compile, match opponents, run Arena evaluation, and produce a Markdown report with F(g) fitness and V(g) security grades. Invoke explicitly to compare or benchmark Rotifer Genes. Do NOT use for general benchmarking, load testing, or comparing anything that is not a Rotifer Gene or Agent.
rotifer-agent
Build a Rotifer Agent from Genes — decompose intent into capability units, pick Genes by Arena F(g), compose a Rotifer Genome, create the Agent and test it. Use when the user is working with Rotifer specifically: "Rotifer Agent", "compose Genes", "Rotifer Genome", "Gene composition", "rotifer agent create". Do NOT use for general agent frameworks, or when the words Seq / Par / Cond / Try appear as ordinary programming terms — in Rotifer those name Genome composition strategies, and this Skill applies only when the user is composing Rotifer Genes.