Write, review, test, and migrate XState v6 machines and actors by reading the documentation that ships inside the installed xstate package. Use when a project depends on xstate 6 (including betas), when the user asks for XState v6, or when migrating XState v5 code to v6. For a project on xstate 5, use the xstate-v5 skill instead.
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
The xstate-v6 skill teaches coding agents to write, review, test, and migrate
XState v6 machines and actors. XState v6 ships its documentation inside the
xstate package, so the skill points the agent at the installed docs instead
of relying on memory or v5 examples.
npx skills add statelyai/skills --skill xstate-v6The stately plugin also includes this skill. See
Install for Claude Code and Codex.
Ask for XState v6 work in a project that depends on xstate 6:
Add a retry state to the upload machine.Migrate this machine from XState v5 to v6.The skill:
xstate version each workspace resolves, and hands off to the
xstate-v5 skill for projects on v5node_modules/xstate/docs/agents.md before writing code, then only the
doc pages the task needsxstate CLI
(validate, simulate, test, replay)@xstate/codemod and reports done only when verify
exits 0When xstate is not installed, the skill asks before adding it, since v6 is in
beta.
xstate 6.x (beta) in the project, or permission to read the xstate@beta
tarball from npmxstate 5