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 goiltpatpat/patpat --skill patpat-statechartgit clone --depth 1 https://github.com/goiltpatpat/patpatWrote 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/goiltpatpat/patpat/patpat-statechart)<a href="https://agentmods.dev/skills/goiltpatpat/patpat/patpat-statechart"><img src="https://agentmods.dev/badge/skills/goiltpatpat/patpat/patpat-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/goiltpatpat/patpat/patpat-statechart"><img src="https://agentmods.dev/badge/skills/goiltpatpat/patpat/patpat-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.00031 | $0.01125 |
| Opus 5.5 | $0.00012 | $0.00450 |
| Sonnet 5.5 | $0.00006 | $0.00225 |
| Haiku 4.5 | $0.00003 | $0.00112 |
Grade A, and why
patpat-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 yesterday.
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 — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Patpat Statechart
Before following this skill, apply the skill state and mutation gate.
Answer one reader's question in their words: can this flow reach a state that breaks a rule they care about?
Choose the route
- Use here: Behavior over time where a rule must be checked (stuck states, double-charge, invalid handoff). Keep runs ephemeral in scratch or
/tmp/and report rules, bug paths, and Mermaid in chat; never write statechart runs or dashboards intodocs/diagrams/. - Structure without rule-checking: Route to
patpat-repository-diagram. - Durable project suite: Route to
patpat-formal-verify(which sends its TLA+ results back here). - Saved
patpat-model-check-receiptwithout running TLC: Followreferences/receipt-rendering.md.
Frame
- Name the reader and write each rule as one user-agreeable sentence; ask only when a rule is an unsettled product choice.
- List actors and events (citing owning file and function for code flows; if a
patpat-repository-diagramJSON exists, import it perreferences/modeling-and-handoff.md). - State omissions, explicit bounds, and any waived rules. Define the five-field proof contract before committing a chart or model; scratch charts require only a rerunnable command.
Model
Work in a scratch folder outside the repository (SPEC.tla, SPEC.cfg, view.mjs). Encode each reader rule as an INVARIANT without weakening it, map state(vars) and step(action, from, to) to reader-visible wording, and follow TLA+/view conventions in references/modeling-and-handoff.md. Read references/chart-view.md for parent states, parallel regions, bracketed conditions, phase colors, and keeping charts to ~20 arrows.
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.
- agents/openai.yaml 164 B
- examples/assignment-generation-statechart.view.json 8.7 KB
- references/chart-view.md 3.1 KB
- references/modeling-and-handoff.md 3.4 KB
- references/reading-results.md 3.1 KB
- references/receipt-rendering.md 8.7 KB
- references/render.md 3.6 KB
- scripts/backends/cfg.ts 1.2 KB runs code
- scripts/backends/mermaid.ts 9.1 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.7 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 1018 B runs code
- scripts/kill.ts 463 B runs code
- scripts/package-lock.json 1.8 KB
- scripts/package.json 364 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/render_receipt_chart.mjs 4.1 KB runs code
- scripts/render_statechart_receipts.py 72 KB runs code
- scripts/run.ts 18 KB runs code
- scripts/statechart 991 B
- scripts/statechart.cmd 69 B runs code
- scripts/statechart.ts 11 KB runs code
- scripts/test/chart.test.ts 41 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
- scripts/test/corpus/Counter/chart.mmd 112 B
- scripts/test/corpus/Counter/ChartRun.out 2.6 KB
- scripts/test/corpus/Counter/Counter.cfg 64 B
- scripts/test/corpus/Counter/Counter.tla 185 B
- scripts/test/corpus/Counter/graph.dot 633 B
- scripts/test/corpus/Counter/report.md 243 B
- scripts/test/corpus/Counter/sany.out 37 KB
- scripts/test/corpus/Counter/verdict-1.out 2.1 KB
- scripts/test/corpus/CounterAction/chart.mmd 518 B
- scripts/test/corpus/CounterAction/ChartRun.out 2.7 KB
- scripts/test/corpus/CounterAction/CounterAction.cfg 89 B
- scripts/test/corpus/CounterAction/CounterAction.tla 255 B
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.
- yesterday Changed · -2 lines e0e920d40d40
- 7d ago Changed · -23 lines 941efd3efaa3
- 9d ago Changed · -81 tokens per session 2f2de9aa28a4
- 19d ago Changed · +1 lines 7d58373ba9b9
- 24d ago Changed · +2 lines c4d55b2f9db0
- 28d ago First seen · 88 lines · 112 tokens per session scan A a8d7934e032f
patpat-statechart is a skill published in the GitHub repository goiltpatpat/patpat (1 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,125 once invoked, about $0.0001 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-01.
patpat-statechart compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| patpat-statechartgoiltpatpat/patpat | Skill | 1 | yesterday | MIT | A | 31 | Claude Code, Codex |
| kafka-consumer-laglensesio/agentic-engineering-for-apache-kafka | Skill | 71 | 3mo ago | MIT | A | 84 | Claude Code |
| diagnose-backend-bugQoderAI/better-harness | Skill | 2.5k | 18d ago | MIT | A | 87 | Claude Code, Codex |
| chisle-auditJayPokale/Chisle | Skill | 1.3k | 3d ago | MIT | A | 130 | Claude Code |
| kiro-verify-completiongotalab/cc-sdd | Skill | 3.8k | 1mo ago | MIT | A | 39 | Codex |
| debug-livemicrosoft/DebugMCP | Skill | 590 | 16d ago | MIT | A | 84 | Claude Code |
| dsh-error-handlingqufei1993/skills-hub | Skill | 1.9k | yesterday | MIT | A | 39 | Codex |