Coding

rotifer-guide

Try it

Route any Rotifer request to the right sub-capability — onboarding, scaffolding, diagnostics, search, or fidelity upgrade.

What it does

Rotifer Guide recognizes what the user wants to do with Rotifer Genes and routes them to the matching sub-capability: interactive onboarding walkthrough, scaffolding a Gene from a description, running diagnostics on F(g) or compile failures, searching the Cloud registry, or upgrading fidelity from Wrapped to Native. It contains no executable code of its own — it directs the assistant to run specific rotifer CLI commands, which may fetch from npm, read or write Gene files inside the project workspace, or query the public Rotifer API. Install, publish, and overwrite commands are proposed for user approval before running, never executed silently.

When to use it

  • Installing the rotifer CLI and running a template like `rotifer hello` for the first time
  • Scaffolding a new Gene from a natural-language description, or wrapping an existing SKILL.md
  • Diagnosing an F(g) = 0 score, a `rotifer compile` failure, or a publish timeout
  • Searching the Cloud registry for Genes that fit a task, or upgrading a Gene from Wrapped to Native fidelity

The skill document

Rotifer Guide — User Entry Point

This Skill handles intent recognition and workflow routing. Deep technical details are delegated to specialized Skills.

Prerequisites

Before using this Skill, ensure the Rotifer CLI is available:

npx @rotifer/playground --version

If you prefer MCP integration instead of CLI, add this to your MCP config:

{
  "mcpServers": {
    "rotifer": {
      "command": "npx",
      "args": ["@rotifer/mcp-server"]
    }
  }
}

No version pinning needed — both packages resolve to the latest release automatically.


Intent Router

Every row assumes the user is already asking about Rotifer. The signals below route within this Skill; they are not reasons to invoke it. A user asking "how do I get started" or "why is my score 0" without Rotifer in view is asking someone else.

User signal (in a Rotifer context)Sub-capabilityAction
What is a Gene / how does Rotifer work / new to RotiferonboardingInteractive walkthrough, or rotifer hello
Create a Gene / scaffold a Gene / wrap this as a GenescaffoldNatural-language scaffolding
F(g) is 0 / rotifer compile fails / rotifer publish failsdoctorrotifer doctor first, then the Gene
Find a Gene that / any Gene for / search the registryexplorerrotifer search
Wrapped to Native / upgrade fidelity / rewrite this GeneupgradeFidelity evolution

When the request is about Rotifer but the sub-capability is unclear, list all five and let the user choose. When the request is not about Rotifer, say so and stop — do not map it onto the nearest row.

SkillRelationshipWhen to route
genemodules/dev.mdDeep technical manual for scaffold / onboardingUser needs full development workflow details
genemodules/migration.mdDeep migration manual for upgradeAfter user confirms migration plan
rotifer-arena/SKILL.mdComparison & evaluation entryUser wants to compare Genes / run Arena
genome/SKILL.mdGene compositionUser wants to combine multiple Genes into an Agent

What this Skill does on your machine

It has no code of its own — it tells your assistant which rotifer commands to run. That is why its manifest declares process execution, filesystem read/write and outbound network access: every one of those is the CLI acting, not this Skill.

RunsThe rotifer CLI (@rotifer/playground), fetched from npm if not installed.
ReadsGenes and Agent definitions in the current project workspace.
WritesOnly what the commands below write — Genes into the project's genes/, Agent definitions into .rotifer/agents/. Nothing outside the project.
SendsCloud registry and Arena queries, to the public Rotifer API. Your code is not uploaded unless you run rotifer publish yourself.

Commands that install, publish or overwrite are proposed for your approval first, never run silently.


1. onboarding — Interactive Walkthrough

Phase 1: Environment Check

npx @rotifer/playground --version
rotifer doctor
rotifer list

If the CLI is missing: npm i -g @rotifer/playground, which installs the rotifer binary.

rotifer doctor checks the TypeScript→WASM toolchain (esbuild / javy). Run it first: without that toolchain rotifer compile fails at the WASM step, and the error looks like a code problem rather than a missing tool. It exits non-zero and prints the install line when something is absent.

Phase 2: Core Concepts

ConceptOne-linerAnalogy
GeneSelf-contained logic unit: express(input) → outputFunction
FidelityNative > Hybrid > Wrapped — higher = more secureCompiler optimization level
ArenaGenes compete for ranking via F(g) fitness scoreLeaderboard
DomainTwo-level category like content.grammarNamespace
phenotype.jsonGene metadatapackage.json
R(g) / V(g)Reputation score / Security scoreCredit rating

Phase 3: Hands-on Experience

Two paths — pick by what the user wants first, a result or an understanding.

Fastest result — rotifer hello:

rotifer hello

An interactive builder: pick one of six templates (quality-advisor, uiux-diagnosis, content-analysis, code-security, doc-qa, web3-toolkit), and it selects Genes, composes them, creates the Agent and runs it. Use this when the user wants to see Rotifer work before learning what a Gene is. rotifer hello --list-templates shows what is on offer; --template , --input , --file and --dir skip the prompts.

Full lifecycle — one command per concept:

rotifer init hello-world --domain content.greeting --fidelity Wrapped
rotifer test hello-world
rotifer compile hello-world
rotifer arena submit hello-world
rotifer arena list --domain content.greeting

After each step, explain the output and confirm the user understands before proceeding.

Phase 4: Next Steps

Recommend based on user background:

  • Has an existing SKILL.md → scaffold (rotifer wrap)
  • Wants to browse the ecosystem → explorer
  • Wants to dive deeper → route to gene skill (modules/dev.md)

2. scaffold — Natural-Language Scaffolding

This sub-capability is backend-backed. When network is available, scaffold uses the /api/playground/* endpoints on rotifer.ai for LLM-assisted Gene generation, V(g) scanning, and one-click Cloud publish. The CLI path remains as fallback.

Phase 1: Intent Extraction

Extract from the user's natural-language description:

ParameterExtraction methodDefault
nameGenerate kebab-case from descriptionMust confirm
domainInfer two-level domain from functionalityMust confirm
fidelityNeeds external API → Hybrid, pure computation → Native, quick prototype → WrappedWrapped

Phase 2: Confirm Parameters

Present inferred results to the user, wait for confirmation before executing.

Phase 3: Scaffold Generation

Path A — Web Studio (backend-backed, preferred when online):

Use the rotifer.ai Playground API for LLM-assisted generation:

1. POST /api/playground/generate  { prompt, domain }  → { source, phenotype }
2. POST /api/playground/scan      { source }           → { grade, findings }
3. POST /api/playground/publish   { source, phenotype } → { published, grade }

The Web Studio UI at https://rotifer.ai/studio/ provides a visual 3-step flow (Describe → Create → Publish) that calls these same endpoints.

This path sends the user's text to rotifer.ai. generate transmits the description they wrote; scan transmits the generated source; publish transmits source and phenotype and makes the Gene public. Say so before using it, and offer Path B when the description contains anything the user would not post publicly — Path B is entirely local and produces the same scaffold without a network call.

Path B — CLI (local, always available):

rotifer init  --domain  --fidelity 

From an existing SKILL.md:

rotifer scan --skills
rotifer wrap  --from-skill 

From ClawHub:

rotifer wrap  --from-clawhub 

Phase 4: Verification

rotifer test 
rotifer compile 

After compilation passes, prompt: publish to Cloud (rotifer publish) or submit to Arena (rotifer arena submit).

rotifer publish defaults to uploading to the Rotifer Cloud Registry. Disable with rotifer config set default-publish false or ROTIFER_AUTO_PUBLISH=false.

Offline Fallback

If the Playground API is unreachable, display:

Network unavailable. Use rotifer init for local-only Gene creation.

Then follow Path B (CLI).

For deeper development details (inputSchema design, express function implementation) → route to gene skill (modules/dev.md).


3. doctor — Diagnostics & Repair

Decision Tree

User reports a problem
 |
 +-- F(g) = 0 or abnormally low score
 |   +-- Does rotifer test  pass?
 |   |   +-- Fails → Check if express() return value matches outputSchema
 |   |   +-- Passes → Check if phenotype.json domain is reasonable
 |   +-- Are there competitors in the same domain?
 |       +-- Yes → Analyze competitor strengths, suggest optimizations
 |
 +-- Publish failed
 |   +-- Does rotifer compile  succeed?
 |   |   +-- Fails → rotifer doctor first, then syntax errors / missing dependencies
 |   |   +-- Succeeds → rotifer whoami — signed in at all, and as whom?
 |   |                  Then check network connectivity
 |   +-- Is phenotype.json format valid?
 |
 +-- Compilation failed
 |   +-- FIRST: rotifer doctor — is the TS→WASM toolchain even installed?
 |   |   +-- Reports esbuild / javy missing → install those; the code is not the problem
 |   +-- Check the exported express function signature in index.ts
 |   +-- Check inputSchema / outputSchema in phenotype.json
 |   +-- Check if fidelity declaration matches actual code
 |       +-- Declared Native but has fetch calls → Change to Hybrid or remove network calls
 |
 +-- Runtime error
     +-- rotifer test  --verbose
     +-- Check if input conforms to inputSchema
     +-- Check if express() handles edge cases correctly

Common Diagnostic Commands

rotifer doctor                       # TS→WASM toolchain — run this before blaming the code
rotifer test 
rotifer vg                     # V(g) security scan — grade A–D, or ? for a code-free Skill
rotifer list
rotifer arena list --domain 
rotifer arena watch          # live ranking movement (Ctrl+C to stop)

rotifer doctor takes no arguments and checks one thing: whether esbuild and javy are present and reachable on PATH. A missing toolchain surfaces as a compile failure that reads like a code error, so it is the cheapest first move on any "compilation failed" report.

Quick Reference

SymptomRoot causeFix
F(g) = 0express() returns empty or format mismatchFix return value to match outputSchema
Compilation failedTypeScript type errorCheck express function signature
Publish timeoutCloud credentials expiredrotifer whoami to check, then rotifer login
Arena ranking droppedStronger competitor appeared in same domainrotifer arena watch to see who moved, then optimize or upgrade fidelity
Fidelity mismatchNative declared but has fetch callsRemove network calls or change declaration to Hybrid
compile fails but the code looks fineesbuild / javy missing from the toolchainrotifer doctor, then install what it names

Phase 1: Understand the Need

Extract from user description: functionality keywords, target domain, fidelity preference.

rotifer search is the ecosystem search — it queries the Cloud registry, which is where Genes published by other people live. arena list ranks what is already in the Arena and list shows what is on this machine; all three answer different questions, so pick by what the user asked for.

rotifer search                         # the ecosystem — Cloud registry
rotifer search  --domain  --fidelity Native --sort downloads
rotifer arena list --domain           # ranked competitors in one domain
rotifer list                                  # what is already installed here

Follow up on a specific result:

rotifer info                # full details, local or Cloud
rotifer reputation          # R(g) — the reputation column below
rotifer stats               # downloads: 7d / 30d / 90d / all time
rotifer versions @owner/        # version history chain
rotifer compare         # 2–5 published Genes, side by side

rotifer reputation @username scores a creator instead of a Gene, and --leaderboard ranks creators.

Phase 3: Result Analysis

Display search results in a table:

FieldDescription
nameGene name
domainCategory
fidelityNative / Hybrid / Wrapped
F(g)Fitness score
R(g)Reputation score

Phase 4: Recommendation

  • Found a matching Gene → suggest install: rotifer install
  • Found a partial match → suggest fork and modify, or submit an Arena challenge (route to rotifer-arena/SKILL.md)
  • Nothing found → suggest creating a new Gene (route to scaffold)

5. upgrade — Fidelity Evolution

Phase 1: Assess Current State

rotifer list

Check the target Gene's phenotype.json — confirm current fidelity and express() implementation.

Phase 2: Migration Path Decision

CurrentTargetConditionPath
WrappedNativeFunctionality can be implemented as pure computationRewrite express(), remove all external calls
WrappedHybridMust call external APIsAdd WASM shell + allowedDomains whitelist
HybridNativeCan internalize API dependenciesReplace API calls with local algorithms

Phase 3: Execute Migration

After confirming the migration plan, route to gene skill (modules/migration.md) for the full migration workflow.

Phase 4: Verification

rotifer test 
rotifer vg 
rotifer compile 
rotifer arena submit 
rotifer arena watch 

A fidelity upgrade rewrites the Gene's code, so the V(g) security grade it earned before the rewrite no longer describes it — rotifer vg re-scans and returns A–D (or ? when there is no src/). Compare F(g) before and after to confirm ranking continuity; arena watch shows the move happening rather than requiring a second arena list.

Questions people ask

Does this skill run code itself?
No. It routes to the rotifer CLI (`@rotifer/playground`) and tells it which commands to run. The process execution, filesystem access, and network calls come from the CLI, not from this skill.
What if the user is not asking about Rotifer?
The skill says so and stops. It does not map non-Rotifer requests onto Rotifer capabilities, and explicitly excludes general onboarding, tutorials, troubleshooting, or search.
How is rotifer-guide different from rotifer-arena or genome?
rotifer-guide is the entry point for Rotifer Genes and routes among five sub-capabilities. rotifer-arena handles comparison and Arena evaluation, genome composes multiple Genes into an Agent. Use rotifer-guide first when unsure which Rotifer capability applies.

Related skills

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.

by byungkyu800 installs42 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

More from xiaoba-dev

Browse all skills

Build a Rotifer Agent from existing Genes through a 7-phase workflow of decomposition, composition, creation, and testing.

by xiaoba-dev14 installs

Compare two Rotifer Genes head-to-head and get a Markdown report with F(g) fitness and V(g) security grades.

by xiaoba-dev14 installs

Rank an Agent's Rotifer Genes against the Arena and swap in stronger ones. Invoked explicitly via /evolve — scan local capabilities, compare Genes, inspect fitness scores, and replace weak ones with user approval. Not for capabilities outside Rotifer.

by xiaoba-dev17 installs

Cross-vendor adversarial review. WARNING — this sends your brief, and any source files you approve, to a model hosted by a THIRD-PARTY vendor, where it stays in that vendor's session history under their retention terms. Ship a plan, proposal, or design to a model from a DIFFERENT vendor to attack it; every objection carries a verifiable anchor; the defender rules with an evidence tag on each ruling; the final round classifies into still-disputed / unresolved / verified-consensus instead of forcing agreement; a fresh-session judge is mandatory whenever the outcome looks too clean. Invoke only when the user explicitly asks for an adversarial review by a model from another vendor. One model role-playing several experts is not this skill.

by xiaoba-dev2 installs

Session knowledge distillation: assign what you just learned in this session into an agent's four-layer persistent knowledge base (rule / memory / skill / decision record). The core is four disciplines — search before adding, pick the right layer, guard against bloat, and run a hygiene pass before landing anything. Fits agent workflows that already have (or want to build) these four layers; this is not a general note- taking tool. Invoke explicitly at the end of a session to consolidate what was learned.

by xiaoba-dev2 installs

Installs a documentation governance architecture in a project and diagnoses what it is missing. Three actions: audit diagnoses the current state against seven components (source-of-truth layering / decision records / cascade discipline / planning system / checkpoints bound to actions / gates / incident traceability); init installs what is missing (config, a script copy, a pre-commit gate, two Claude Code hooks, decision and plan templates); check keeps verifying that what the docs claim about reality still holds (TODOs left hanging too long, cascade memos never carried out, plan status that doesn't match reality, broken references, broken links, § section references pointing to the wrong place, missing index entries, broken tables, endpoints the docs declare but the code doesn't have). The framework was distilled from the documentation system of a large protocol project, and every check is tied to a real incident. ⚠️ init modifies the repository and installs hooks that keep running aft

by xiaoba-dev1 installs