Fizz ships an installable agent skill for the core runtime and the React integration.
This skill is optimized for agents, not as a replacement for the normal API docs. Its job is to help coding agents recognize when a task should use Fizz patterns and then apply the library consistently.
Install the skill from skills.sh with:
npx skills add tdreyno/fizz- Core
@tdreyno/fizzstate-machine modeling - Runtime setup with
createInitialContext(...),createRuntime(...),beforeEnter(...), andenter() - Async and scheduling helpers such as
startAsync(...),requestJSONAsync(...), timers, intervals, and frame-based work - React integration through
@tdreyno/fizz-reactanduseMachine(...)
The published skill intentionally focuses on:
@tdreyno/fizz@tdreyno/fizz-react
It intentionally excludes:
@tdreyno/fizz-svelte- application-specific patterns from
react-example/ - general non-Fizz architecture advice
Agents should reach for this skill when a task involves:
- creating or refactoring a Fizz machine
- reviewing Fizz transitions, actions, or effects
- wiring a runtime correctly
- adding async request flows or scheduled behavior
- writing or reviewing tests for Fizz machines and runtimes
- integrating an existing machine into React with
useMachine(...)
The skill keeps the top-level guidance short and points agents to deeper reference files only when they need more detail.
After the skill is installed, compatible agents can use it automatically when a task matches the Fizz domain. In practice that means the agent should:
- model workflows with explicit Fizz states and actions
- preserve the runtime lifecycle Fizz expects
- use the built-in async and scheduling helpers instead of ad-hoc alternatives
- prefer controlled runtime drivers for deterministic async and timer tests
- keep React components thin when a Fizz machine is already the source of truth