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 kotaroyamame/formal-agent-contracts --skill smt-verifygit clone --depth 1 https://github.com/kotaroyamame/formal-agent-contractsWrote 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/kotaroyamame/formal-agent-contracts/smt-verify)<a href="https://agentmods.dev/skills/kotaroyamame/formal-agent-contracts/smt-verify"><img src="https://agentmods.dev/badge/skills/kotaroyamame/formal-agent-contracts/smt-verify/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/kotaroyamame/formal-agent-contracts/smt-verify"><img src="https://agentmods.dev/badge/skills/kotaroyamame/formal-agent-contracts/smt-verify.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.00118 | $0.02508 |
| Opus 5.5 | $0.00047 | $0.01003 |
| Sonnet 5.5 | $0.00024 | $0.00502 |
| Haiku 4.5 | $0.00012 | $0.00251 |
Grade A, and why
smt-verify 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 23d 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 — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PO → SMT-LIB Conversion and Z3 Verification
Convert proof obligations (POs) generated by VDMJ into SMT-LIB format and verify them with Z3.
VDMJが生成した証明責務(PO)をSMT-LIB形式に変換し、Z3で自動検証する。
Prerequisites
Z3 Installation Check
command -v z3
If Z3 is unavailable, report this check as not run. Use a project virtual environment and a pinned z3-solver version when installing is in scope; do not modify the system Python environment.
Z3がない場合は未実行と報告する。導入が作業範囲に含まれる場合は、プロジェクトの仮想環境と固定versionを使う。
VDMJ Setup
Locate the VDMJ JAR using the same method as the verify-spec skill.
verify-specスキルと同じ方法でVDMJ JARを特定する。
Verification Flow
Evidence boundary
Follow verification result rules. Preserve the source PO, generated SMT file, assumptions, input hashes, tool version, command, exit status and logs. The translation rules are guidance for generated formulas, not a verified VDM-to-SMT compiler. A solver result proves or refutes the submitted formula under its assumptions; source-PO correspondence and implementation refinement require separate evidence. Never disable runtime contracts solely because a spec PO was proved.
Step 1: PO Generation
Generate POs using verify-spec. Reuse existing output only when input hashes, VDMJ version and generation options match and the original run completed without errors; otherwise regenerate.
verify-specの手順でPOを生成する。既存出力は入力ハッシュ・VDMJ版・生成条件の一致と実行成功を確認できる場合だけ再利用する。
java -jar <VDMJ_JAR> -vdmsl <files...> -p 2>&1
Step 2: Convert Each PO to SMT-LIB
For each generated PO, perform the following conversion steps.
各POについて以下の手順で変換する。
2a. Generate Type Declarations
Scan all types appearing in the PO and declare them in SMT-LIB.
Follow conversion rules in references/type-mapping-rules.md.
Key mappings:
nat→Int+(>= x 0)constraintnat1→Int+(>= x 1)constraint- Record types →
declare-datatypes+ constructors/selectors seq1 of char→String+(> (str.len s) 0)constraintmap K to V→ uninterpreted sort +map_apply/map_domfunctionsset of T→(Array T Bool)characteristic function representation
What ships with it
7 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.
- 23d ago Changed · +7 lines c2eb7e485251
- 3mo ago First seen · 206 lines · 118 tokens per session scan A 875e9e298bc5
smt-verify is a skill published in the GitHub repository kotaroyamame/formal-agent-contracts (1 stars, last pushed 18d ago), licensed MIT. It adds 118 tokens to every session and 2,508 once invoked, about $0.0005 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-08-31.
smt-verify compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| smt-verifykotaroyamame/formal-agent-contracts | Skill | 1 | 18d ago | MIT | A | 118 | Claude Code |
| math-and-combinatoricssequenzia/agent-alchemy | Skill | 46 | 6mo ago | MIT | A | 72 | Claude Code |
| mathodology-agent-pipelinesweetcornna/mathodology | Skill | 353 | 11d ago | MIT | A | 24 | Claude Code, Codex |
| review-depthjszmajda/lid | Skill | 122 | yesterday | MIT | A | 93 | Claude Code |
| diagrammingxobotyi/cc-foundry | Skill | 23 | yesterday | MIT | A | 56 | Claude Code |
| gan-zhong-xuely8427/gan-zhong-xue | Skill | 12 | 2d ago | MIT | A | 288 | Claude Code |
| arxiv0xmariowu/Autosearch | Skill | 57 | 10d ago | MIT | A | 0 | Claude Code |