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 x402agent/solana-clawd --skill solana-formal-verificationgit clone --depth 1 https://github.com/x402agent/solana-clawdWrote 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/x402agent/solana-clawd/solana-formal-verification)<a href="https://agentmods.dev/skills/x402agent/solana-clawd/solana-formal-verification"><img src="https://agentmods.dev/badge/skills/x402agent/solana-clawd/solana-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/x402agent/solana-clawd/solana-formal-verification"><img src="https://agentmods.dev/badge/skills/x402agent/solana-clawd/solana-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.00102 | $0.02939 |
| Opus 5 | $0.00051 | $0.01470 |
| Sonnet 5 | $0.00020 | $0.00588 |
| Haiku 4.5 | $0.00010 | $0.00294 |
Grade A, and why
qedgen 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 9d 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 — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.
QEDGen — Agent-Driven Formal Verification
You (Claude) are the proof engineer. You read the codebase, write Lean 4 models and proofs, iterate on compiler errors, and call Leanstral (Mistral's theorem prover) only for hard sub-goals you cannot fill yourself.
Architecture
You (Claude) Leanstral (remote model)
├── Read spec / source code ├── Fill sorry markers
├── Write Lean 4 models └── Suggest tactics for hard goals
├── Write theorem statements
├── Write proof attempts
├── Run `lake build`, read errors
└── Fix and iterate
Step 1: Understand the program
Check for existing artifacts in this priority order:
- spec.md exists → Read it. An existing spec captures the author's intent, state model, invariants, and operations. Extract security goals, state model, and formal properties. Skip the scoping quiz and go directly to Step 2.
- IDL exists (
target/idl/<program>.json) → Runqedgen spec --idl <path>to generate a draft SPEC.md with TODO markers, then refine interactively. - Neither exists → Read the source code directly. Ask broader scoping questions.
Step 2: Scope the verification
If no spec.md was found, run a short interactive quiz — one question at a time, with checkbox options derived from the program's structure. Ask about functionality and risks, not implementation details.
Question 1: "What does this program need to guarantee above all else?" Options derived from the program's structure:
- Authorization / access control
- Tokens are never lost / correct routing
- One-shot safety / no replay
- Arithmetic safety / no overflow
- Conservation (e.g., vault >= total claims)
- All of the above
Question 2: "Which scenario worries you most?" Generate concrete risk scenarios from the program.
Question 3: "Does the program make any assumptions that aren't enforced on-chain?"
Ask questions one at a time. Wait for the user's answer before presenting the next question.
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.
- .gitignore 753 B
- .npmignore 352 B
- bin/leanstral 6348 KB
- Cargo.lock 46 KB
- Cargo.toml 307 B
- claude.md 6.8 KB
- crates/qedgen/Cargo.toml 544 B
- crates/qedgen/lean_support/lake-manifest.json 119 B
- crates/qedgen/lean_support/lakefile.lean 112 B
- crates/qedgen/lean_support/lean-toolchain 25 B
- crates/qedgen/lean_support/QEDGen.lean 166 B
- crates/qedgen/lean_support/QEDGen/Solana.lean 166 B
- crates/qedgen/lean_support/QEDGen/Solana/Account.lean 4.0 KB
- crates/qedgen/lean_support/QEDGen/Solana/Authority.lean 285 B
- crates/qedgen/lean_support/QEDGen/Solana/Cpi.lean 3.3 KB
- crates/qedgen/lean_support/QEDGen/Solana/State.lean 1.9 KB
- crates/qedgen/lean_support/QEDGen/Solana/Token.lean 1.4 KB
- crates/qedgen/lean_support/QEDGen/Solana/Valid.lean 2.0 KB
- crates/qedgen/lean_support/README.md 2.8 KB
- crates/qedgen/lean_support/test_lemmas.lean 1.2 KB
- crates/qedgen/src/api.rs 32 KB
- crates/qedgen/src/consolidate.rs 6.9 KB
- crates/qedgen/src/main.rs 4.1 KB
- crates/qedgen/src/project.rs 3.1 KB
- crates/qedgen/src/spec.rs 19 KB
- crates/qedgen/src/validate.rs 5.6 KB
- crates/qedgen/templates/.gitignore 29 B
- crates/qedgen/templates/lakefile.lean 293 B
- crates/qedgen/templates/lean-toolchain 25 B
- crates/qedgen/templates/Main.lean 154 B
- crates/qedgen/templates/PROMPT_TEMPLATE.md 3.2 KB
- crates/qedgen/templates/README.lean.md 1.6 KB
- docs/CNAME 10 B
- docs/index.html 11 KB
- docs/llms-full.txt 8.7 KB
- docs/llms.txt 2.1 KB
- docs/logo-dark.png 15 KB
- docs/logo-dark.svg 648 B
- docs/logo-light.png 15 KB
- docs/logo-light.svg 648 B
- docs/logo.png 150 KB
- docs/og.png 38 KB
- docs/style.css 7.6 KB
- example/escrow/.gitignore 67 B
- example/escrow/.prettierignore 61 B
- example/escrow/Anchor.toml 353 B
- example/escrow/Cargo.lock 73 KB
- example/escrow/Cargo.toml 215 B
- example/escrow/formal_verification/.gitignore 87 B
- example/escrow/formal_verification/EscrowProofs.lean 8.6 KB
- example/escrow/formal_verification/lakefile.lean 264 B
- example/escrow/formal_verification/lean_support/lakefile.lean 112 B
- example/escrow/formal_verification/lean_support/lean-toolchain 25 B
- example/escrow/formal_verification/lean_support/QEDGen.lean 166 B
- example/escrow/formal_verification/lean_support/QEDGen/Solana.lean 166 B
- example/escrow/formal_verification/lean_support/QEDGen/Solana/Account.lean 4.0 KB
- example/escrow/formal_verification/lean_support/QEDGen/Solana/Authority.lean 285 B
- example/escrow/formal_verification/lean_support/QEDGen/Solana/Cpi.lean 3.3 KB
- example/escrow/formal_verification/lean_support/QEDGen/Solana/State.lean 1.9 KB
- example/escrow/formal_verification/lean_support/QEDGen/Solana/Token.lean 1.4 KB
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.
- 9d ago First seen · 294 lines · 102 tokens per session scan A 7a7282472c37
qedgen is a skill published in the GitHub repository x402agent/solana-clawd (24 stars, last pushed 3mo ago), licensed MIT. It adds 102 tokens to every session and 2,939 once invoked, about $0.0005 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-03.
Other skills, from other repositories
research-engineer
An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.
tika-eval-compare
Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".
neuron-evaluation-engineer
Create and run AI evaluations with datasets, assertions, and output drivers in Neuron AI. Use this skill whenever the user mentions evaluation, testing AI systems, creating evaluators, dataset-driven testing, assertion-based validation, or wants to measure AI system performance. Also trigger for tasks involving…
jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.
atmos-validation
Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.
skill-benchmark
Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.