game-template

Create and modify Starworld InterfaceTemplate game UI definitions from HTML templates.

Updated May 6, 2026
One-click install
npx skills add https://github.com/TsukimiRini/moyo-skills --skill game-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-template
Source: https://github.com/TsukimiRini/moyo-skills/tree/main/game-template
Command: npx skills add https://github.com/TsukimiRini/moyo-skills --skill game-template

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about game-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a game UI template in Starworld?

To create a Starworld game UI template, define your HTML layout, nested AI extraction rules, variable replacement rules, triggers, and context structure in TOML files, then run the converter script to generate JSON artifacts.

How does regex extraction structure AI responses for game interfaces?

Regex extraction uses nested capture layers to parse unstructured AI output into structured variables. These variables are then mapped into the HTML template using append and replace rendering rules.

Can I use TOML to configure interface triggers and variable replacement rules?

Yes, TOML is the source of truth for configuring interface triggers and variable replacement rules. You edit TOML files and use the provided convert.py script for bidirectional TOML to JSON conversion.

What are the naming requirements for media variables in Starworld HTML templates?

Media variables in Starworld HTML templates must end with the _asset suffix. This convention ensures proper handling within the variable replacement and rendering workflow.

How do I bind user interaction triggers to variable updates in an interface template?

You bind user interaction triggers by defining them in the trigger configuration TOML, mapping on-load events or interactions to variable updates and AI calls, optionally gated by execution conditions.

Do I need to edit JSON directly when modifying Starworld interface templates?

No, JSON is generated as a conversion artifact. You should edit the TOML files as the source of truth for the interface template and run the converter to produce the required JSON files.