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 sutchan/Agent-Skills-Hub --skill rust-skillsgit clone --depth 1 https://github.com/sutchan/Agent-Skills-HubWrote 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/sutchan/agent-skills-hub/rust-skills)<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/rust-skills"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/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/sutchan/agent-skills-hub/rust-skills"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/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.00084 | $0.10225 |
| Opus 5.5 | $0.00034 | $0.04090 |
| Sonnet 5.5 | $0.00017 | $0.02045 |
| Haiku 4.5 | $0.00008 | $0.01022 |
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 today.
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.
This is a copy
100% identical to rust-skills — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 500 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 265 rules across 26 categories, prioritized by impact to guide LLMs in code generation and refactoring. Current for Rust 1.96 (2024 edition).
When to Apply
Reference these guidelines when:
- Writing new Rust functions, structs, or modules
- Implementing error handling or async code
- Writing concurrent, parallel, or
unsafecode - Designing public APIs for libraries
- Reviewing code for ownership/borrowing issues
- Optimizing memory usage or reducing allocations
- Tuning performance for hot paths
- Refactoring existing Rust code
Rule Categories by Priority
| Priority | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Ownership & Borrowing | CRITICAL | own- |
12 |
| 2 | Error Handling | CRITICAL | err- |
12 |
| 3 | Memory Optimization | CRITICAL | mem- |
17 |
| 4 | Unsafe Code | CRITICAL | unsafe- |
7 |
| 5 | API Design | HIGH | api- |
17 |
| 6 | Async/Await | HIGH | async- |
18 |
| 7 | Concurrency | HIGH | conc- |
4 |
| 8 | Compiler Optimization | HIGH | opt- |
12 |
| 9 | Numeric & Arithmetic Safety | HIGH | num- |
5 |
| 10 | Type Safety | MEDIUM | type- |
13 |
| 11 | Trait & Generics Design | MEDIUM | trait- |
6 |
| 12 | Conversions | MEDIUM | conv- |
3 |
| 13 | Const & Compile-Time | MEDIUM | const- |
4 |
| 14 | Serde | MEDIUM | serde- |
8 |
| 15 | Pattern Matching | MEDIUM | pat- |
5 |
| 16 | Macros | MEDIUM | macro- |
8 |
| 17 | Closures | MEDIUM | closure- |
5 |
| 18 | Collections | MEDIUM | coll- |
4 |
| 19 | Naming Conventions | MEDIUM | name- |
16 |
| 20 | Testing | MEDIUM | test- |
15 |
| 21 | Documentation | MEDIUM | doc- |
12 |
| 22 | Observability | MEDIUM | obs- |
7 |
| 23 | Performance Patterns | MEDIUM | perf- |
13 |
| 24 | Project Structure | LOW | proj- |
14 |
| 25 | Clippy & Linting | LOW | lint- |
13 |
| 26 | Anti-patterns | REFERENCE | anti- |
15 |
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.
- .github/workflows/ci.yml 679 B
- AGENTS.md 8 B
- CHANGELOG.md 3.3 KB
- checks/.gitignore 68 B
- checks/analyze.py 5.7 KB runs code
- checks/baseline.txt 8.2 KB
- checks/Cargo.lock 42 KB
- checks/Cargo.toml 1.1 KB
- checks/check.sh 1.2 KB runs code
- checks/gen_index.py 5.6 KB runs code
- checks/gen.py 3.4 KB runs code
- checks/README.md 2.7 KB
- checks/rust-toolchain.toml 218 B
- checks/src/lib.rs 143 B
- checks/validate.py 2.0 KB runs code
- CLAUDE.md 8 B
- CONTRIBUTING.md 2.5 KB
- LICENSE 1.0 KB
- README.md 9.9 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.6 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.7 KB
- rules/anti-string-for-str.md 2.6 KB
- rules/anti-stringly-typed.md 4.1 KB
- rules/anti-type-erasure.md 3.6 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.3 KB
- rules/api-default-impl.md 4.0 KB
- rules/api-extension-trait.md 3.8 KB
- rules/api-from-not-into.md 3.3 KB
- rules/api-impl-asref.md 3.5 KB
- rules/api-impl-fromiterator.md 3.4 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-non-exhaustive.md 3.9 KB
- rules/api-operator-overload.md 3.3 KB
- rules/api-parse-dont-validate.md 4.3 KB
- rules/api-sealed-trait.md 4.5 KB
- rules/api-serde-optional.md 4.2 KB
- rules/api-typestate.md 4.9 KB
- rules/async-async-fn-bounds.md 3.4 KB
- rules/async-bounded-channel.md 4.5 KB
- rules/async-broadcast-pubsub.md 4.1 KB
- rules/async-cancel-safety.md 4.3 KB
- rules/async-cancellation-token.md 4.8 KB
- rules/async-clone-before-await.md 4.0 KB
- rules/async-fn-in-trait.md 3.6 KB
- rules/async-join-parallel.md 4.0 KB
- rules/async-joinset-structured.md 4.5 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.
- today First seen · 500 lines · 84 tokens per session scan A 5a74070e740c
rust-skills is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (2 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 10,225 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to rust-skills, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
rust-programming-expert
Expert-level skill for Rust programming (Rust 2024 / v1.85+). Covers memory safety, async, Axum/SQLx, CLI, and optimization in English and Indonesian.
tauri-expert
Expert skill for Tauri (v2) development, Rust backend, IPC, and security / Panduan ahli untuk pengembangan Tauri v2, Rust backend, IPC, dan keamanan.
wasm-edge-computing-expert
Expert guide for WebAssembly (WASM) and Edge Computing. Covers WASI preview 2, Spin/Fermyon, Cloudflare Workers WASM, and high-performance browser computing / Panduan ahli untuk WebAssembly (WASM) dan Edge Computing. Mencakup WASI preview 2, Spin/Fermyon, Cloudflare Workers WASM, dan komputasi performa tinggi di…
architecture-audit
Systematic architecture audit and refactoring methodology for Rust + TypeScript codebases. Use when performing refactoring, cleanup, unification, code review, dead code removal, module reorganization, or tech debt elimination. Ensures no naming confusion, semantic overloading, hidden defaults, duplicate logic, or…
neo-rust
Use this skill when writing, refactoring, debugging, or auditing Rust code. Trigger for .rs files, Cargo projects, ownership/borrowing/lifetime issues, Result/Option error handling, unnecessary clone/performance work, unsafe code review, or modern Rust architecture.
rewrite-rustdoc
Rewrite Rust documentation comments to ensure all documentation and comments are in English, following rustdoc guidelines. Use when the user wants to clean up Rust documentation, translate Chinese comments to English, fix missing documentation, or ensure rustdoc compliance in a Rust codebase.