State Machine

Work on every state of a component on one page.

By

Jakub Krehel

Price

Free

State Machine is an agent skill by Jakub Krehel that renders every state of one component on a throwaway page, with mock data and a switcher, so you can work on each state.

What it does

  • Finds the states already in the code: loading, empty, error, and long lists, plus account and feature states like plan tiers and flags.

  • Feeds each state mock data at the data boundary.

  • Adds a switcher grouped in your product's own words, so every state is a keypress away.

  • Re-checks every state after each change.

  • Removes the page in one step when you say so.

When to use it

Reach for it when polishing a component whose empty, error, or permission states are hard to reach in the app.

How to get it

The skill is free on GitHub under the MIT license, in Jakub Krehel's skills repo. You call it by name, as /state-machine; your agent won't start it on its own.

more skills

Matt Pocock

Code Review

Matt Pocock

Review a branch against your standards and the spec.

Matt Pocock

Prototype

Matt Pocock

Answer a design question with throwaway code.

Jakub Krehel

Better Typography

Jakub Krehel

Set the type scale, spacing, and wrapping right.

Matt Pocock

Improve Codebase Architecture

Matt Pocock

Find the refactors that make a codebase easier to change.

State Machine

Work on every state of a component on one page.

By

Jakub Krehel

Price

Free

State Machine is an agent skill by Jakub Krehel that renders every state of one component on a throwaway page, with mock data and a switcher, so you can work on each state.

What it does

  • Finds the states already in the code: loading, empty, error, and long lists, plus account and feature states like plan tiers and flags.

  • Feeds each state mock data at the data boundary.

  • Adds a switcher grouped in your product's own words, so every state is a keypress away.

  • Re-checks every state after each change.

  • Removes the page in one step when you say so.

When to use it

Reach for it when polishing a component whose empty, error, or permission states are hard to reach in the app.

How to get it

The skill is free on GitHub under the MIT license, in Jakub Krehel's skills repo. You call it by name, as /state-machine; your agent won't start it on its own.

more skills

Matt Pocock

Code Review

Matt Pocock

Review a branch against your standards and the spec.

Matt Pocock

Prototype

Matt Pocock

Answer a design question with throwaway code.

Jakub Krehel

Better Typography

Jakub Krehel

Set the type scale, spacing, and wrapping right.

Matt Pocock

Improve Codebase Architecture

Matt Pocock

Find the refactors that make a codebase easier to change.

State Machine

Work on every state of a component on one page.

By

Jakub Krehel

Price

Free

State Machine is an agent skill by Jakub Krehel that renders every state of one component on a throwaway page, with mock data and a switcher, so you can work on each state.

What it does

  • Finds the states already in the code: loading, empty, error, and long lists, plus account and feature states like plan tiers and flags.

  • Feeds each state mock data at the data boundary.

  • Adds a switcher grouped in your product's own words, so every state is a keypress away.

  • Re-checks every state after each change.

  • Removes the page in one step when you say so.

When to use it

Reach for it when polishing a component whose empty, error, or permission states are hard to reach in the app.

How to get it

The skill is free on GitHub under the MIT license, in Jakub Krehel's skills repo. You call it by name, as /state-machine; your agent won't start it on its own.

more skills

Matt Pocock

Code Review

Matt Pocock

Review a branch against your standards and the spec.

Matt Pocock

Prototype

Matt Pocock

Answer a design question with throwaway code.

Jakub Krehel

Better Typography

Jakub Krehel

Set the type scale, spacing, and wrapping right.

Matt Pocock

Improve Codebase Architecture

Matt Pocock

Find the refactors that make a codebase easier to change.