rust-skills

rust-skills is a skill for Claude Code, Codex from vinhnx/VTCode. It costs 46 tokens per session (7,683 once invoked), scanned A, original, Apache-2.0.

A collection of 193 rules for writing, reviewing, and improving Rust code. Rust is a programming language that gives developers detailed control over memory while checking many mistakes during compilation.

In plain words
What is it for?
Use it when creating or refactoring Rust functions, types, and modules, designing library APIs, reviewing code, handling errors, writing asynchronous code, or improving performance.
Why use it?
It helps avoid common Rust problems involving ownership, borrowing, errors, asynchronous code, memory use, performance, and public interfaces.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when creating or refactoring Rust functions, types, and modules, designing library APIs, reviewing code, handling errors, writing asynchronous code, or improving performance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinhnx/vtcode/rust-skills
Install

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.

Any agent
npx skills add vinhnx/VTCode --skill rust-skills
Clone the repo
git clone --depth 1 https://github.com/vinhnx/VTCode

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for rust-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinhnx/vtcode/rust-skills/github.svg)](https://agentmods.dev/skills/vinhnx/vtcode/rust-skills)
Your own site
<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.

agentmods 80×15 button for rust-skills

Your own site · 80×15
<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>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,683 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash c0977e2c4fc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/rust-skills/SKILL.md · 417 lines

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.

Read the full file on GitHub · 417 lines

Files

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.

Changes

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.

  1. 6d ago Changed · +26 lines c0977e2c4fc2
  2. 11d ago First seen · 391 lines · 46 tokens per session scan A ae6546574a64

Subscribe to this mod's changes

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.

Related

rust-skills compared with skills from other repositories

rust-skills next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-skillsvinhnx/VTCodeSkill907yesterdayApache-2.0A46Claude Code, Codex
uniflyhyperb1iss/uniflySkill2766d agoApache-2.0A63Claude Code
uniflyhyperb1iss/uniflySkill2766d agoApache-2.0A63Claude Code
rust-doctorarthjean/rust-doctorSkill234d agoApache-2.0A49Claude Code, Codex
ratatui-tuistyrene-lab/omegonSkill48todaynoneA38Claude Code, Codex
m07-concurrencykikakkz/wait-agentSkill242d agononeA75Claude Code
rust-learnerkikakkz/wait-agentSkill242d agononeA123Claude Code