rust-docs

rust-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 130 tokens per session (1,728 once invoked), scanned C, original, MIT.

A reference guide to Rust 1.97.0 and its standard library, covering the language, built-in tools, and common programming patterns. Rust is a programming language designed for speed and memory safety.

In plain words
What is it for?
Use it for questions about ownership, borrowing, lifetimes, types, error handling, concurrency, asynchronous code, modules, macros, and other Rust features.
Why use it?
It gives an agent organized language and library information when writing, explaining, or checking Rust code.

Skill for Claude CodeCodex

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

Good fit Use it for questions about ownership, borrowing, lifetimes, types, error handling, concurrency, asynchronous code, modules, macros, and other Rust features.

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

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-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/rust.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/rust)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/rust"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/rust.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00130 $0.01728
Opus 5 $0.00065 $0.00864
Sonnet 5 $0.00026 $0.00346
Haiku 4.5 $0.00013 $0.00173

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

Security

Grade C, and why

rust-docs scanned grade C with 2 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 7d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
skills/rust/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust Expert (v1.97.0, Edition 2024)

Official Documentation:

Quick Reference

Topic File
Ownership, borrowing, lifetimes, move semantics ownership-borrowing.md
Primitive types, variables, mutability, type inference types-variables.md
if, match, loops, blocks, expressions control-flow.md
Functions, closures, function pointers, iterators functions-closures.md
Structs, enums, pattern matching, unions structs-enums.md
Traits, generics, trait objects, impl Trait traits-generics.md
Result, Option, panic, error handling patterns error-handling.md
Vec, HashMap, String, str, slices, collections collections-strings.md
Threads, channels, Mutex, Arc, async/await, Send/Sync concurrency-async.md
Modules, crates, use, paths, visibility, workspaces modules-packages.md
Macros (declarative & procedural), attributes, derive macros-attributes.md
Box, Rc, Arc, RefCell, Cell, Cow, smart pointers smart-pointers.md
Unsafe Rust, raw pointers, FFI, extern, unions unsafe-ffi.md
Standard library modules, I/O, fs, net, process std-library.md
Unit tests, integration tests, doc tests, benchmarks testing.md
Cargo, build profiles, dependencies, features, workspaces cargo-build-system.md

Core Philosophy

Rust is a systems programming language focused on safety, speed, and concurrency. Key principles:

  1. Memory safety without GC — ownership and borrowing enforce safety at compile time
  2. Zero-cost abstractions — high-level constructs compile to efficient machine code
  3. No data races — Send/Sync traits and borrow checker prevent data races at compile time
  4. No null — Option replaces null pointers
  5. No exceptions — Result<T, E> for recoverable errors, panic for unrecoverable
  6. Type inference — compiler infers types, explicit annotations rarely needed
  7. Traits over inheritance — composition and trait bounds instead of class hierarchies
  8. Fearless concurrency — compiler guarantees thread safety

Read the full file on GitHub · 199 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. 7d ago First seen · 199 lines · 130 tokens per session scan C a99bc4497c28

Subscribe to this mod's changes

rust-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 130 tokens to every session and 1,728 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories