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 vinhnx/VTCode --skill rust-skillsgit clone --depth 1 https://github.com/vinhnx/VTCodeWrote 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/vinhnx/vtcode/rust-skills)<a href="https://agentmods.dev/skills/vinhnx/vtcode/rust-skills"><img src="https://agentmods.dev/badge/skills/vinhnx/vtcode/rust-skills/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/vinhnx/vtcode/rust-skills"><img src="https://agentmods.dev/badge/skills/vinhnx/vtcode/rust-skills.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.00046 | $0.07683 |
| Opus 5.5 | $0.00018 | $0.03073 |
| Sonnet 5.5 | $0.00009 | $0.01537 |
| Haiku 4.5 | $0.00005 | $0.00768 |
Grade A, and why
rust-skills 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 6d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- rust-skills — 89% identical, 121 lines differ
How it starts
The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust Best Practices
Comprehensive guide for writing high-quality, idiomatic, and highly optimized Rust code. Contains 194 rules across 14 categories, prioritized by impact to guide LLMs in code generation and refactoring. Quick reference below; the reasoning behind each rule family lives in the per-source digests under references/ (adapted from BeautifulRust, MIT).
VT Code First
These rules are general Rust advice. In this repository, the root AGENTS.md and the
Rust style adoption matrix take precedence, because they record
measured, deliberate choices. Where a rule below disagrees, follow the repository:
| Rule here | VT Code instead | Why |
|---|---|---|
cargo test in rule examples |
cargo nextest run --locked; doctests only via cargo test --doc (check.sh docs) |
nextest is the project runner; it cannot run doctests |
Recommended Cargo.toml (opt-level = 3) |
Keep the workspace profile: opt-level = "z", fat LTO, debug-assertions and overflow-checks on |
Measured cold-start win; violated invariants must crash loud in release |
opt-target-cpu native builds |
Never for shipped binaries | Released binaries run on other CPUs |
lint-deny-correctness #![deny] in source |
Workspace [workspace.lints] plus CI -D warnings |
One lint config; see lint-expect-over-allow |
api-serde-optional feature gating |
Only for published library crates that want it | Application crates serialize unconditionally |
No unsafe |
Avoid; if unavoidable, minimal block with // SAFETY: |
undocumented_unsafe_blocks is enforced |
mem-compact-string |
Use the CompactStr alias from vtcode_core::types |
One string type across crates |
err- rules |
anyhow::Result with .context()/.with_context(); unwrap/expect only in tests |
clippy.toml and workspace lints enforce it |
Lessons from VT Code's own bugs carry the most weight here: start with
anti-byte-slice-str whenever code caps, truncates, or decodes text.
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.
- AGENTS.md 1.8 KB
- LICENSE 1.0 KB
- README.md 5.5 KB
- references/effective-rust.md 14 KB
- references/google-rust-style-guide.md 11 KB
- references/microsoft-rust-guidelines.md 16 KB
- references/rust-api-guidelines.md 11 KB
- references/rust-design-patterns.md 8.4 KB
- rules/anti-byte-slice-str.md 3.7 KB
- rules/anti-clone-excessive.md 2.6 KB
- rules/anti-collect-intermediate.md 3.2 KB
- rules/anti-empty-catch.md 3.1 KB
- rules/anti-expect-lazy.md 2.6 KB
- rules/anti-format-hot-path.md 3.4 KB
- rules/anti-index-over-iter.md 2.8 KB
- rules/anti-lock-across-await.md 3.1 KB
- rules/anti-over-abstraction.md 3.1 KB
- rules/anti-panic-expected.md 3.3 KB
- rules/anti-premature-optimize.md 3.6 KB
- rules/anti-string-for-str.md 2.6 KB
- rules/anti-stringly-typed.md 4.1 KB
- rules/anti-type-erasure.md 3.3 KB
- rules/anti-unsound-api.md 3.0 KB
- rules/anti-unwrap-abuse.md 3.3 KB
- rules/anti-vec-for-slice.md 2.5 KB
- rules/api-builder-must-use.md 3.8 KB
- rules/api-builder-pattern.md 4.6 KB
- rules/api-common-traits.md 4.2 KB
- rules/api-default-impl.md 3.8 KB
- rules/api-extension-trait.md 3.7 KB
- rules/api-ffi-boundary.md 3.2 KB
- rules/api-from-not-into.md 3.1 KB
- rules/api-impl-asref.md 3.5 KB
- rules/api-impl-into.md 4.0 KB
- rules/api-must-use.md 3.5 KB
- rules/api-newtype-safety.md 3.9 KB
- rules/api-no-bool-params.md 1.9 KB
- rules/api-non-exhaustive.md 3.9 KB
- rules/api-parse-dont-validate.md 4.2 KB
- rules/api-sealed-trait.md 4.5 KB
- rules/api-serde-optional.md 4.0 KB
- rules/api-typestate.md 4.9 KB
- rules/async-bounded-channel.md 4.5 KB
- rules/async-broadcast-pubsub.md 4.1 KB
- rules/async-cancellation-token.md 4.8 KB
- rules/async-clone-before-await.md 4.0 KB
- rules/async-join-parallel.md 4.0 KB
- rules/async-joinset-structured.md 4.5 KB
- rules/async-mpsc-queue.md 3.9 KB
- rules/async-no-lock-await.md 3.9 KB
- rules/async-oneshot-response.md 4.5 KB
- rules/async-select-racing.md 4.6 KB
- rules/async-send-sync-assert.md 2.2 KB
- rules/async-spawn-blocking.md 3.6 KB
- rules/async-tokio-fs.md 4.1 KB
- rules/async-tokio-runtime.md 4.3 KB
- rules/async-try-join.md 4.3 KB
- rules/async-watch-latest.md 4.5 KB
- rules/doc-all-public.md 2.7 KB
- rules/doc-cargo-metadata.md 3.2 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.
- 6d ago Changed · +26 lines c0977e2c4fc2
- 11d ago First seen · 391 lines · 46 tokens per session scan A ae6546574a64
rust-skills is a skill published in the GitHub repository vinhnx/VTCode (907 stars, last pushed yesterday), licensed Apache-2.0. It adds 46 tokens to every session and 7,683 once invoked, about $0.0002 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-11-02.
rust-skills compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rust-skillsvinhnx/VTCode | Skill | 907 | yesterday | Apache-2.0 | A | 46 | Claude Code, Codex |
| uniflyhyperb1iss/unifly | Skill | 276 | 6d ago | Apache-2.0 | A | 63 | Claude Code |
| uniflyhyperb1iss/unifly | Skill | 276 | 6d ago | Apache-2.0 | A | 63 | Claude Code |
| rust-doctorarthjean/rust-doctor | Skill | 23 | 4d ago | Apache-2.0 | A | 49 | Claude Code, Codex |
| ratatui-tuistyrene-lab/omegon | Skill | 48 | today | none | A | 38 | Claude Code, Codex |
| m07-concurrencykikakkz/wait-agent | Skill | 24 | 2d ago | none | A | 75 | Claude Code |
| rust-learnerkikakkz/wait-agent | Skill | 24 | 2d ago | none | A | 123 | Claude Code |