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.
npx skills add chhoumann/t3-pstack --skill statechartgit clone --depth 1 https://github.com/chhoumann/t3-pstackWrote 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.
[](https://agentmods.dev/skills/chhoumann/t3-pstack/statechart)<a href="https://agentmods.dev/skills/chhoumann/t3-pstack/statechart"><img src="https://agentmods.dev/badge/skills/chhoumann/t3-pstack/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.
<a href="https://agentmods.dev/skills/chhoumann/t3-pstack/statechart"><img src="https://agentmods.dev/badge/skills/chhoumann/t3-pstack/statechart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.03802 |
| Opus 5.5 | $0.00030 | $0.01521 |
| Sonnet 5.5 | $0.00015 | $0.00760 |
| Haiku 4.5 | $0.00007 | $0.00380 |
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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Statechart
The chart shows how a TLA+ system moves between states or how a Lean 4 theorem is proved, in the words of the operator who must decide whether the behavior or proof is right.
Run
scripts/statechart.ts is TypeScript, so run it with a runtime that executes TypeScript. scripts/statechart is a POSIX shell script that picks Node 22.18 to 22.x, Node 23.6 or later, Bun 1.1.5 or later, or Deno 2.0 or later. On native Windows, run node --disable-warning=ExperimentalWarning <skill dir>/scripts/statechart.ts with Node 22.18 to 22.x, or Node 23.6 or later.
The CLI auto-dispatches on the first positional argument.
TLA+ models
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]
The first TLA+ run installs TLC and Java with mise and needs the network. --tactics applies only to .lean files and exits 2 on .tla inputs.
Lean 4 proofs
Run against any .lean file pinned to Lean v4.34.1 (or a standalone .lean file with no lean-toolchain):
<skill dir>/scripts/statechart FILE.lean THEOREM [--view FILE] [--tactics] [--out DIR]
THEOREMaccepts a full declaration name or a unique dotted suffix inFILE.lean. Unsafe declarations and non-theorem definitions exit 2.- Pass
--outto a scratch folder outside the repo so generated charts stay out of your checkout. Without--out, the output goes to<short-theorem>-proofbesideFILE.lean. The folder must be new or empty. --view FILEapplies a plain-English view module tolemmas.mmdandproof.mmd.--tacticsadds raw Lean tactic lines back insideproof.mmdboxes for Lean authors. Without it, boxes show claims, new local assumptions, invoked lemmas, and proof outcomes, whilereport.mdkeeps the full hypotheses and tactic scripts.--configapplies only to TLA+ specs and exits 2 on.leaninputs.- Toolchain lookup checks
LEAN_SYSROOT, thenleanandlakeonPATHfrom the package root, then a pinnedmisehttp:leaninstall forv4.34.1. Every resolved binary must reportv4.34.1; any other pin or binary version exits 2. - Interactive runs call
lake setup-filein place, which writes the gitignored.lake/folder and may createlake-manifest.jsonif the package has none. Tests copy packages into temporary folders so the checkout stays clean.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/render.md 8.6 KB
- scripts/backends/cfg.ts 1.2 KB runs code
- scripts/backends/mermaid.ts 9.0 KB runs code
- scripts/backends/plain-text.ts 2.3 KB runs code
- scripts/backends/report.ts 6.9 KB runs code
- scripts/frontends/config.ts 10 KB runs code
- scripts/frontends/dot.ts 2.5 KB runs code
- scripts/frontends/marks.ts 3.2 KB runs code
- scripts/frontends/messages.ts 1.8 KB runs code
- scripts/frontends/spec.ts 4.1 KB runs code
- scripts/frontends/trace.ts 988 B runs code
- scripts/frontends/value.ts 4.6 KB runs code
- scripts/frontends/verdict.ts 1.7 KB runs code
- scripts/frontends/view.ts 4.3 KB runs code
- scripts/ir.ts 15 KB runs code
- scripts/janitor.ts 549 B runs code
- scripts/kill.ts 421 B runs code
- scripts/lean/backends/lemma-chart.ts 8.9 KB runs code
- scripts/lean/backends/mermaid.ts 6.1 KB runs code
- scripts/lean/backends/proof-chart.ts 17 KB runs code
- scripts/lean/backends/report.ts 7.8 KB runs code
- scripts/lean/Extract.lean 57 KB
- scripts/lean/frontends/facts.ts 8.6 KB runs code
- scripts/lean/frontends/view.ts 7.2 KB runs code
- scripts/lean/ir.ts 14 KB runs code
- scripts/lean/passes/attribute.ts 4.8 KB runs code
- scripts/lean/passes/blocks.ts 853 B runs code
- scripts/lean/passes/budget.ts 4.9 KB runs code
- scripts/lean/passes/check.ts 2.9 KB runs code
- scripts/lean/passes/contract.ts 4.9 KB runs code
- scripts/lean/passes/fold.ts 7.2 KB runs code
- scripts/lean/passes/inline.ts 3.2 KB runs code
- scripts/lean/passes/mark.ts 14 KB runs code
- scripts/lean/passes/reduce.ts 1.9 KB runs code
- scripts/lean/passes/trust.ts 3.0 KB runs code
- scripts/lean/passes/view-lemmas.ts 4.8 KB runs code
- scripts/lean/pipeline.ts 4.8 KB runs code
- scripts/lean/run.ts 13 KB runs code
- scripts/lean/toolchain.ts 2.7 KB runs code
- scripts/package.json 233 B
- scripts/passes/annotate.ts 3.7 KB runs code
- scripts/passes/label.ts 8.4 KB runs code
- scripts/passes/lift.ts 2.8 KB runs code
- scripts/passes/loop-check.ts 2.1 KB runs code
- scripts/passes/paths.ts 1.9 KB runs code
- scripts/passes/reach.ts 4.0 KB runs code
- scripts/passes/region-check.ts 3.4 KB runs code
- scripts/passes/regions.ts 9.3 KB runs code
- scripts/pipeline.ts 2.9 KB runs code
- scripts/run.ts 18 KB runs code
- scripts/statechart 991 B
- scripts/statechart.ts 8.4 KB runs code
- scripts/test/chart.test.ts 40 KB runs code
- scripts/test/charts/Braces.mmd 312 B
- scripts/test/charts/Escapes.mmd 244 B
- scripts/test/charts/Phases.mmd 584 B
- scripts/test/cli.test.ts 50 KB runs code
- scripts/test/config-fuzz.test.ts 8.5 KB runs code
- scripts/test/ConfigOracle.java 2.7 KB
- scripts/test/corpus.test.ts 14 KB runs code
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.
- today Changed · +56 lines · +4 tokens per session b43d453c3ce1
- 9d ago Changed ca7b3e43b1dd
- 1mo ago Changed · +46 lines · -12 tokens per session 010b7b453240
- 1mo ago Changed · +8 tokens per session b1c544782b15
- 1mo ago Changed 9b2a6dccf862
- 1mo ago First seen · 37 lines · 74 tokens per session scan A ad01133b5578
statechart is a skill published in the GitHub repository chhoumann/t3-pstack (347 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 3,802 once invoked, about $0.0003 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-22.
statechart compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| statechartchhoumann/t3-pstack | Skill | 347 | today | MIT | A | 74 | Claude Code |
| systematic-debuggingopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 37 | Claude Code |
| log-error-digestzebbern/claude-code-guide | Skill | 4.7k | 4d ago | MIT | A | 71 | Claude Code, Codex |
| observability-audit-sessionsIBM/mcp-context-forge | Skill | 4.9k | 2d ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| cwv-optimizeradobe/skills | Skill | 339 | today | Apache-2.0 | A | 112 | Claude Code |
| ci-fixersipyourdrink-ltd/bernstein | Skill | 1.2k | today | Apache-2.0 | A | 15 | Claude Code, Codex |
| triaging-web-analytics-supportPostHog/posthog | Skill | 41k | today | none | A | 151 | Claude Code, Codex |