savant-code: Skill for Claude Code

.agents/skills/coding-rust/SKILL.md

coding-rust is a skill for Claude Code, Codex from savant0x/savant-code. It costs 22 tokens per session (799 once invoked), scanned A, original, Apache-2.0.

A set of Rust coding rules covering names, ownership, error handling, and code-quality choices. Rust is a programming language that checks memory and ownership rules while building the program.

In plain words
What is it for?
Guiding Rust names, file layout, error types, fallible operations, lifetimes, and acceptable uses of panics.
Why use it?
It helps keep Rust code consistent and avoids unsafe or unclear patterns such as unchecked failures in production code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is savant0x/savant-code's own configuration. It tells Claude Code and Codex how to work on savant-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything savant-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to savant0x/savant-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/savant0x/savant-code/main/.agents/skills/coding-rust/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/savant0x/savant-code

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/savant0x/savant-code/coding-rust/github.svg)](https://agentmods.dev/skills/savant0x/savant-code/coding-rust)
Your own site
<a href="https://agentmods.dev/skills/savant0x/savant-code/coding-rust"><img src="https://agentmods.dev/badge/skills/savant0x/savant-code/coding-rust/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 coding-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/savant0x/savant-code/coding-rust"><img src="https://agentmods.dev/badge/skills/savant0x/savant-code/coding-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 799 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 pass 7 Sept 2026
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.00022 $0.00799
Opus 5.5 $0.00009 $0.00320
Sonnet 5.5 $0.00004 $0.00160
Haiku 4.5 $0.00002 $0.00080

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

Security

Grade A, and why

coding-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 13d 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.

.agents/skills/coding-rust/SKILL.md · 88 lines

How it starts

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

Rust Coding Standards

Naming Conventions

Element Convention Example
Structs PascalCase UserProfile, GameState
Enums PascalCase PlayerAction, TileType
Enum variants PascalCase TileType::Grassland
Functions snake_case calculate_distance, spawn_unit
Variables snake_case player_count, is_valid
Constants UPPER_SNAKE_CASE MAX_PLAYERS, TILE_SIZE
Statics UPPER_SNAKE_CASE GLOBAL_CONFIG
Modules snake_case player_manager, world_gen
Files snake_case.rs player_manager.rs, world_gen.rs
Traits PascalCase (noun/adjective) Serializable, Renderable
Type aliases PascalCase PlayerId, TileGrid
Lifetimes short lowercase 'a, 'ctx, 'de

Patterns

Error Handling

  • Use Result<T, E> for all fallible operations
  • Never use unwrap() or expect() in non-test code — use ? operator, match, or explicit error types
  • .expect("reason") is acceptable only in tests, examples, and main.rs where panicking is the intended behavior
  • Define project-specific error types using thiserror
  • Use anyhow for application-level error propagation

Ownership

  • Prefer borrowing (&T) over cloning
  • Use Arc<Mutex<T>> for shared mutable state
  • Use Rc<T> for single-threaded shared ownership
  • Document lifetime elision decisions in complex cases

Imports

  • Group: std → external crates → local modules
  • One blank line between groups
  • Prefer explicit imports over glob (use module::*)
  • Re-export public types at module boundaries

File Structure

src/
├── main.rs          # Entry point only
├── lib.rs           # Public API surface
├── config.rs        # Configuration types
├── error.rs         # Error types
├── [module]/
│   ├── mod.rs       # Module re-exports
│   ├── types.rs     # Data structures
│   ├── logic.rs     # Business logic
│   └── tests.rs     # Unit tests (or inline)

Read the full file on GitHub · 88 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. 13d ago Changed · +4 lines ccb20bd68899
  2. 2mo ago First seen · 84 lines · 22 tokens per session scan A 7b2e283623e2

Subscribe to this mod's changes

coding-rust is a skill published in the GitHub repository savant0x/savant-code (11 stars, last pushed 3d ago), licensed Apache-2.0. It adds 22 tokens to every session and 799 once invoked, about $0.0001 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-08-30.