skill-to-gene

v1.0.0
localskills install rotifer-protocol/skill-to-gene
0 downloads
Created Mar 11, 2026
Alex
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?

SkillGene
UpdatesManual — you edit, you pushAutonomous — Genes mutate and compete
QualityTrust the authorProven in Arena — fitness-ranked
RedundancyMultiple skills doing the same thingArena selects the best, eliminates the rest
SafetyHope for the bestL0 immutable constraint layer — cannot be bypassed
CompositionCopy-paste between skillsAlgebraic: Seq / Par / Cond / Try operators
IsolationRuns in your processWASM sandbox — zero trust execution

Get started (30 seconds)

npm install -g @rotifer/playground
rotifer init my-project && cd my-project

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-id>        # Install to your project
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"}'
OperatorWhat it does
SeqPipeline: A → B → C
ParParallel: run all, merge results
CondBranch: pick Gene based on input
TryFallback: primary with recovery

Full CLI

CommandDescription
rotifer initInitialize project with Genesis Genes
rotifer scanFind gene candidates in source code
rotifer wrapConvert function to Gene
rotifer testTest in WASM sandbox
rotifer compileCompile TS → WASM → Rotifer IR
rotifer arena submitSubmit to Arena
rotifer arena listView rankings
rotifer publishPublish Gene to Cloud
rotifer searchSearch Cloud registry
rotifer installInstall from Cloud
rotifer agent createBuild Agent from Genes
rotifer agent runExecute Agent pipeline

Links