rust-engineering

rust-engineering is a skill for Claude Code, Codex from mfmezger/ai_agent_dotfiles. It costs 121 tokens per session (956 once invoked), scanned A, original, MIT.

A set of engineering guidelines for writing, reviewing, refactoring, and debugging Rust code. Rust is a programming language designed to catch many memory and concurrency problems before a program runs.

In plain words
What is it for?
It guides Rust libraries, applications, and command-line tools, including async code with Tokio, error handling, performance work, and verification with formatting, linting, and tests.
Why use it?
It helps agents make deliberate choices about ownership, errors, concurrency, APIs, and testing instead of relying on loosely structured code.

Skill for Claude CodeCodex

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/mfmezger/ai_agent_dotfiles/rust-engineering
Any agent
npx skills add mfmezger/ai_agent_dotfiles --skill rust-engineering
Clone the repo
git clone --depth 1 https://github.com/mfmezger/ai_agent_dotfiles

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/mfmezger/ai_agent_dotfiles/rust-engineering.svg)](https://agentmods.dev/skills/mfmezger/ai_agent_dotfiles/rust-engineering)
Your own site
<a href="https://agentmods.dev/skills/mfmezger/ai_agent_dotfiles/rust-engineering"><img src="https://agentmods.dev/badge/skills/mfmezger/ai_agent_dotfiles/rust-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 956 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 $0.00121 $0.00956
Opus 5 $0.00060 $0.00478
Sonnet 5 $0.00024 $0.00191
Haiku 4.5 $0.00012 $0.00096

Measured 4d ago against content hash fb1a77767077, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rust-engineering 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 4d 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.

shared/skills/rust-engineering/SKILL.md · 69 lines

How it starts

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

Rust Engineering

Produce Rust that is safe, explicit, and maintainable under review. Default to stable language features, minimal unsafe, narrow APIs, and code that passes formatting, linting, and tests.

Workflow

  1. Identify the artifact. Library: optimize for explicit API boundaries, typed errors, docs, and semver-safe design. Application or CLI: optimize for operability, context-rich errors, tracing, and clear failure modes.
  2. Model types before writing control flow. Prefer enums, newtypes, and private fields over ad hoc strings, flags, or loosely related values.
  3. Choose ownership deliberately. Accept borrowed inputs where practical, return owned outputs when crossing boundaries, and make cloning explicit.
  4. Choose the failure model early. Libraries usually use thiserror; applications usually use anyhow at the outer boundary and typed errors internally when helpful.
  5. Choose the concurrency model deliberately. Use synchronous code unless async is justified by I/O concurrency needs. When async is justified, use Tokio and design cancellation, timeouts, and shutdown explicitly.
  6. Verify before finalizing. Run cargo fmt --check, cargo clippy --all-targets --all-features, and relevant tests. Address warnings instead of normalizing them.

Load References By Need

Need Reference
Project setup, crate structure, CLI patterns, tracing references/workflow.md
Error model, thiserror vs anyhow, context, path/file failure handling references/errors.md
Ownership, API boundaries, newtypes, traits, visibility, serde-facing types references/api-and-types.md
Tokio, cancellation, timeouts, shared state, task spawning, async traits references/async-and-concurrency.md
Unit/integration/doc/property tests, benchmarks, temp files, review checklist references/testing-and-quality.md
Allocation control, data layout, slices, Cow, boxing, profiling references/performance-and-memory.md
Common footguns and review traps references/footguns.md

Read the full file on GitHub · 69 lines

Files

What ships with it

7 files 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. 4d ago First seen · 69 lines · 121 tokens per session scan A fb1a77767077

Subscribe to this mod's changes

rust-engineering is a skill published in the GitHub repository mfmezger/ai_agent_dotfiles (5 stars, last pushed 1mo ago), licensed MIT. It adds 121 tokens to every session and 956 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

horizon-browser

Control, inspect, or audit a live browser panel inside Horizon through the Horizon browser MCP tools.

peters/horizon · 23 tokens

horizon-notify

Notify the Horizon workspace user about completed work, findings, or needed decisions. Only works when HORIZON env var is set.

peters/horizon · 31 tokens

recall

Use Recall to search, inspect, continue, export, resume, or share indexed AI coding sessions. Trigger for project-history lookup, recent work from other agents, file history, unfinished-session continuation, and published session-page management.

samzong/Recall · 48 tokens

reflect

Use Recall Reflect to review AI coding workflow history as a conversation-first timeline and discuss observed patterns before changing behavior. Trigger when the user asks to reflect on a project, review AI coding workflow, inspect workflow friction, discuss repeated corrections, review handoffs, or explore possible…

samzong/Recall · 57 tokens

recall-ext

Develop, release, and self-check Recall extensions. Use when working on Recall ext/extension host behavior, official extensions under extensions/recall-, extension manifests, extension catalog and binary release flow, managed install/upgrade/remove design, or docs that explain Recall's extension model.

samzong/Recall · 60 tokens

react-best-practices

React and Next.js performance guidelines from Vercel Engineering. Use when writing, reviewing, or refactoring React components, hooks, client data fetching, rendering behavior, bundle imports, async request flows, or Next.js pages and server code.

mxyhi/token_proxy · 54 tokens