Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AIScientists Dev WorldSeed AI Scene Generation

From Leeroopedia
Knowledge Sources
Domains LLM, Configuration
Last Updated 2026-10-26 18:00 GMT

Overview

An AI-assisted scene creation process where a Claude Code skill guides an LLM to generate a WorldSeed scene config (YAML + UI JSON) from a natural language world description, using reference documentation, design patterns, and preset catalogs as grounding context.

Description

Scene creation in WorldSeed can be done by AI generation or hand-crafting. The AI path uses the `create-world` skill — a Claude Code skill that instructs an LLM agent to:

  1. Read the skill instructions: Understand what WorldSeed is, the output format (two files: scene YAML + UI JSON), and the process.
  2. Study reference docs: The skill references `SCENE_CONFIG.md` (full schema), `SCENE_DSL.md` (DSL expressions), `SCENE_DESIGN.md` (action design, resource modeling, urgency math), `character-guide.md`, `design-patterns.md`, `preset-catalog.md`, and `template.yaml`.
  3. Generate YAML: Produce a scene config with sections: scene, entities, agents, actions (with params, preconditions, effects, dm), consequences, auto_tick, perception, narrator, director.
  4. Generate UI JSON: Produce a UI config for the frontend dashboard.
  5. Validate: Run `worldseed validate` to check the config.

The hand-crafting path uses the same reference docs but is a manual editing process. The `SceneConfig` Pydantic schema validates the YAML at load time.

Usage

Use this principle when creating new scenes. The create-world skill is invoked through Claude Code's skill system. Hand-crafting uses `configs/template.yaml` as a starting point with every key commented.

Theoretical Basis

AI scene generation follows a skill-guided generation pattern:

# Abstract process (NOT real implementation)
# 1. User provides natural language description
description = "A teahouse in ancient China where four strangers meet"

# 2. AI agent reads skill instructions + references
skill = read("skills/create-world/SKILL.md")
refs = [read("configs/SCENE_CONFIG.md"), read("configs/SCENE_DSL.md"), ...]

# 3. Generate config
yaml_content = llm.generate(scene_config_schema, description, refs)
ui_json = llm.generate(ui_config_schema, description, refs)

# 4. Validate
config = SceneConfig.model_validate(yaml.safe_load(yaml_content))
result = validate(config)

The skill system uses frontmatter (name, description) for skill discovery and a markdown body for instructions. The AI agent has access to all reference files as grounding context.

Practical Guide

  • Start with the `create-world` skill for new scenes
  • Use `configs/template.yaml` for hand-crafting — every key is commented
  • Always validate with `worldseed validate --config <path>` before launching
  • Reference `SCENE_DESIGN.md` for action design and resource modeling patterns
  • Use presets from `preset-catalog.md` to compose common patterns

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment