Skip to content

World Spec

The World Spec is a complete technical reference for Yumina's world schema. It's designed for two audiences:

  1. AI coding agents (Claude Code, Cursor, ChatGPT) — feed them this spec so they can generate valid world schemas
  2. Advanced creators who want to understand the full system

How to Use This

With an AI coding tool

Download the full spec as a single markdown file and add it to your AI's context:

  • Claude Code: Place it in your project directory, or paste it into the conversation
  • Cursor: Add it as a reference file
  • ChatGPT: Paste the relevant sections into your prompt

Then describe what you want:

"Using the Yumina world spec, create a survival horror world with health, sanity, and hunger tracking. Include a character named Dr. Chen who is secretly antagonistic. Add a custom UI with a dark medical theme."

The AI will generate a valid world schema JSON you can import into Yumina.

As a reference

Browse the sections in the sidebar to look up specific features — entry sections, variable types, directive syntax, rule triggers, or the custom UI API.

Spec Sections

SectionWhat It Covers
World SchemaTop-level WorldDefinition structure, all fields
Entries & SectionsEntry types, sections, keywords, matching, official presets
Variables & DirectivesTypes, operations, directive syntax, dot-path updates, behavior rules
Rules & ReactionsTriggers, conditions, actions, system effects, event patterns
MacrosAll macro placeholders and their replacements
Custom UIrootComponent, useYumina() API, sandboxing, built-in components
AudioTrack types, AI directives, playlists, conditional BGM
Full DownloadSingle-file spec for AI agents