rust-skills

rust-skills is a skill for Claude Code, Codex from KalarisLabs/Skill-Doctor. It costs 84 tokens per session (3,398 once invoked), scanned A, original, Apache-2.0.

A broad collection of Rust rules for writing, reviewing, and refactoring code. It covers ownership, errors, unsafe code, asynchronous work, concurrency, APIs, memory, and performance.

In plain words
What is it for?
Use it when implementing or reviewing Rust code, designing library APIs, handling async or concurrent work, or reducing allocations and other performance costs.
Why use it?
It provides detailed guidance for making Rust code safer, clearer, and less wasteful across many types of changes.

Skill for Claude CodeCodex

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

Good fit Use it when implementing or reviewing Rust code, designing library APIs, handling async or concurrent work, or reducing allocations and other performance costs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kalarislabs/skill-doctor/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 KalarisLabs/Skill-Doctor --skill rust-skills
Clone the repo
git clone --depth 1 https://github.com/KalarisLabs/Skill-Doctor

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/kalarislabs/skill-doctor/rust-skills/github.svg)](https://agentmods.dev/skills/kalarislabs/skill-doctor/rust-skills)
Your own site
<a href="https://agentmods.dev/skills/kalarislabs/skill-doctor/rust-skills"><img src="https://agentmods.dev/badge/skills/kalarislabs/skill-doctor/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/kalarislabs/skill-doctor/rust-skills"><img src="https://agentmods.dev/badge/skills/kalarislabs/skill-doctor/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 3,398 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.00084 $0.03398
Opus 5.5 $0.00034 $0.01359
Sonnet 5.5 $0.00017 $0.00680
Haiku 4.5 $0.00008 $0.00340

Measured 1mo ago against content hash 9eb0b2e0be74, 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 1mo 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.

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

How it starts

The opening of the file, as written. The whole thing — 171 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 · 171 lines

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. 1mo ago First seen · 171 lines · 84 tokens per session scan A 9eb0b2e0be74

Subscribe to this mod's changes

rust-skills is a skill published in the GitHub repository KalarisLabs/Skill-Doctor (13 stars, last pushed yesterday), licensed Apache-2.0. It adds 84 tokens to every session and 3,398 once invoked, about $0.0003 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-09-11.