Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/d-oit/rust-2026-templatenpx agentmods add skills/d-oit/rust-2026-template/build-rustWrote 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/d-oit/rust-2026-template/build-rust)<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/build-rust"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/build-rust/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/d-oit/rust-2026-template/build-rust"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/build-rust.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.00066 | $0.00996 |
| Opus 5.5 | $0.00026 | $0.00398 |
| Sonnet 5.5 | $0.00013 | $0.00199 |
| Haiku 4.5 | $0.00007 | $0.00100 |
Grade B, and why
build-rust scanned grade B with 1 finding 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 16d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
**Fix**: `sudo apt-get install build-essential` How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: build-rust
Purpose
Compile, test, and verify Rust projects following 2026 best practices.
Trigger Conditions
- When asked to build, compile, or check a Rust project
- When CI/CD pipeline needs to run build steps
- When investigating build failures or warnings
Prerequisites
- Rust toolchain installed (see
rust-toolchain.toml) cargoavailable in PATH- WSL2 environment (optional but recommended on Windows)
Steps
0. Canonical gate (preferred)
./scripts/quality-gates.sh
This is the repository source of truth: a thin wrapper over
cargo xtask quality run that selects the tier, runs the same checks as CI,
and writes telemetry. Use the individual commands below for fast iteration.
1. Check (fast feedback)
cargo check --workspace --all-targets --all-features 2>&1
2. Build (debug)
cargo build --workspace --all-targets 2>&1
3. Build (release)
cargo build --workspace --release 2>&1
4. Lint with Clippy
cargo clippy --workspace --all-targets --all-features -- \
-D warnings \
-W clippy::pedantic \
-W clippy::nursery \
-A clippy::module_name_repetitions
5. Format check
cargo fmt --all -- --check
6. Run tests (with nextest)
cargo nextest run --workspace --all-features
7. Doc tests
cargo test --workspace --doc --all-features
8. Report metrics
Call metrics-reporter skill.
Success Criteria
cargo checkexits 0 with no errorscargo clippyexits 0 with-D warningscargo fmt --checkexits 0- All tests pass
- No
unsafeblocks without// SAFETY:comments
Common Issues
Slow incremental builds in WSL2
Symptom: Build takes >30s even for small changes
Fix: Ensure target/ is on the Linux filesystem, not Windows mount.
See .cargo/config.toml for WSL2 disk optimization.
VS Code reloads during build
Symptom: VS Code refreshes while cargo build runs
Fix: Set files.watcherExclude for **/target/** in .vscode/settings.json
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.
- 16d ago Changed · +10 lines a19f9da5999c
- 24d ago Changed 37f4b862bdfd
- 2mo ago Changed · -3 lines 50a4a3c9d078
- 2mo ago Changed ad6a8a335b7e
- 3mo ago First seen · 142 lines · 66 tokens per session scan B f2941da5b89f
build-rust is a skill published in the GitHub repository d-oit/rust-2026-template (15 stars, last pushed yesterday), licensed MIT. It adds 66 tokens to every session and 996 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
build-rust compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| build-rustd-oit/rust-2026-template | Skill | 15 | yesterday | MIT | B | 66 | Claude Code, Codex |
| review-backendAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 54 | Claude Code, Codex |
| yada-yada-yadaAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 81 | Claude Code, Codex |
| fix-issueAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 65 | Claude Code, Codex |
| review-frontendAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 62 | Claude Code, Codex |
| make-it-soAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 55 | Claude Code, Codex |
| triage-review-findingAndreiBozantan/svelte-axum-template | Skill | 2 | 2mo ago | MIT | A | 59 | Claude Code, Codex |