Generate Mermaid stateDiagram-v2 diagrams from code or specs, with extraction summary and uncertainty notes.
Ships in mermaid-state-diagram. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when the user wants a state machine/state transition diagram derived from code or specs, and the output must be Mermaid stateDiagram-v2 plus an extraction summary.
[?] to inferred transitions.stateDiagram-v2
[*] --> Idle
Idle --> Loading: submit
Loading --> Success: api_ok
Loading --> Error: api_err
Error --> Loading: retry
Error --> Idle: cancel
Success --> [*]
[?])event / guard (guard optional). Keep state names short, CamelCase.[?] to inferred transitions and list them under assumptions.If you need composite states, choice/fork/join, concurrency, direction, or comments, open references/mermaid-stateDiagram.md.
When useful, add:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/mermaid-state-diagram:mermaid-state-diagramfrom mermaid-state-diagram
npx claudepluginhub iemong/agent-skills --plugin mermaid-state-diagram