rust-patterns

rust-patterns is a skill for Claude Code from Nmor/the-claude-council. It costs 144 tokens per session (9,522 once invoked), scanned C, original, no licence file.

A guide to common Rust design patterns, including ownership, typed data, explicit errors, exhaustive enums, builders, and trait-based interfaces.

In plain words
What is it for?
It is for structuring Rust libraries and applications, validating domain values, managing optional inputs, and separating components through interfaces.
Why use it?
It helps developers design Rust code that makes invalid states harder to represent and handles errors clearly.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit It is for structuring Rust libraries and applications, validating domain values, managing optional inputs, and separating components through interfaces.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nmor/the-claude-council/rust-patterns/github.svg)](https://agentmods.dev/skills/nmor/the-claude-council/rust-patterns)
Your own site
<a href="https://agentmods.dev/skills/nmor/the-claude-council/rust-patterns"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/rust-patterns/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-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/nmor/the-claude-council/rust-patterns"><img src="https://agentmods.dev/badge/skills/nmor/the-claude-council/rust-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,522 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00144 $0.09522
Opus 5 $0.00072 $0.04761
Sonnet 5 $0.00029 $0.01904
Haiku 4.5 $0.00014 $0.00952

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

Security

Grade C, and why

rust-patterns scanned grade C with 1 finding 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.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

// also block 169.254.169.254 (AWS IMDS)
skills/rust-patterns/SKILL.md · 1,380 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 1,380 lines · 144 tokens per session scan C 1ff5b2a7d947

Subscribe to this mod's changes

rust-patterns is a skill published in the GitHub repository Nmor/the-claude-council (9 stars, last pushed 2d ago), with no licence file. It adds 144 tokens to every session and 9,522 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 1 finding (cloud metadata endpoint). 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-skills

Comprehensive Rust coding guidelines with 265 rules across 26 categories. Use when writing, reviewing, or refactoring Rust code. Covers ownership, error handling, async patterns, concurrency, unsafe code, API design, memory optimization, performance, numeric safety, conversions, serde, pattern matching, macros…

leonardomso/rust-skills · 84 tokens

standards

Use this agent when you need to evaluate code, architecture, or development practices against the NASAB framework principles and Rust best practices.

samibs/skillfoundry · 29 tokens

anti-ai-slop

Apply this skill when auditing, writing, or reviewing Rust code to avoid generic "AI slop" patterns: boilerplate structs with no purpose, copy-paste error handling, meaningless variable names, over-engineered abstractions, or hollow documentation. Triggers: "this looks AI-generated", "too much boilerplate"…

d-oit/rust-2026-template · 112 tokens

rs-reviewer

Review Rust code for ownership, error handling, unsafe usage, and idiomatic patterns.

RaNDoM6913/claude-code-superkit · 20 tokens

clean-code-rust

Use when writing or reviewing Rust — deeper idioms (ownership/borrows, error handling with thiserror/anyhow, avoiding unwrap and Rc , iterator style, newtypes).

CassetteTapeCrackle/claude-starters · 44 tokens

rust-review

Rust Code Review: Reviews Rust code for ownership patterns, lifetime management, unsafe usage, error handling with Result/Option, concurrency safety, and idiomatic Rust patterns. Covers async Rust (tokio/async-std), trait design, macro hygiene, and performance. Use when the user wants a review of Rust code, mentions…

camilooscargbaptista/cto-toolkit · 100 tokens