CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

statelyai/xstate-v6

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.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

README.md

XState v6 skill

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.

Install

npx skills add statelyai/skills --skill xstate-v6

The stately plugin also includes this skill. See Install for Claude Code and Codex.

Use

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:

  • finds the xstate version each workspace resolves, and hands off to the xstate-v5 skill for projects on v5
  • reads node_modules/xstate/docs/agents.md before writing code, then only the doc pages the task needs
  • checks the v6 rules that cause most mistakes, such as object-form transitions
  • verifies with the typechecker, the project's tests, and the xstate CLI (validate, simulate, test, replay)
  • migrates v5 code with @xstate/codemod and reports done only when verify exits 0

When xstate is not installed, the skill asks before adding it, since v6 is in beta.

Requirements

  • xstate 6.x (beta) in the project, or permission to read the xstate@beta tarball from npm

Related skills

README.md

SKILL.md

tile.json