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 saadshahd/moo.md --skill statechartgit clone --depth 1 https://github.com/saadshahd/moo.mdWrote 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/saadshahd/moo.md/statechart)<a href="https://agentmods.dev/skills/saadshahd/moo.md/statechart"><img src="https://agentmods.dev/badge/skills/saadshahd/moo.md/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/saadshahd/moo.md/statechart"><img src="https://agentmods.dev/badge/skills/saadshahd/moo.md/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.00084 | $0.01162 |
| Opus 5.5 | $0.00034 | $0.00465 |
| Sonnet 5.5 | $0.00017 | $0.00232 |
| Haiku 4.5 | $0.00008 | $0.00116 |
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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The reader is the person who decides whether the behavior is right.
Pick the target
Pick the promise whose break harms users most and that tests rarely reach. Read the code for it; ask the user only what the code cannot show.
Name the question before the tool:
| The question | The tool |
|---|---|
| Can events happen in a bad order? | A model checker: this skill |
| Does the code hold for every input? | A verifier that runs on the code; with none for its language, generated inputs on the real code |
| Does it hold at every size, past any bound? | A proof |
A question that is not about order → say which kind it is and stop; sound:find picks the tool.
Write the model
Write SPEC.tla and SPEC.cfg in a scratch folder, or beside the code they cover when the project keeps them.
- Point each action at the code a reviewer can open, in a
\* path:linecomment. What the code does in one indivisible step is one action; two steps are two. - Head the spec with the files and functions it covers and the commit it was last checked against,
\* covers:and\* synced:, so a later change to them shows the model may be stale. - Each rule the reader agrees to is an INVARIANT; one about "eventually" or "forever" is a PROPERTY. A rule with no variable to check it gets one. Never weaken a rule to make it hold.
Nextis a disjunction of named actions,Pay \/ Decline, so each step has a name.- A correct end state still breaks deadlock: give it a step that changes nothing,
Done == phase \in {"paid", "failed"} /\ UNCHANGED vars. - Keep the constants small, or add a CONSTRAINT, so the check ends.
Write the view
A module that exports:
state(vars): the reader's words for a state, such as "Paying" or "Lease held, write pending", never a variable name. A set arrives as an array; a sequence, record or function as an object keyed by its domain, sov.pc[1]ispc[1].step(action, from, to): the step as the reader sees it happen, such as "you press pay", ornullto hide it. A step that happens only in some conditions ends with them in brackets, in the reader's words:you press play [while the file loads]. Two actions that end the same share a label, and so an arrow.title.
What ships with it
5 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.
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 808a26ba3966
- 2d ago Changed 6da2018cf61d
- 11d ago First seen · 73 lines · 84 tokens per session scan A cf0291e537ed
statechart is a skill published in the GitHub repository saadshahd/moo.md (38 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 1,162 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-11-19.
statechart compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| statechartsaadshahd/moo.md | Skill | 38 | today | MIT | A | 84 | Claude Code |
| session-recapsxhmilyoyo/sundayhao-plugins | Skill | 8 | 7d ago | Apache-2.0 | A | 39 | Claude Code |
| knowledge-bank-lookupsxhmilyoyo/sundayhao-plugins | Skill | 8 | 7d ago | Apache-2.0 | A | 94 | Claude Code |
| kb-ingestsxhmilyoyo/sundayhao-plugins | Skill | 8 | 7d ago | Apache-2.0 | A | 152 | Claude Code |
| kb-lintsxhmilyoyo/sundayhao-plugins | Skill | 8 | 7d ago | Apache-2.0 | A | 103 | Claude Code |
| session-managersxhmilyoyo/sundayhao-plugins | Skill | 8 | 7d ago | Apache-2.0 | A | 49 | Claude Code |
| lark-openapi-explorerDropFan/claude-code-plugins | Skill | 8 | 1mo ago | MIT | A | 76 | Claude Code |