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 fcsouza/agent-skills --skill formal-verificationgit clone --depth 1 https://github.com/fcsouza/agent-skillsWrote 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/fcsouza/agent-skills/formal-verification)<a href="https://agentmods.dev/skills/fcsouza/agent-skills/formal-verification"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/formal-verification/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/fcsouza/agent-skills/formal-verification"><img src="https://agentmods.dev/badge/skills/fcsouza/agent-skills/formal-verification.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.00183 | $0.02862 |
| Opus 5.5 | $0.00073 | $0.01145 |
| Sonnet 5.5 | $0.00037 | $0.00572 |
| Haiku 4.5 | $0.00018 | $0.00286 |
Grade A, and why
formal-verification 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 11d ago.
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 — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Formal verification
A test checks the cases someone thought to write. A formal check covers every case in a stated scope: every order of steps in a model, every input up to a bound, or every input. This skill verifies one property where that matters, and leaves a way to recheck it.
Adapted from the create-formal-verification-skill, maintain-formal-verification-skill and statechart skills in pstack v0.15.46 by Lauren Tan, https://github.com/cursor/plugins/tree/main/pstack, under the MIT licence. Modified: one skill with two modes, a chart drawn from the checker's own output instead of a bundled toolchain, and a property-based route for code no verifier runs on. Licence details: NOTICE.md.
It is one layer, not a replacement for tests. A pass covers the model or the bound, never the whole system.
Pick the mode
- Create: no check exists for this area. Go to "Create".
- Maintain: a project skill already runs a model checker, a prover, a verifier or property-based tests against named code, and that code changed. Go to "Maintain".
Find an existing check by what it does, not by its name. If the user asks for maintenance and none exists, say so and offer Create.
Create
1. Choose the target from the code
Answer from the codebase. Ask the user only what you cannot observe. If the user named an area or a bug, start there.
A good target is a promise the code makes, where a break harms users and tests rarely reach the breaking case. Pick the strongest such target, not the one that is easiest to verify. Write the promise and the harm in one plain sentence each before you touch a tool:
- Promise: "A job never commits its result twice."
- Harm: "The customer is charged twice."
2. Let the question pick the tool
| Question | Tool |
|---|---|
| Can events happen in a bad order? | A model checker over a small model of the design. TLA+ with TLC is the default, in any language. See references/tlc.md. |
| Does the code behave for every input? | A verifier that runs on the code itself, if one exists for the language. |
| No verifier runs on this language | Say so. Test the real code with generated inputs. See references/property-based.md. Never test a hand copy of the function. |
| Must it hold at every size, where a bound is not enough? | A proof, for example in Lean. Costly. Say why a bound will not do. |
What ships with it
11 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.
- NOTICE.md 1.9 KB
- references/example-job-lease/JobLease.cfg 163 B
- references/example-job-lease/JobLease.tla 1.7 KB
- references/example-job-lease/JobLeaseBroken.cfg 164 B
- references/example-job-lease/README.md 4.6 KB
- references/example-job-lease/view.ts 973 B runs code
- references/property-based.md 4.0 KB
- references/sources.md 1.7 KB
- references/statechart.md 3.6 KB
- references/tlc.md 4.4 KB
- scripts/dot-to-mermaid.ts 5.0 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.
- 11d ago First seen · 141 lines · 183 tokens per session scan A 44514668d852
formal-verification is a skill published in the GitHub repository fcsouza/agent-skills (29 stars, last pushed today), licensed MIT. It adds 183 tokens to every session and 2,862 once invoked, about $0.0007 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-23.
formal-verification compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| formal-verificationfcsouza/agent-skills | Skill | 29 | today | MIT | A | 183 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 5d ago | MIT | A | 21 | Claude Code |