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 OutlineDriven/odin-claude-plugin --skill smt-solving-with-z3-cvc5git clone --depth 1 https://github.com/OutlineDriven/odin-claude-pluginWrote 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/outlinedriven/odin-claude-plugin/smt-solving-with-z3-cvc5)<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/smt-solving-with-z3-cvc5"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/smt-solving-with-z3-cvc5/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/outlinedriven/odin-claude-plugin/smt-solving-with-z3-cvc5"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/smt-solving-with-z3-cvc5.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00047 | $0.01805 |
| Opus 5 | $0.00023 | $0.00903 |
| Sonnet 5 | $0.00009 | $0.00361 |
| Haiku 4.5 | $0.00005 | $0.00180 |
Grade A, and why
smt-solving-with-z3-cvc5 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 5d 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 — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SMT solving with Z3 and cvc5
Contract
| Field | Bound contract |
|---|---|
| Trigger | A constraint problem needs an SMT-LIB query written and solved, an unsat result needs its core explained, or a verifier built on Z3 or cvc5 (Apalache, Kani, Verus, Frama-C WP, Dafny, Why3) reports unknown or a timeout that must be diagnosed. |
| Authority | Reversible local: writes .smt2 files and solver logs; rollback is deleting them. No remote mutation. |
| Side effect | Query files and captured solver output on disk. Solver runs are bounded by an explicit timeout. |
| Done | Every query has a recorded verdict of sat with a model, unsat with a core, or unknown with the solver's reason and the change that resolves it. |
Inputs
The constraint problem, or the failing query dumped by the calling tool. Solver pins from the grounded set: Z3 z3-5.1.0 (pip install z3-solver, or apt, brew, prebuilt binaries, or source) and cvc5 cvc5-1.3.4 (pip install cvc5, prebuilt binaries, or source). The input language is SMT-LIB 2.7 (reference document revision 2026-03-27, https://smt-lib.org/). Optional: a target logic, a per-query timeout budget, and the calling tool's own solver options.
Procedure
- Choose the logic and declare the sorts. Open the file with
(set-logic L)whereLis the narrowest fragment that fits:QF_LIAfor linear integers,QF_BVfor fixed-width bit-vectors,QF_UFLIAwhen uninterpreted functions join linear arithmetic,QF_ABVfor bit-vectors with arrays. Quantifier-free fragments decide; quantified ones may returnunknown. Z3 and cvc5 both acceptALLas a solver keyword that enables every theory, butALLis not a logic named by the standard, so use it only for exploration. Declare each variable with(declare-const x Int)and each function with(declare-fun f (Int) Bool). Done when: the header names one logic and every symbol is declared before use. - Write the assertions with names. Turn on the options first, because the standard requires
(set-option :produce-models true)and(set-option :produce-unsat-cores true)before any declaration or assertion. Wrap every assertion whose origin matters as(assert (! <term> :named a1)). Names are what an unsat core reports, so one assertion per requirement and one name per source line. End with(check-sat)and, on the expected branch,(get-model)or(get-unsat-core). Done when: every assertion carries a name that maps back to a requirement. - Run with a timeout. Z3:
z3 -smt2 -T:30 query.smt2sets a hard 30-second limit for the whole process;-t:30000sets a soft limit in milliseconds that ends only the current query;-stprints statistics. cvc5:cvc5 --lang smt2 --tlimit=30000 query.smt2limits the whole run in milliseconds and--tlimit-per=30000limits eachcheck-sat;--statsprints statistics. Run both solvers on any query that matters: agreement onunsatis the cross-check, disagreement is a bug in the query or a solver. Done when: both solvers have printed a verdict or a timeout under the recorded budget. - Read
sat. Issue(get-model); the reply is a list ofdefine-funforms, one per declared symbol. A model is a witness that the assertions are jointly satisfiable, so when the query encodes "the property can be violated", the model is the counterexample: substitute its values into the original requirement and confirm by hand that it breaks. Done when: the model has been replayed against the property and the violation is understood or the encoding is fixed. - Read
unsat. Issue(get-unsat-core); the reply is a subset of the named assertions that is already unsatisfiable. When the query encodes "the property can be violated",unsatis the proof and the core names which assumptions the proof needs. When the query encodes a system that should have solutions,unsatmeans the requirements conflict and the core is the smallest set to argue about. Remove one core member at a time and rerun to confirm that each is necessary. For assumption sets that change between checks, use(check-sat-assuming (a1 a2))with(set-option :produce-unsat-assumptions true)and read(get-unsat-assumptions), which keeps the base assertions fixed and avoids apush/popcycle. Done when: every core member is confirmed necessary and mapped to its requirement. - Read
unknownand timeouts. Afterunknown, issue(get-info :reason-unknown); the standard definesmemoutandincomplete, and each solver adds its own strings (Z3 printstimeoutandcanceled; cvc5 namesTIMEOUT,RESOURCEOUT,MEMOUT,INCOMPLETE, andREQUIRES_FULL_CHECK). Z3 exits 102 on a hard-T:timeout after printingtimeout; cvc5 exits 0 after a completed run whatever the verdict and 1 on an option or API error, so read the printed verdict and not the exit code. Resolve in this order: narrow the logic (quantified to quantifier-free,InttoBitVecwhen the domain is finite), remove quantifiers by instantiating the finite domain, split one large query into per-property queries, then raise the timeout once with a written reason. Done when: the query returnssatorunsat, or the reason it cannot is recorded with the reductions tried. - Diagnose another tool's solver failure. Get the tool to dump its query (Frama-C WP writes its proof obligations to the directory named by
-wp-out; Apalache selects its backend with--smt-solver=z3orcvc5; Kani accepts#[kani::solver(z3)]orcvc5on the harness). Run the dumped.smt2through steps 3 to 6 with both solvers. A query that one solver settles in seconds and the other cannot is a backend choice, so switch the calling tool's backend. A query neither solver settles is an encoding problem, so simplify the source property or add a lemma at the source. Done when: the calling tool's failure is traced to a backend choice or a source-level encoding change, and that change is applied.
What ships with it
1 file 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.
- 5d ago First seen · 38 lines · 47 tokens per session scan A 609caec0e8b7
smt-solving-with-z3-cvc5 is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed 2d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,805 once invoked, about $0.0002 per session on Opus 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-09-06.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…