Borrowing it
Nothing to install: this file belongs to sparq-org/sparq. 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/sparq-org/sparq/main/.claude/skills/unsafe-rust-attestation/SKILL.mdgit clone --depth 1 https://github.com/sparq-org/sparqWrote 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/sparq-org/sparq/unsafe-rust-attestation)<a href="https://agentmods.dev/skills/sparq-org/sparq/unsafe-rust-attestation"><img src="https://agentmods.dev/badge/skills/sparq-org/sparq/unsafe-rust-attestation/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/sparq-org/sparq/unsafe-rust-attestation"><img src="https://agentmods.dev/badge/skills/sparq-org/sparq/unsafe-rust-attestation.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.00170 | $0.02452 |
| Opus 5 | $0.00085 | $0.01226 |
| Sonnet 5 | $0.00034 | $0.00490 |
| Haiku 4.5 | $0.00017 | $0.00245 |
Grade A, and why
unsafe-rust-attestation 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 12d 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 — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Unsafe-Rust attestation (sparq)
sparq's headline safety claim is memory safety. This skill is how to attest it
honestly for the memsafety certification worktree — the forbid(unsafe_code)
posture, the concentrated sparq-core unsafe surface (threat-model boundary
B5), and the verification estate (Miri + fuzz + the deterministic oracle).
NON-CANONICAL timing. No measured numbers belong in this file.
The posture: forbid where you can, concentrate + justify where you can't
#![forbid(unsafe_code)]is declared in the large majority of workspace crates (sparq-serve, sparq-reason, sparq-zk, sparq-nlq, sparq-shacl, and most others —grep -rl "forbid(unsafe_code)" crates/).forbid(notdeny) means the lint can't even be locally#[allow]-ed away — a hard compile error if anyunsafeis introduced. This is the strongest attestable claim and it's free.sparq-corecarries the vast majority of theunsafe, and all of the B5 (untrusted-input) risk. A few other crates have small, non-B5 unsafe surfaces (e.g.sparq-vectorsmmap/raw-slice casts,sparq-cli's loader mmap inmain.rs,sparq-zk-compose'slibc::flockFFI inverifier.rs, onesparq-benchblock) — these do not carryforbid(unsafe_code), so the audit surface is "the crates withoutforbid" not "one crate". Verify the live set withgrep -rL "forbid(unsafe_code)" $(git ls-files 'crates/*/src/lib.rs'). Attestation stays tractable because the dangerous (hostile-input → unsafe) risk is still concentrated insparq-core's B5 boundary, enumerated below.
When scoring, the honest statement is: "N of M crates forbid unsafe; the residual unsafe is concentrated in sparq-core's B5 boundary, enumerated and verified below." Verify the live count with grep before quoting it — don't hard-code it.
The B5 unsafe surface (research/threat-model.md §B5)
B5 = hostile on-disk index file → mmap loader → unsafe code — an
untrusted-input → unsafe-code boundary, the most dangerous class in the system.
grep -rn "unsafe" crates/sparq-core/src enumerates the sites — concentrated
across five files (run it for the live count; don't hard-code one here):
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.
- 12d ago First seen · 132 lines · 170 tokens per session scan A 227c947c3388
unsafe-rust-attestation is a skill published in the GitHub repository sparq-org/sparq (12 stars, last pushed today), licensed MIT. It adds 170 tokens to every session and 2,452 once invoked, about $0.0009 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-08-31.
Other skills, from other repositories
dd-code-generation
Use pup CLI for immediate Datadog operations or generate code for integration into applications.
omh-rust
This is a Hermes-native rust workflow skill.
bevy-ecs
Structure a Bevy app around its Entity Component System: build the App with plugins, define Component/Resource types, write systems with Query/Res/Commands, filter and order systems, and use the Time resource for frame-rate-independent motion. Use when building or debugging a Bevy game in Rust — when the user mentions…
rust-project
Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.
azure-keyvault-secrets-rust
Client library for Azure Key Vault Secrets — secure storage for passwords, API keys, and other secrets.
Agent Browser Automation
Fast Rust-based headless browser automation CLI with Node.js fallback for AI agents, featuring navigation, clicking, typing, snapshots, and structured commands optimized for agent workflows.