Skip to content

Typed, modern XState v5 state machine design, implementation, review, and migration guidance for TypeScript codebases.

CCM score
57 of 100
skills.sh installs
542
GitHub stars
59
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers when to choose @xstate/store versus XState, plus modeling questions for states, context, events, guards, and actors
  • Includes preferred v5 patterns such as setup(...), named actions and guards, tags for UI semantics, and fromPromise versus fromCallback selection
  • Enforces v5-only translation during migrations and a smallest-safe-change rule for local edits, avoiding unrequested refactors
  • Designed for teams maintaining XState machines alongside @xstate/react hooks and Seed's shared model packages

Install

$ npx -y skills add seed-hypermedia/seed --skill xstate -y

Installs 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.

In Seed, the main repo currently uses xstate@5.19.2 and @xstate/react@4.1.3, especially under frontend/packages/shared/src/models/**. Read nearby Seed machines and hooks before editing them, particularly document-machine.ts, document-card-cleanup-machine.ts, use-document-machine.ts, use-editor-gate.ts, and React usage of useActorRef(...), useMachine(...), and useSelector(...).

Your job:

Details

Repository
github.com/seed-hypermedia/seed
Category
Frontend & UI Code
First seen
Jun 3, 2026

Similar to Xstate

More Frontend & UI Code