rc-rust

rc-rust is a skill for Claude Code, Codex from rodolfochicone/rc-project. It costs 98 tokens per session (3,203 once invoked), scanned A, original, MIT.

A set of guidance for writing and reviewing Rust, a programming language designed for memory safety and performance.

In plain words
What is it for?
It covers borrowing and cloning, error types, Tokio-based asynchronous tasks, traits, tests, Clippy, documentation, and performance.
Why use it?
It helps developers make consistent decisions about ownership, errors, asynchronous work, testing, and code quality.

Skill for Claude CodeCodex

Part of the rc plugin — 32 skills, 2 commands, 4 agents, 5 hooks 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/rodolfochicone/rc-project/rc-rust
Any agent
npx skills add rodolfochicone/rc-project --skill rc-rust
Clone the repo
git clone --depth 1 https://github.com/rodolfochicone/rc-project

Made for: Claude Code, Codex.

Or install rc, the plugin that ships this one along with the rest of its 32 skills, 2 commands, 4 agents, 5 hooks.

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 rc-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/rodolfochicone/rc-project/rc-rust.svg)](https://agentmods.dev/skills/rodolfochicone/rc-project/rc-rust)
Your own site
<a href="https://agentmods.dev/skills/rodolfochicone/rc-project/rc-rust"><img src="https://agentmods.dev/badge/skills/rodolfochicone/rc-project/rc-rust.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,203 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.00098 $0.03203
Opus 5 $0.00049 $0.01602
Sonnet 5 $0.00020 $0.00641
Haiku 4.5 $0.00010 $0.00320

Measured 5d ago against content hash 3c7f2ce5b438, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

rc-rust 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 5d 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/stacks/rc-rust/SKILL.md · 259 lines

How it starts

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

Rust Best Practices

Unified Rust guidelines covering coding style, ownership, error handling, async patterns, traits, testing, performance, linting, and documentation. Apply when writing or reviewing Rust code.

Pair with

This skill owns Rust the language. The stack's layers live elsewhere — reach for them instead of duplicating their guidance here:

  • rc-axum — HTTP routing, extractors, Tower middleware, IntoResponse error mapping, WebSockets
  • rc-sqlxPgPool, query macros, transactions, migrations, #[sqlx::test]
  • rc-sveltekit — the SSR front end that consumes these APIs
  • rc-code-review — after cargo fmt/clippy/test come back green

When to Apply

  • Writing new Rust code or designing APIs
  • Reviewing or refactoring existing Rust code
  • Implementing async systems with Tokio
  • Designing error hierarchies with thiserror/anyhow
  • Choosing between borrowing, cloning, or ownership transfer
  • Setting up tests, benchmarks, or snapshot testing
  • Configuring clippy lints and workspace settings
  • Optimizing Rust code for performance

Reference Guide

Load detailed guidance based on context. Read the relevant file when the topic arises:

Topic Reference Load When
Coding Style references/coding-style.md Naming, imports, iterators, comments, string handling, macros
Error Handling references/error-handling.md Result, Option, ?, thiserror, anyhow, custom errors, async errors
Ownership & Pointers references/ownership-and-pointers.md Lifetimes, borrowing, smart pointers, Pin, Cow, interior mutability
Traits & Generics references/traits-and-generics.md Trait design, dispatch, GATs, sealed traits, type state pattern
Async & Concurrency references/async-and-concurrency.md Tokio, channels, streams, shutdown, runtime config, async traits
Sync Concurrency references/concurrency-sync.md Atomics, Mutex, RwLock, lock ordering, Send/Sync, memory ordering
Testing references/testing.md Unit/integration/doc tests, snapshot, proptest, mockall, benchmarks, fuzz
Performance references/performance.md Profiling, flamegraph, cloning, stack vs heap, iterators, allocation
Clippy & Linting references/clippy-and-linting.md Clippy config, key lints, workspace setup, #[expect] vs #[allow]
Documentation references/documentation.md Doc comments, rustdoc, doc lints, coverage checklist

Read the full file on GitHub · 259 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. 5d ago First seen · 259 lines · 98 tokens per session scan A 3c7f2ce5b438

Subscribe to this mod's changes

rc-rust is a skill published in the GitHub repository rodolfochicone/rc-project (19 stars, last pushed 29d ago), licensed MIT. It adds 98 tokens to every session and 3,203 once invoked, about $0.0005 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.