
state-machine
Renders every state of a component you choose on a throwaway page
by jakubkrehelFree
Description
state-machine is an agent skill that takes one component and renders it on a throwaway page in every state it can be in. You pick one component per run, such as an audit log table, a network panel or a billing card, and the skill restates in one sentence what the component shows, where it renders and where its data comes from. It then reads the component and its data hooks to find the states, which are the branches the code already has, and it feeds each state with mock data. A switcher on the page flips between the states, so one state is on screen while every other state is a keypress away. The page is a workbench for working on the visuals of each state, and it is deleted in one step when the work is done. The skill is distinct from the other skills in the collection: stacking hostile scenarios on one page for a single look belongs to break, exploring alternative designs belongs to variant, and reviewing finished work belongs to interface-review. It is installed with npx skills add https://github.com/jakubkrehel/skills --skill state-machine, and the skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passed.…
Highlights
- Renders each state of one component
- Mock data for every state
- Switcher to flip between states
- Throwaway page deleted when done
- Install with npx skills add
Ratings & Reviews
No ratings yet
Be the first to rate state-machine.
People also visit
state-machine FAQ
What does state-machine do?
It renders every state of one component on a temporary page, with mock data and a switcher, so you can work on each state.
How do I install it?
Run npx skills add https://github.com/jakubkrehel/skills --skill state-machine.
Can it handle a whole settings page?
No. It works on one component per run, and a request that spans several makes the agent list them and ask which to use.
How does it find the states?
By reading the component and its data hooks for the branches the code already has.
Is the page kept?
No. The skill says the page is deleted in one step when you are done.
What are its security audits?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passed.
What are the best state-machine alternatives?
Popular alternatives to state-machine include prototype, break and click-path-audit. See all state-machine alternatives
















