# Mex Statechart

Explain complicated existing behavior using checked state diagrams.

- Repository: https://github.com/mex-memory/mex (1786 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-29
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add mex-memory/mex --skill mex-statechart -g -a claude-code -y`
Codex: `npx skills add mex-memory/mex --skill mex-statechart -g -a codex -y`
Cursor: `npx skills add mex-memory/mex --skill mex-statechart -g -a cursor -y`
Gemini CLI: `npx skills add mex-memory/mex --skill mex-statechart -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add mex-memory/mex`

## Description

Explain complicated existing behavior using checked state diagrams. Use when asked for a state diagram, to diagram the previous explanation, show a bug or recovery path, compare a proposed fix or existing TLA+ spec, or derive a model from an agreed chart. Generates native Mermaid and a readable terminal fallback; optionally view and explicitly save in MEX Hub.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# MEX statechart

Make behavior easier for a human to understand. Generate only on user intent. If a diagram would obscure the explanation, use a better explanation. A prior agent answer identifies the subject; verify it independently against current code.

The rest: https://github.com/mex-memory/mex/blob/HEAD/skills/mex-statechart/SKILL.md
