statechart

statechart is a skill for Claude Code, Codex from escoffier-labs/skillet. It costs 49 tokens per session (1,651 once invoked), scanned A, original, MIT.

A tool for making Mermaid statecharts or charts related to formal models. A statechart shows visible states, user actions, and resulting requests as a diagram.

In plain words
What is it for?
Use it when you explicitly need a statechart, a chart of a TLA+ model or counterexample, a comparison of code and fixes, or a TLA+ scaffold.
Why use it?
It turns a requested behavior model or verification result into a reader-facing diagram without exposing internal model names in the labels.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the skillet plugin — 54 skills, 1 hook shipped together

Good fit Use it when you explicitly need a statechart, a chart of a TLA+ model or counterexample, a comparison of code and fixes, or a TLA+ scaffold.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/escoffier-labs/skillet/statechart
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add escoffier-labs/skillet --skill statechart
Clone the repo
git clone --depth 1 https://github.com/escoffier-labs/skillet

Made for: Claude Code, Codex.

Or install skillet, the plugin that ships this one along with the rest of its 54 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for statechart

README.md
[![agentmods](https://agentmods.dev/badge/skills/escoffier-labs/skillet/statechart/github.svg)](https://agentmods.dev/skills/escoffier-labs/skillet/statechart)
Your own site
<a href="https://agentmods.dev/skills/escoffier-labs/skillet/statechart"><img src="https://agentmods.dev/badge/skills/escoffier-labs/skillet/statechart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for statechart

Your own site · 80×15
<a href="https://agentmods.dev/skills/escoffier-labs/skillet/statechart"><img src="https://agentmods.dev/badge/skills/escoffier-labs/skillet/statechart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,651 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.01651
Opus 5.5 $0.00020 $0.00660
Sonnet 5.5 $0.00010 $0.00330
Haiku 4.5 $0.00005 $0.00165

Measured 4d ago against content hash 45a9ab74036c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

statechart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/chart-to-tla.mjs, scripts/compare-charts.mjs, scripts/lib.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skillet/skills/statechart/SKILL.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Statechart

Show behavior in the user's words: what appears on the screen, what the user does, and what a request returns. Keep the model's variable and action names out of reader-facing labels. Charts describe the explored model under its stated bounds.

Scope, prerequisites, and trust

Run only on explicit request. Generate charts from copies in an authored scratch folder outside the product tree. Committed verification models stay where their project-local verify skill points. The helpers write scaffolds next to inputs and replace their own output folder. Product fixes remain outside scope unless the current request already explicitly authorizes them. Keep existing invariants. Ordinary application smoke checks belong to test-kitchen.

Use Node.js 18.15 or later for the bundled scripts and tests, with no npm dependencies. Model checking requires an existing tla2tools.jar via TLA2TOOLS and Java 11 or later via JAVA (default java). PNG output requires an already-installed mmdc on PATH and its configured browser. An installed browser may be selected with PUPPETEER_EXECUTABLE_PATH. The helpers never install packages. Any tool install or new dependency requires existing user authorization. If missing, record the prerequisite and the command that could not run.

Mapping files such as .map.mjs are executable JavaScript imports, as are their transitive imports. Inspect them before running any helper. Prefer mappings you author in scratch work over supplied modules. Do not run an untrusted mapping just because its labels look harmless. A chart or model review does not authorize arbitrary code execution. If trust cannot be established, recreate the mapping from reviewed data or report the blocker.

Run node scripts/statechart.mjs --help from this package for all flags, output files, chart conventions, and exit codes. Use absolute script paths when working in scratch. See PROVENANCE.md for source and local changes.

From model or code to chart

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 128 lines · 49 tokens per session scan A 45a9ab74036c

Subscribe to this mod's changes

statechart is a skill published in the GitHub repository escoffier-labs/skillet (4 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,651 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-24.

Related

Other skills, from other repositories

critique

Adversarial design critique of the current work. Render it, look at it, and argue for rejection. Run after the gates are green, never instead of them.

plugin87/ux-ui-agent-skills · 37 tokens

design-qa

Set up or run design QA gates for token + hardcoded-value lint, automated a11y (axe), contrast, visual regression across variants/states/themes/RTL, and the manual a11y checklist. Use when the user wants CI quality gates, to prevent design regressions, or to QA a component/screen before shipping.

plugin87/ux-ui-agent-skills · 71 tokens

gate

Run the one-command quality gate and report the real N/N result. Use before claiming any build/review is done.

plugin87/ux-ui-agent-skills · 26 tokens

visual-qa

Runs rigorous visual QA across web, terminal, and paginated surfaces: an Apple HIG-based checklist, paired light/dark captures at phone and desktop widths, screenshot evidence, and a per-item PASS/FAIL verdict. Use for any UI build or change, or when asked whether a page, component, or TUI looks right or follows the…

code-yeongyu/oh-my-openagent · 78 tokens

html-review

An automated checker for HTML documents that tests structure, styling rules, typography, document tone, and decorative elements, then produces a structured report.

rojim666/SztuCode · 165 tokens

craft-ux

The Craftsman standard for UI/UX — design tokens, component patterns, pixel-perfect standards, Tailwind/React implementation, motion craft, an AI-tells anti-pattern catalog, and a two-pass review protocol (static review + live browser audit). Use this whenever designing, building, reviewing, auditing, redesigning, or…

gul-labs/craftsman-marketplace · 192 tokens