
state-machine
Model component behaviour as explicit states, events, and transitions
by owl-listenerFree
Description
state-machine is an agent skill that models a UI component's behaviour as an explicit finite state machine. The agent defines the states the interface can be in, such as idle, loading, success and error, the events that cause a change, such as a click, a submit or a timeout, and the transitions between states. It also defines the actions that run during a transition, such as fetching data or showing a toast, and the guards, which are conditions such as isValid or hasPermission that must hold before a transition happens. The skill includes common flows as examples: a form that moves from idle through editing, validating and submitting to success or error, data fetching with retries, a login cycle, and a multi-step wizard that ends in review and completion. The aim is to eliminate impossible states and make behaviour predictable.…
Highlights
- Defines states, events, transitions and guards
- Covers form, data fetching, login and wizard flows
- Removes impossible UI states
- Makes component behaviour predictable and exhaustive
Ratings & Reviews
No ratings yet
Be the first to rate state-machine.
People also visit
state-machine FAQ
What is a state machine here?
A model of a component as a set of states such as idle, loading or error, with named events that move it between them.
Which flows does it show?
Forms, data fetching with retries, authentication and multi-step wizards.
How do I install it?
Run npx skills add https://github.com/owl-listener/designer-skills --skill state-machine in a terminal.
Which security audits has it passed?
Gen Agent Trust Hub Pass, Socket Pass, Snyk Pass.
What are the best state-machine alternatives?
Popular alternatives to state-machine include state-machine, principle-model-the-domain and micro-interaction-spec. See all state-machine alternatives



















