Rust Cargo Hygiene

Rust Cargo Hygiene is a skill for Claude Code, Codex from niels-emmer/myace. It costs 28 tokens per session (354 once invoked), scanned B, original, MIT.

A checklist for keeping Rust projects' Cargo configuration, features, dependencies, and builds consistent. Cargo is Rust's package manager and build tool.

In plain words
What is it for?
Use it when creating a Rust package or workspace, adding dependencies, choosing supported Rust versions, or setting up build checks.
Why use it?
It reduces dependency drift, unnecessary features, security advisories, and differences between local builds and continuous integration (automated checks run for changes).

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when creating a Rust package or workspace, adding dependencies, choosing supported Rust versions, or setting up build checks.

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

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 Cargo Hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/rust-cargo-hygiene/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/rust-cargo-hygiene)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/rust-cargo-hygiene"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/rust-cargo-hygiene/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 Cargo Hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/rust-cargo-hygiene"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/rust-cargo-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 354 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00028 $0.00354
Opus 5.5 $0.00011 $0.00142
Sonnet 5.5 $0.00006 $0.00071
Haiku 4.5 $0.00003 $0.00035

Measured today against content hash 84428b871dca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

Rust Cargo Hygiene scanned grade B 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 today.

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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

- **Build scripts and proc-macros** run arbitrary code at build time; review new ones as you would an install script.
collections/additional/rust-developer/skills/rust-cargo-hygiene/SKILL.md · 30 lines

What it actually says

Purpose

Keep a Rust build reproducible, lean and checked for advisories.

When to use it

When creating a crate or workspace, adding or upgrading dependencies, or setting up CI.

Checklist

  • Edition and MSRV: set edition and rust-version; test on the MSRV and on stable in CI.
  • Lockfile: commit Cargo.lock for binaries and services; libraries may leave it out but should test against current dependency versions.
  • Features: additive features only; default features minimal; document each feature; test the main combinations.
  • Workspace: share dependency versions and lints through [workspace.dependencies] and [workspace.lints].
  • Advisories: cargo audit or cargo deny check in CI for advisories, licences, bans and sources.
  • Build scripts and proc-macros run arbitrary code at build time; review new ones as you would an install script.
  • Profiles: set release options deliberately (LTO, panic, codegen-units) and measure before tuning.

Expected output

A crate or workspace whose dependency set is minimal, checked for advisories, and builds the same way everywhere.

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. today First seen · 30 lines · 28 tokens per session scan B 84428b871dca

Subscribe to this mod's changes

Rust Cargo Hygiene is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed yesterday), licensed MIT. It adds 28 tokens to every session and 354 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

Rust Cargo Hygiene compared with skills from other repositories

Rust Cargo Hygiene next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Rust Cargo Hygieneniels-emmer/myaceSkill1yesterdayMITB28Claude Code, Codex
loom-rustcosmix/loomSkill66todayMITA15Claude Code, Codex
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
rust-learneractionbook/actionbookSkill1.6k1mo agoApache-2.0A51Claude Code
tauri-expertroedyrustam/vibes-plugSkill1293d agoMITA44Cursor
loom-pythoncosmix/loomSkill66todayMITA14Claude Code, Codex