simulation-state-machine

Manage Myelin simulator runtime state transitions via a dispatch function.

1|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Seth-arc/myelin-platform --skill simulation-state-machine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: simulation-state-machine
Source: https://github.com/Seth-arc/myelin-platform/tree/main/primary_build_source/docs/skills/2/mnt/user-data/outputs/simulation-state-machine
Command: npx skills add https://github.com/Seth-arc/myelin-platform --skill simulation-state-machine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust, centralized state management system for the Myelin simulator, ensuring consistent and predictable simulation progression and state handling.

Core Features & Use Cases

  • Authoritative State Contract: Defines the single source of truth for all simulation runtime data.
  • State Machine Transitions: Manages all state changes through a defined dispatch function, preventing direct mutation.
  • Step Gating Logic: Controls progression through simulation steps based on defined pass/fail criteria.
  • Use Case: When developing any part of the simulator's runtime, including step logic, session management, or error handling, this Skill must be loaded first to establish the correct state management contract.

Quick Start

Use the simulation-state-machine skill to start a new simulation session with the provided learner and tenant IDs.

Frequently Asked Questions about simulation-state-machine

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

FAQPage Schema
How do I manage simulator runtime state transitions without direct mutation?

Simulator runtime state transitions are managed through a defined dispatch function that enforces a strict contract between simulation layers, preventing direct state mutation and ensuring predictable progression.

What is step gating logic in simulation runtime management?

Step gating logic controls progression through simulation steps by evaluating defined pass/fail criteria, ensuring the runtime state machine only advances when specific conditions are met.

How do I start a new simulation session with learner and tenant IDs?

To start a new simulation session, load the state management skill first to establish the correct runtime contract, then initialize the session using the provided learner and tenant IDs.

Why do I need a centralized state contract for simulator session management?

A centralized state contract provides a single source of truth for all simulation runtime data, ensuring consistent and predictable progression across session management and interaction handling.

Can I use this state machine for custom simulation error handling?

Yes, when developing any part of the simulator's runtime including error handling, loading this skill first establishes the correct state management contract for all subsequent simulation logic.

What are the limitations of direct state mutation in simulation logic?

Direct state mutation bypasses the authoritative state contract and dispatch function, breaking the strict transition logic required for reliable simulation progression and step gating.