rust_expert

rust_expert is a skill for Claude Code, Codex from ApexIQ/skillsmith. It costs 20 tokens per session (297 once invoked), scanned A, original, MIT.

A set of guidelines for systems programming in Rust, covering ownership, borrowing, lifetimes, error handling, asynchronous code, testing, and limited use of unsafe code.

In plain words
What is it for?
Use it to design or review Rust applications and libraries, choose between Result and Option, structure traits and async code, and check code with Cargo tools.
Why use it?
Rust's rules can prevent memory errors and data races, but developers still need consistent patterns for resource handling, concurrency, and errors.

Skill for Claude CodeCodex

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

Good fit Use it to design or review Rust applications and libraries, choose between Result and Option, structure traits and async code, and check code with Cargo tools.

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

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_expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/apexiq/skillsmith/rust_expert/github.svg)](https://agentmods.dev/skills/apexiq/skillsmith/rust_expert)
Your own site
<a href="https://agentmods.dev/skills/apexiq/skillsmith/rust_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/rust_expert/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_expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/apexiq/skillsmith/rust_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/rust_expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 297 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.00020 $0.00297
Opus 5 $0.00010 $0.00148
Sonnet 5 $0.00004 $0.00059
Haiku 4.5 $0.00002 $0.00030

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

Security

Grade A, and why

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

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.

src/skillsmith/templates/.agent/skills/rust_expert/SKILL.md · 35 lines

What it actually says

Rust Expert

Professional guidelines for systems programming in Rust.

Philosophy

  • Safety First: Leverage the borrow checker to eliminate data races and memory errors.
  • Zero-Cost Abstractions: Use high-level constructs that compile down to efficient machine code.
  • Fearless Concurrency: Use Rust's type system to ensure thread safety.

Patterns

  • RAII: Resource Acquisition Is Initialization for memory and resource management.
  • Error Handling: Use Result and Option instead of exceptions. Use anyhow for apps and thiserror for libraries.
  • Traits: Define shared behavior through traits. Prefer composition over inheritance.
  • Async: Use tokio for high-performance asynchronous I/O.

Best Practices

  • Cargo: Use cargo fmt and cargo clippy religiously.
  • Testing: Write unit tests in the same file and integration tests in tests/.
  • Documentation: Use /// for doc comments and cargo doc to generate documentation.
  • Unsafe: Minimize and audit all unsafe blocks. Document why they are necessary.
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 · 35 lines · 20 tokens per session scan A f389aefe5e71

Subscribe to this mod's changes

rust_expert is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 5mo ago), licensed MIT. It adds 20 tokens to every session and 297 once invoked, about $0.0001 per session on Opus 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-03.

Related

Other skills, from other repositories

rust-sop

Standard operating procedures for writing Rust in joelclaw. Covers idiomatic patterns, async/tokio, error handling, project structure, testing, and clawnode-specific conventions. Use when writing Rust code, reviewing Rust PRs, scaffolding Rust projects, debugging ownership/lifetime errors, or working on clawnode.…

joelhooks/joelclaw · 112 tokens

cargo-workflows

Manage Rust projects effectively with Cargo workspaces, features, and tooling. Use when the user sets up Cargo workspaces, configures feature flags, writes build.rs scripts, prepares crates for publishing, or uses cargo clippy, cargo fmt, and other Cargo development tools.

VersoXBT/claude-initial-setup · 58 tokens

error-handling-rust

Implement idiomatic Rust error handling with Result, Option, and the ? operator. Use when the user handles errors in Rust, creates custom error types, uses thiserror or anyhow, implements the From trait for error conversion, or asks about Result/Option patterns and error composition strategies.

VersoXBT/claude-initial-setup · 62 tokens

ownership-borrowing

Master Rust's ownership, borrowing, and lifetime system for memory-safe code. Use when the user encounters borrow checker errors, lifetime annotations, needs smart pointers (Box/Rc/Arc), works with move semantics, or asks about Clone vs Copy, ownership transfer, and reference management in Rust.

VersoXBT/claude-initial-setup · 63 tokens

rust-project

Modern Rust project architecture guide for 2025. Use when creating Rust projects (CLI, web services, libraries). Covers workspace structure, error handling, async patterns, and idiomatic Rust best practices.

majiayu000/spellbook · 43 tokens

rust-best-practices

Helps write high-quality, idiomatic Rust code following Microsoft Pragmatic Rust Guidelines. Use when writing, reviewing, optimizing Rust code, or dealing with lifetimes, borrow checker, memory safety, cargo, and async Rust.

majiayu000/spellbook · 51 tokens