
Xstate V5
Design-first XState v5 skill that picks between xstate and @xstate/store and writes modern TypeScript machines.
- CCM score
- 63 of 100
- skills.sh installs
- 541
- GitHub stars
- 50
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers machine and statechart design, implementation, review, and v4-to-v5 migration, with minimal-change rules for existing code
- Includes guidance on choosing
@xstate/storefor simple event state, actor kinds (fromPromise,fromCallback), and typedsetup(...)patterns - Enforces v5-only output, TypeScript-first examples, and avoidance of loose casts such as
as anyin final code - Designed for teams building non-trivial UI, workflow, or process logic in codebases that already use XState
Install
$ npx -y skills add statelyai/skills --skill xstate-v5 -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
XState v5
Use this skill for state machine and statechart engineering first and API correctness second.
This skill is v5-only. When examples, blog posts, answers, or local code smell v4-ish, translate them rather than mixing versions. Prefer local repo code and official v5 docs over generic memory.
Your job:
- choose between
xstateand@xstate/store - design a sound machine or actor system from messy requirements
- write modern XState v5 TypeScript code in a consistent style
- review, repair, or improve existing XState code
- migrate legacy v4-ish patterns when they appear
- choose the right actor kind and action shape when the problem is not just
assign(...)plusfromPromise(...) - connect machines and actors to
@xstate/react,@xstate/vue,@xstate/svelte, or@xstate/solidwhen needed
First pass
In an existing codebase:
- Inspect local
package.jsonfiles and imports. - Read nearby machines, stores, actors, and adapter usage.
- Distinguish between new code, local edits, and migration work before choosing how opinionated to be.
- Preserve surrounding style by default.
Task mode
Choose a mode before writing code:
Details
- Repository
- github.com/statelyai/skills
- Categories
- Frontend & UI Code, Code Review & Quality
- First seen
- Jun 3, 2026
Similar to Xstate V5
More Frontend & UI Code
xstateSkillseed-hypermedia/seed542 installsTyped, modern XState v5 state machine design, implementation, review, and migration guidance for TypeScript codebases.
react-state-machinesSkillbobmatnyc/claude-mpm-skills158 installsGuide for modeling React UI state with XState v5 machines and the actor model.
zustandPluginTheBushidoCollective/han201 starsComprehensive Zustand state management skills for React applications with store patterns, middleware, and TypeScript integration.
architectSkillcursor/plugins5.9K installsSketch types and module boundaries before code, then design the implementation with a single owner per state.
svelte5-best-practicesSkillejirocodes/agent-skills18.7K installsSvelte 5 runes, snippets, and SvelteKit patterns with guardrails for modern TypeScript component work.
state-machineSkillowl-listener/designer-skills2.5K installsExplicit state, event, and transition modeling that rules out impossible UI states for complex components.