/harness-claude:xstate-visualizationfrom harness-claude
Visualizes and inspects XState state machines at design time and runtime with Stately Studio, Inspector, and VS Code extension.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:xstate-visualization still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Visualize and inspect XState machines at design time and runtime with Stately Studio, Inspector, and VS Code extension
// Add runtime inspection to a React app
import { createBrowserInspector } from '@stately/inspect';
const inspector = createBrowserInspector();
// Option 1: Global inspection (all actors)
import { useMachine } from '@xstate/react';
const [state, send] = useMachine(myMachine, {
inspect: inspector.inspect,
});
// Option 2: Inspect specific actors (v5)
import { createActor } from 'xstate';
const actor = createActor(myMachine, {
inspect: inspector.inspect,
});
actor.start();
// Node.js inspection (opens in browser)
import { createBrowserInspector } from '@stately/inspect';
const inspector = createBrowserInspector({
url: 'https://stately.ai/inspect',
});
// Pass inspector.inspect to actor options
Stately Studio features:
@stately/inspect setup:
npm install @stately/inspect
The inspector opens a new browser tab (or panel) showing the live statechart with:
VS Code extension:
createMachine to see an inline diagramDesign-first workflow:
What to look for in the visualization:
Production considerations: Disable the inspector in production builds. Use environment variables:
const inspector = process.env.NODE_ENV === 'development' ? createBrowserInspector() : undefined;
https://stately.ai/docs/inspector
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xstate, state-machine, visualization, stately-studio, stately-inspect
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job