rust-skills

rust-skills is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 84 tokens per session (10,225 once invoked), scanned A, a copy of rust-skills, MIT.

A set of Rust coding guidelines covering ownership, error handling, asynchronous and concurrent code, unsafe code, APIs, performance and other language practices. Rust is a programming language with strict rules for memory safety.

In plain words
What is it for?
Use it when creating, reviewing, refactoring or optimizing Rust code, including libraries, asynchronous services, concurrent code and unsafe sections.
Why use it?
It gives agents consistent rules for writing or reviewing Rust and helps expose borrowing, error-handling, safety and performance problems during changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating, reviewing, refactoring or optimizing Rust code, including libraries, asynchronous services, concurrent code and unsafe sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/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 sutchan/Agent-Skills-Hub --skill rust-skills
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

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/sutchan/agent-skills-hub/rust-skills/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/rust-skills)
Your own site
<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.

agentmods 80×15 button for rust-skills

Your own site · 80×15
<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>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,225 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 100% copy Near-identical to another mod 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.00084 $0.10225
Opus 5.5 $0.00034 $0.04090
Sonnet 5.5 $0.00017 $0.02045
Haiku 4.5 $0.00008 $0.01022

Measured today against content hash 5a74070e740c, 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 today.

The scan reads SKILL.md. This mod also ships 5 executable files (checks/analyze.py, checks/check.sh, checks/gen_index.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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

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.

skills/rust-skills/SKILL.md · 500 lines

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 unsafe code
  • 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

Read the full file on GitHub · 500 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. today First seen · 500 lines · 84 tokens per session scan A 5a74070e740c

Subscribe to this mod's changes

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.

Related

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.

roedyrustam/vibes-plug · 45 tokens

tauri-expert

Expert skill for Tauri (v2) development, Rust backend, IPC, and security / Panduan ahli untuk pengembangan Tauri v2, Rust backend, IPC, dan keamanan.

roedyrustam/vibes-plug · 43 tokens

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…

roedyrustam/vibes-plug · 91 tokens

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…

org2AI/ORG2 · 70 tokens

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.

Benknightdark/neo-skills · 58 tokens

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.

jim60105/copilot-prompt · 56 tokens