Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

state-machine

Skill by jakubkrehel

Renders every state of one chosen component on a throwaway page, with mock data and a switcher. It is for developers who want to work on the visuals of each state.

  • Score 94
  • 13k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install state-machine

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jakubkrehel/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/state-machine ~/.claude/skills/state-machine

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install state-machine in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

State machine is an agent skill that takes one component and renders it on a throwaway page in every state it can be in. The states come from the branches the component and its data hooks already have, such as loading, empty, error, plan tier and feature flags. Mock data feeds each state, and a switcher flips between them through a __state search param.

The page is a scratch route inside the app that imports the real component without editing it. Data is supplied through props or the app's own data seam, and the whole setup is removed by deleting one folder. The skill is a workbench for working on each state's visuals, not for reviewing finished work. It suits developers who want to change how a component looks in every state.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scope one componentPicks one component per run and restates what it shows, where it renders and where its data comes from.
  • Find the states in codeReads the component and its data hooks to list the states it can actually reach, grouped by kind.
  • Build a throwaway pageCreates a scratch route that renders the real component in a container as wide as it is in production.
  • Feed mock data per stateSupplies fixtures at the data boundary through props or the app's data seam, without editing the component.
  • Add a state switcherAdds a grouped list, or a select where the list does not fit, that flips the __state search param.
  • Confirm and hand overChecks that every state shows mock data in a browser, then hands over the URL, state list and switcher keys.
  • Remove the setupDeletes the page folder and any approved seams, then searches the codebase for leftover route and fixture names.

What you need

  • A browser to check each state
  • A project with the component to render
  • A framework that splits server and client components, such as Next.js, for the client directive

Try asking

  • Use state-machine on the audit log table and list its states
  • Build the throwaway states page for the billing card component
  • Remove the state-machine page and fixtures for the settings view

Good to know

  • States the code cannot reach are not added, even if a design shows them.
  • Adding a data seam that needs editing the component requires the user's approval first.
  • Changing how a state looks is a separate request after the handover.
  • The skill is for working on states, not for reviewing finished work.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/state-machine/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • agents/openai.yaml177 B
  • switcher.md7 KB

Alternatives to state-machine

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

state-machine: common questions

What is the state-machine skill for?

It renders every state of one component on a throwaway page with mock data, so each state can be worked on. A switcher moves between states.

How does it decide which states to show?

It reads the component and its data hooks for the branches the code already has, such as loading, empty, error and plan tier. States the code cannot reach are left out.

How is the test page removed afterwards?

The page, fixtures and switcher live in one folder, so removal is one delete. The skill then searches the codebase for leftover route and fixture names.

How do I install state-machine?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is state-machine free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is state-machine safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to state-machine?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

state-machine Install

Add to stack

Loading.