CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

statelyai/xstate-v5

Design, implement, review, and migrate XState v5 state machines and statecharts in TypeScript using modern v5 patterns. Use this whenever the user mentions XState, actors, state machines, statecharts, guards, transitions, workflows, or Stately, or is modeling non-trivial UI/app/process logic in a codebase that uses XState. Prefer a short machine sketch before code when requirements are fuzzy. If the problem is too simple for a state machine, say so and recommend @xstate/store instead.

Quality

91%

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

Quality

Scored by GLM 5.3

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong, disciplined instruction-style skill body: it covers tool choice, task modes, modeling heuristics, preferred v5 patterns, review guidance, migration, persistence, and a final self-check, all with concrete API names and no filler. Its main weaknesses are cross-section repetition of the same design rules (costing tokens) and the absence of any inline runnable example or a testing feedback loop, with concrete code living one reference level away.

Suggestions

Deduplicate guidance that appears in multiple sections (parallel-region reenter rules, params coherence in assign actions, child-actor decomposition, derivable booleans in context) by stating each rule once and cross-referencing it from the Modeling questions, Preferred v5 patterns, and Review checklists.

Include one small inline setup({...}).createMachine({...}) snippet in the body so the preferred style is executable without opening references/examples.md.

Add a brief verify step to the Workflow section (e.g., re-check the Final self-check list after edits, or run a quick transition smoke test when tests exist) to close the missing feedback loop.

DimensionReasoningScore

Conciseness

The body is dense and opinionated with zero concept-teaching padding ("This skill is v5-only. When examples... smell v4-ish, translate them"). However, several items repeat across sections — parallel-region reenter guidance appears at lines 104 and 152, params coherence at 109 and 151, child-actor decomposition at 88/114/154, and derivable-booleans-in-context at 80/105/149 — which is more than minor trimming, so it does not reach score 5.

4 / 5

Actionability

Concrete API surfaces are named throughout (setup({...}).createMachine({...}), assertEvent(...), actor.getPersistedSnapshot(), machineSetup.emit(...)) and the migration mappings are copy-paste-ready (cond -> guard, schema -> types, interpret(...) -> createActor(...)). It stops short of score 5 because the body contains no inline executable code (examples are deferred to references) and some style directives are judgment-based ("when it improves consistency").

4 / 5

Workflow Clarity

Clear, ordered sequences exist for every task mode (First pass 1-4, Workflow sketch-then-code, task-mode selection before code, Output format 1-4) plus an explicit "Final self-check" validation checklist before answering. It is not score 5 because there is no execute-test-retry feedback loop: testing guidance is explicitly deferred unless the user asks.

4 / 5

Progressive Disclosure

The body is a well-organized overview that points to five real, distinctly scoped reference files (examples.md, advanced-patterns.md, observables-and-inspection.md, adapters.md, v4-to-v5-quick-ref.md), each clearly signaled ("See references/examples.md for canonical code shapes") and exactly one level deep — the references contain only external URLs, no nested .md chains. This matches the clear-overview anchor.

5 / 5

Total

17

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: it names the domain and four concrete capabilities, gives explicit "Use this whenever..." trigger guidance with comprehensive natural keywords including Stately, and even encodes boundary behavior (recommending @xstate/store for simple problems). It is concise, third-person, and clearly distinguishable from other skills.

DimensionReasoningScore

Specificity

"Design, implement, review, and migrate XState v5 state machines and statecharts in TypeScript" lists four concrete actions plus additional directives ("Prefer a short machine sketch before code", "recommend @xstate/store instead"), matching the comprehensive-coverage anchor. The action list spans the skill's full job range with no gaps, so it is not score 4.

5 / 5

Completeness

It explicitly answers both "what" ("Design, implement, review, and migrate XState v5 state machines and statecharts in TypeScript") and "when" ("Use this whenever the user mentions XState, actors, state machines, statecharts, guards, transitions, workflows, or Stately") with concrete trigger phrases, exactly matching the score-5 anchor.

5 / 5

Trigger Term Quality

The trigger list "XState, actors, state machines, statecharts, guards, transitions, workflows, or Stately" covers the natural terms a user would say when they need this skill, including the vendor name Stately. No common variation or synonym is missing, so it is not score 4.

5 / 5

Distinctiveness Conflict Risk

It claims a clear niche (XState v5 specifically, TypeScript) and even disambiguates against @xstate/store. The standalone word "workflows" is mildly generic but the broader trigger is qualified by "in a codebase that uses XState", keeping conflict risk minimal; it does not fall to the minor-overlap anchor 4.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

On this page