/02. aio-xstate
PLUGINSInstall:
/plugin install aio-xstate@aiocean-pluginsยทv1.0.8
aio-xstate
XState v5 strict ruleset for TypeScript state machines. setup().createMachine() patterns, actor types, design-first planning, anti-god-machine enforcement, and canonical patterns.
Install
/plugin install aio-xstate@aiocean-plugins
What It Does
- Design-first planning: model states and transitions before writing code
- Types-first implementation with
setup().createMachine() - Actor types: promise, callback, observable, and child machine actors
- Anti-god-machine enforcement: guidance for decomposing oversized machines
- Canonical XState v5 patterns and migration notes from v4
Requirements
- TypeScript 5.0+
Skills (1)
- aio-xstate โ Implement XState v5 state machines with strict patterns โ setup().createMachine(), actors, and TypeScript typing.