Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it as a Mermaid statechart. The report gives the shortest path to each state that breaks a rule. Use for /statechart, or to show a bug as a path through states.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Statechart
The chart shows how a system moves between states, in the words of the person who reads it. That person, the reader, decides whether the behavior is right.
## Run
Work in a scratch folder outside the repo. Write a TLA+ spec and its config. Then run:
```sh
<skill dir>/scripts/statechart SPEC.tla [--config FILE] [--view FILE] [--out DIR]
```
`scripts/statechart.ts` is TypeScript, so run it with a runtime that can execute TypeScript.
The first run installs TLC and Java with mise and needs the network.
## Write the spec
- Write each rule that the reader agrees to as an INVARIANT. A rule can be about a screen, a result, a stored value, or a message. If the model has no variable for a rule, add the variable. Never weaken a rule to make it hold.
- Write `Next` as a disjunction of the actions, such as `YouPressPlay \/ YouPressStop`. If you do not, TLC names every step `Next`.
…
The line at the top of this page pins the label git:20261027.34b1b7c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_452m4n2wdkhacadq
GET https://markdownregistry.com/api/v1/resolve?ref=cursor/plugins/statechart
GET https://markdownregistry.com/api/v1/blob/010b7b4532406739b1c3a426d1a45f02bb618a42561fc96b3976e064a7f8384d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
cursor/plugins · advisor/skills/advisor/SKILL.md · Advisor mode. Consult a stronger (or different) model at key checkpoints: before major decisions, when stuck on an…
cursor/plugins · agent-compatibility/skills/check-agent-compatibility/SKILL.md · Run the full repository compatibility pass: scanner score, startup path, validation loop, and docs reliability.
cursor/plugins · cli-for-agent/skills/cli-for-agents/SKILL.md · Designs or reviews CLIs so coding agents can run them reliably: non-interactive flags, layered --help with examples…
cursor/plugins · create-plugin/skills/create-plugin-scaffold/SKILL.md · Create a new Cursor plugin scaffold with a valid manifest, component directories, and marketplace wiring. Use when…
cursor/plugins · create-plugin/skills/review-plugin-submission/SKILL.md · Audit a Cursor plugin for marketplace readiness. Use when validating manifests, component metadata, discovery paths…
cursor/plugins · cursor-sdk/skills/cursor-sdk/SKILL.md · Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor TypeScript SDK (`@cursor/sdk`)…
cursor/plugins · cursor-team-kit/skills/control-cli/SKILL.md · Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use…
cursor/plugins · cursor-team-kit/skills/control-ui/SKILL.md · Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI…
cursor/plugins · pstack/skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
michael-denyer/pstack-claude · plugins/pstack/skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
backnotprop/pstack · skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
theonlyfusioncube/potetos-for-everyone · skills/statechart/SKILL.md · Draw what an app's user sees as a Mermaid statechart from a TLA+ model. States are gray if they work, red if still…
creedants/pstack-t3 · t3/overrides/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
painhardcore/pstack · skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
creedants/pstack-t3 · skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…
painhardcore/pstack · .opencode/skills/statechart/SKILL.md · Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it…