State Machine
Renders every state of a component you choose on a throwaway page, with mock data and a switcher, so you can work on each state.
Install
/plugin marketplace add jakubkrehel/skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add jakubkrehel/skills --skill state-machinegit clone --depth 1 https://github.com/jakubkrehel/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/skills/state-machine ~/.claude/skills/state-machinePersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# State machine This skill takes one component and renders it on a throwaway page in every state it can be in. Mock data feeds each state, a switcher flips between them and the page is deleted in one step when you are done. It is a workbench, not a review. The page stays up while the user works on the visuals, one state on screen and every other a keypress away. Stacking hostile scenarios on one page for a single look is `break`, exploring alternative designs is `variant` and reviewing finished work is `interface-review`. ## 1. Scope one component One component per run: the audit log table, the network panel, the billing card. "The settings page" spans several, so list them and ask which one. Restate it in one sentence: what the component shows, where it renders in production and where its data comes from. ## 2. Find the states in the code The states are the branches the component already has. Read it and its data hooks for every one: | Kind | States | | --- | --- | | Data | Loading, empty, error, one item, a typical set, a set long enough to scroll or paginate, some requests resolved and others pending, stale data refetching | | Account | Plan tier, role and permission checks, an owner versus a member | | Feature | Flags, trials, limits reached, a disabled or locked feature | A state the code cannot reach is not a state. Do not add a branch to render one. Where the design shows a state the code lacks, list it as missing and leave it out.
Details
- Skill name
state-machine- Repository
- jakubkrehel/skills
- Path
skills/state-machine/SKILL.md- License
- MIT
- Repo updated
- 18 November 2026
FAQ
What does the State Machine skill do?
Renders every state of a component you choose on a throwaway page, with mock data and a switcher, so you can work on each state.
How do I install the State Machine skill?
Claude Code plugin: /plugin marketplace add jakubkrehel/skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is State Machine popular?
It lives in jakubkrehel/skills, which has 12,359 GitHub stars and 483 forks.
Related skills
Afk
12kjakubkrehel/skills
Works through a project while you're away, finding improvements and new ideas, building the best of them on a local branch and leaving a report for when you're back.
Better Accessibility
12kjakubkrehel/skills
Reviews and fixes keyboard and focus behavior, ARIA, accessible names, forms, screen-reader announcements, motion and zoom against WCAG 2.2.
Better Colors
12kjakubkrehel/skills
Builds and checks color systems by generating palettes, naming semantic tokens, converting between formats and measuring contrast.
Variant
12kjakubkrehel/skills
Builds multiple variants of a component you're working on and helps you iterate and pick one.
Ip As Logo
6.6ks1dashu/ip-as-logo-skill
Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color, and a dominant lower-left composition. Use when creating an animal, creature, robot, ghost, plant, object, or other character image, including when the agent should infer three product-relevant directions and propose six independent candidates for approval.
Brand Copy
13kgenspark-ai/genoffice
Turn product and audience information into multiple versions of taglines, selling points and brand story, delivered as Markdown
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.