This is for working with XState v5 state machines and statecharts in TypeScript. It knows the difference between when you actually need a state machine versus when @xstate/store is enough, and it won't over-engineer simple problems. The skill handles design, implementation, code review, and v4-to-v5 migrations. It prefers sketching the machine shape first when requirements are fuzzy, uses modern setup patterns for new code, and knows to preserve existing style when editing legacy machines. Good for modeling non-trivial UI flows, async workflows, or any system with meaningful finite modes. It understands actors, guards, parallel states, and how to connect machines to React, Vue, Svelte, or Solid.

skills.sh installs
524
GitHub stars
50
last updated
Aug 21, 2026

Install

$ npx -y skills add statelyai/skills --skill xstate-v5 --agent claude-code

Installs into .claude/skills of the current project.

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 xstate and @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(...) plus fromPromise(...)
  • connect machines and actors to @xstate/react, @xstate/vue, @xstate/svelte, or @xstate/solid when needed

First pass

In an existing codebase:

  1. Inspect local package.json files and imports.
  2. Read nearby machines, stores, actors, and adapter usage.
  3. Distinguish between new code, local edits, and migration work before choosing how opinionated to be.
  4. Preserve surrounding style by default.

Task mode

Choose a mode before writing code:

Sponsors

Details

Repository
github.com/statelyai/skills
Categories
Git & Pull Requests, Code Review & Quality, Design & UI/UX
First seen
Jun 3, 2026
1artivilla avatarramsartivilla/agents-configRun accessibility and visual design review on components. Use when reviewing UI code for WCAG compliance and design issues.523skills.sh installs
2davila7 avatarresearch-grantsdavila7/claude-code-templatesWrite competitive research proposals for NSF, NIH, DOE, and DARPA. Agency-specific formatting, review criteria, budget preparation, broader impacts, significanc523skills.sh installs
3jeffli1993 avatarseo-audit-fulljeffli1993/seo-audit-skillAdvanced full SEO audit skill. Runs its own full workflow from local scripts, including the basic SEO checks plus PageSpeed, social metadata, and advanced revie520skills.sh installs
4evoscientist avatarpaper-writingevoscientist/evoskillsGuides writing academic papers section by section using an 11-step workflow with LaTeX templates and counterintuitive writing tactics. Covers Abstract, Introduc518skills.sh installs
5longbridge avatarlongbridge-corporate-eventslongbridge/skillsCorporate event-driven analysis via Longbridge Securities — captures and classifies events that create pricing dislocations: major-shareholder increases/decreas517skills.sh installs
6dotneet avatarprompt-improverdotneet/claude-code-marketplaceA skill for improving prompts by applying general LLM/agent best practices. When the user provides a prompt, this skill outputs an improved version, identifies 514skills.sh installs