Skip to content
S

state-machine

Renders every state of a component you choose on a throwaway page

by jakubkrehelFree

#3860in AI Skills
0In stores

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 compon…

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

P

prototype

Throwaway code that answers a single design or logic question through an

AI Skills
Get
B

break

Renders a component you choose under every scenario

AI Skills
Get
C

click-path-audit

Trace every user-facing button/touchpoint through its full state change sequence

AI Skills
Get
B

baoyu-design

Create polished design artifacts as self-contained HTML: UI mockups

AI Skills
Get
S

storybookjs/storybook

Helps agents write and test Storybook stories for UI components

AI Skills
Get
C

component-spec

Specify one component — props, states, variants, accessibility, and usage rules

AI Skills
Get

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

Developer Stuff

Badges