rust-expert

rust-expert is a skill for Claude Code from FlorianBruniaux/ccboard. It costs 45 tokens per session (1,447 once invoked), scanned A, original, MIT.

A set of guidelines for developing and reviewing Rust programs, especially command-line and system tools. It covers ownership, borrowing, error handling, traits, asynchronous Tokio code, and tests.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring Rust 1.75+ code, particularly CLI and system software.
Why use it?
It helps avoid common Rust mistakes and encourages consistent ways to handle memory, errors, reusable code, asynchronous work, and verification.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ccboard plugin — 14 skills, 2 commands, 10 agents, 4 hooks, 2 MCP servers shipped together

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.

agentmods
npx agentmods add skills/florianbruniaux/ccboard/rust-expert
Any agent
npx skills add FlorianBruniaux/ccboard --skill rust-expert
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/ccboard

Made for: Claude Code.

Or install ccboard, the plugin that ships this one along with the rest of its 14 skills, 2 commands, 10 agents, 4 hooks, 2 MCP servers.

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/florianbruniaux/ccboard/rust-expert.svg)](https://agentmods.dev/skills/florianbruniaux/ccboard/rust-expert)
Your own site
<a href="https://agentmods.dev/skills/florianbruniaux/ccboard/rust-expert"><img src="https://agentmods.dev/badge/skills/florianbruniaux/ccboard/rust-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00045 $0.01447
Opus 5 $0.00023 $0.00724
Sonnet 5 $0.00009 $0.00289
Haiku 4.5 $0.00005 $0.00145

Measured 6d ago against content hash 60ec40f3ccfc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

.claude/skills/rust-expert/SKILL.md · 174 lines

How it starts

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

Rust Expert Skill

Expert in idiomatic Rust 1.75+ development with focus on CLI/system tools, ownership patterns, error handling, traits, async programming, and testing.

Core Competencies

1. Ownership & Borrowing Mastery

  • Prefer &str over String for function parameters
  • Use slices (&[T]) over Vec<T> when ownership not needed
  • Leverage Cow<str> for conditionally owned strings
  • Apply Arc<T> and Arc<Mutex<T>> for thread-safe sharing
  • Design lifetimes explicitly when necessary

2. Error Handling Excellence

  • Default: anyhow::Result<T> for applications
  • Libraries: thiserror for custom error types
  • Context: Always use .context("operation description") with ?
  • No unwrap: Use ? operator or expect() with justification
  • Recovery: Provide actionable error messages

3. Trait-Driven Design

  • Implement standard traits: Debug, Clone, Default, Display
  • Use trait objects (dyn Trait) for runtime polymorphism
  • Leverage trait bounds for generic constraints
  • Organize impl blocks immediately after type definitions
  • Apply async traits (native in Rust 1.75+)

4. Async Programming Patterns

  • Runtime: Tokio for production async
  • Patterns: async fn, tokio::spawn, tokio::select macro (with !)
  • Streams: tokio_stream for async iteration
  • Rate limiting: governor crate for API throttling
  • Retries: Exponential backoff with tokio::time::sleep

5. CLI Development Best Practices

  • Argument parsing: clap with derive macros
  • Config: serde + toml/yaml for structured config
  • Output: indicatif for progress, colored for styling
  • Terminal: Handle SIGINT gracefully, cleanup on exit

6. Testing Strategy

  • Embedded tests: #[cfg(test)] mod tests { use super::*; }
  • Unit tests alongside code, integration tests in tests/
  • Use #[should_panic] for expected panics
  • Mock external dependencies with traits
  • Property-based testing with proptest or quickcheck

Read the full file on GitHub · 174 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. 6d ago First seen · 174 lines · 45 tokens per session scan A 60ec40f3ccfc

Subscribe to this mod's changes

rust-expert is a skill published in the GitHub repository FlorianBruniaux/ccboard (95 stars, last pushed 4d ago), licensed MIT. It adds 45 tokens to every session and 1,447 once invoked, about $0.0002 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-08-30.