rust-expert

rust-expert is a skill for Claude Code from personamanagmentlayer/pcl. It costs 60 tokens per session (1,885 once invoked), scanned A, original, Apache-2.0.

A guide to Rust, a programming language designed for fast software with strict memory-safety rules. It explains ownership, borrowing, lifetimes, asynchronous programming, and error handling.

In plain words
What is it for?
Use it when building systems software, concurrent programs, command-line tools, or other performance-sensitive Rust applications.
Why use it?
It helps developers understand compiler errors caused by unsafe memory access or incorrect ownership, which are central to Rust programming.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it when building systems software, concurrent programs, command-line tools, or other performance-sensitive Rust applications.

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

Made for: Claude Code.

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/personamanagmentlayer/pcl/rust-expert/github.svg)](https://agentmods.dev/skills/personamanagmentlayer/pcl/rust-expert)
Your own site
<a href="https://agentmods.dev/skills/personamanagmentlayer/pcl/rust-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/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/personamanagmentlayer/pcl/rust-expert"><img src="https://agentmods.dev/badge/skills/personamanagmentlayer/pcl/rust-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,885 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 253
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
How audits are shown
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.00060 $0.01885
Opus 5.5 $0.00024 $0.00754
Sonnet 5.5 $0.00012 $0.00377
Haiku 4.5 $0.00006 $0.00188

Measured 1mo ago against content hash a0d89eb4d52a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

stdlib/languages/rust-expert/SKILL.md · 361 lines

How it starts

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

Rust Expert

You are an expert Rust developer with deep knowledge of ownership, lifetimes, type system, async programming, and systems programming. You write safe, fast, and idiomatic Rust code following community best practices.

Best Practices

1. Use Idiomatic Rust

// Prefer iterators over loops
let sum: i32 = vec![1, 2, 3, 4, 5]
    .iter()
    .map(|x| x * 2)
    .filter(|x| x > &5)
    .sum();

// Use match for exhaustive handling
match result {
    Ok(value) => println!("Success: {}", value),
    Err(e) => eprintln!("Error: {}", e),
}

// Prefer &str over &String in function parameters
fn greet(name: &str) -> String {
    format!("Hello, {}!", name)
}

2. Avoid Unnecessary Cloning

// Bad - unnecessary clone
fn process(data: &Vec<i32>) -> Vec<i32> {
    data.clone() // Allocates memory
}

// Good - borrow when possible
fn process(data: &[i32]) -> i32 {
    data.iter().sum()
}

// Good - use Cow when needed
use std::borrow::Cow;

fn process<'a>(data: &'a str) -> Cow<'a, str> {
    if data.contains("bad") {
        Cow::Owned(data.replace("bad", "good"))
    } else {
        Cow::Borrowed(data)
    }
}

3. Use the Type System

// Newtype pattern for type safety
struct UserId(u64);
struct ProductId(u64);

fn get_user(id: UserId) -> User {
    // Cannot accidentally pass ProductId
}

// Builder pattern with typestate
struct Locked;
struct Unlocked;

struct Door<State> {
    state: PhantomData<State>,
}

impl Door<Locked> {
    fn unlock(self) -> Door<Unlocked> {
        Door { state: PhantomData }
    }
}

impl Door<Unlocked> {
    fn lock(self) -> Door<Locked> {
        Door { state: PhantomData }
    }

    fn open(&self) {
        println!("Opening door");
    }
}

4. Error Handling

// Use Result<T, E> for recoverable errors
fn parse_config(path: &str) -> Result<Config, ConfigError> {
    // Implementation
}

// Use panic! for unrecoverable errors
fn get_element(slice: &[i32], index: usize) -> i32 {
    if index >= slice.len() {
        panic!("Index out of bounds");
    }
    slice[index]
}

// Use Option<T> for nullable values
fn find_user(id: u64) -> Option<User> {
    // Implementation
}

Read the full file on GitHub · 361 lines

Files

What ships with it

1 file 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. 1mo ago Changed · -637 lines · +37 tokens per session a0d89eb4d52a
  2. 1mo ago First seen · 998 lines · 23 tokens per session scan A a16decbceedb

Subscribe to this mod's changes

rust-expert is a skill published in the GitHub repository personamanagmentlayer/pcl (44 stars, last pushed 9d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,885 once invoked, about $0.0002 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-03.

Related

Other skills, from other repositories

rust-systems-programming

Complete guide for Rust systems programming including ownership, borrowing, concurrency, async programming, unsafe code, and performance optimization.

manutej/luxor-claude-marketplace · 28 tokens

rust-docs

Comprehensive Rust 1.97.0 reference covering all language features: ownership, borrowing, lifetimes, types, variables, control flow, functions, closures, structs, enums, traits, generics, error handling, collections, strings, concurrency, async/await, modules, packages, macros, attributes, smart pointers, unsafe Rust…

pledgeandgrow/pledge-skills · 130 tokens

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.

affaan-m/ECC · 28 tokens

rubyllm

Build and maintain Ruby or Rails applications with the RubyLLM AI framework. Use for chats, agents, tools, MCP servers, structured output, judgments, evaluations, media generation, transcription, OCR, moderation, embeddings, reranking, tracing, Rails integration, and RubyLLM upgrades; not for contributing to the…

crmne/ruby_llm · 70 tokens

rust-string-enums

Define or refactor Rust string-valued enums and their Serde adapters in litellm-rust, using Strum and serdewith while preserving parsing, wire values, and schemas.

BerriAI/litellm · 41 tokens

rust-tracing

Add or change Rust diagnostic tracing in litellm-rust, including route spans, subscriber layers, and Python logger delivery.

BerriAI/litellm · 28 tokens