Borrowing it
Nothing to install: this file belongs to XFuel-Lab/xfuel-protocol. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/XFuel-Lab/xfuel-protocol/main/.cursor/skills/add-zkp-gadget/SKILL.mdgit clone --depth 1 https://github.com/XFuel-Lab/xfuel-protocolWrote 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/xfuel-lab/xfuel-protocol/add-zkp-gadget)<a href="https://agentmods.dev/skills/xfuel-lab/xfuel-protocol/add-zkp-gadget"><img src="https://agentmods.dev/badge/skills/xfuel-lab/xfuel-protocol/add-zkp-gadget/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/xfuel-lab/xfuel-protocol/add-zkp-gadget"><img src="https://agentmods.dev/badge/skills/xfuel-lab/xfuel-protocol/add-zkp-gadget.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.00130 | $0.01626 |
| Opus 5.5 | $0.00052 | $0.00650 |
| Sonnet 5.5 | $0.00026 | $0.00325 |
| Haiku 4.5 | $0.00013 | $0.00163 |
Grade A, and why
add-zkp-gadget 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 2mo 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Adding a sound gadget to xfuel-zkp
The prover is matmul-first + manifest-selected gadgets: one codebase covers the open-weight LLM market, and a new model architecture should be config + at most one new gadget, never a rewrite. Every gadget must be sound (a cheating prover is rejected) or explicitly honest (the unproven step is recorded as a typed obligation). Never silently trust a step.
The decision rule (how to prove any op)
Reduce the operator to primitives the crate already owns; only reach for a lookup when the op is a genuine non-linearity.
| The op is… | Prove it with | Example |
|---|---|---|
| A linear map with public coefficients (residual, transpose, RoPE with fixed-point cos/sin, row-sum) | Direct recomputation by the verifier from bound tensors — no proof object | attention residual + Kᵀ + causal mask; norm sum-of-squares |
A matrix product A·B |
matmul::{prove,verify} (sumcheck) |
Q/K/V/O projections, Q·Kᵀ, P·V |
An elementwise product z = a ⊙ b |
gadgets::{prove,verify}_hadamard |
gating, x⊙x, softmax normalization E ⊙ r |
A non-linearity on quantized codes (silu, gelu, rsqrt, exp, 1/x) |
a canonical lookup table (table::ScalarTable) + lookup logup argument |
activation, norm rsqrt, softmax exp/reciprocal |
| Not yet wired | gadgets::LookupObligation::new(op, input, output) — push it and return it |
placeholder norm/activation paths |
Critical soundness rule — never impose an exact in-field algebraic constraint on a rounded
fixed-point value. inv_rms² · (ss/d + eps) = 1 is unsatisfiable for a rounded inv_rms, and
P · rowsum = exp fails for a rounded probability. The sound move is always a canonical table:
prover and verifier build a byte-identical code → f(code) table, and the lookup proves membership.
The table is the spec; numeric fidelity (calibration) is the separate M5.3 requant concern.
Worked examples to copy
Read the closest existing gadget and mirror its structure — do not invent a new shape.
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.
- 2mo ago First seen · 96 lines · 130 tokens per session scan A e44fdd6fff55
add-zkp-gadget is a skill published in the GitHub repository XFuel-Lab/xfuel-protocol (1 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 130 tokens to every session and 1,626 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.
add-zkp-gadget compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-zkp-gadgetXFuel-Lab/xfuel-protocol | Skill | 1 | 2mo ago | Apache-2.0 | A | 130 | Cursor |
| klever-devklever-io/mcp-klever-vm | Skill | 31 | 5mo ago | MIT | A | 76 | Claude Code |
| jolta16z/jolt | Skill | 1.1k | today | Apache-2.0 | A | 15 | Claude Code |
| solana-toolkit-guidenirholas/three.ws | Skill | 269 | yesterday | Apache-2.0 | A | 50 | Claude Code, Codex |
| solanaquicknode/solana-finance-claude-plugin | Skill | 101 | yesterday | MIT | A | 76 | Claude Code |
| smart-contractsstellar/stellar-dev-skill | Skill | 57 | today | Apache-2.0 | A | 151 | Claude Code |
| solana-developmenttenequm/skills | Skill | 39 | yesterday | MIT | A | 53 | Claude Code, Codex |