statechart

Installation
SKILL.md

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:

<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. Without mise, set TLA2TOOLS to the path of tla2tools.jar. Set JAVA to a Java binary when java on the PATH is not the one to use.

Write the spec

Installs
4
Repository
petalas/skills
GitHub Stars
1
First Seen
Oct 30, 2026