What problem does it solve?
It solves the problem of building and maintaining Starworld game interfaces by providing a reliable workflow to create and edit InterfaceTemplate definitions, including HTML layout, AI response extraction, variable rendering, triggers, and context assembly.
Core Features & Use Cases
- InterfaceTemplate creation & modification: Define or update the full template structure (HTML Template, nested extraction rules, variable replacement rules, triggers, and context structure) for new game UI pages.
- AI response parsing via nested extraction: Use regex-based nested capture layers to turn unstructured AI output into structured variables.
- Rendering with variable replacement rules: Map extracted variables into HTML via append/replace rules, including media variables that must end with _asset.
- Trigger configuration: Bind user interactions or on-load events to variable updates and AI calls, optionally gated by execution conditions.
- Conversion workflow (TOML ↔ JSON): Edit TOML as the source of truth and generate JSON conversion artifacts using the provided convert.py script.
Quick Start
Use the game-template skill to create a new game interface template by preparing template.toml, response_format.toml, and trigger.toml under an example directory, then run the converter to produce template.json, response_format.json, and trigger.json.