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.
npx skills add CassetteTapeCrackle/claude-starters --skill clean-code-rustgit clone --depth 1 https://github.com/CassetteTapeCrackle/claude-startersWrote 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.
[](https://agentmods.dev/skills/cassettetapecrackle/claude-starters/clean-code-rust)<a href="https://agentmods.dev/skills/cassettetapecrackle/claude-starters/clean-code-rust"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-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.
<a href="https://agentmods.dev/skills/cassettetapecrackle/claude-starters/clean-code-rust"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.00350 |
| Opus 5.5 | $0.00018 | $0.00140 |
| Sonnet 5.5 | $0.00009 | $0.00070 |
| Haiku 4.5 | $0.00004 | $0.00035 |
Grade A, and why
clean-code-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 1mo 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.
What it actually says
Clean-code Rust (depth)
On top of the base rules (edition 2021, clippy -D warnings, rustfmt, cargo test).
Errors
- Libraries: define an error enum with
thiserror, returnResult<_, MyError>, propagate with?. - Binaries:
anyhow::Result+.context("..."). Never.unwrap()/.expect()outside tests or justified startup.
Ownership & borrows
- Take
&T/&mut Tin function signatures; own only when you must. Return owned values. - Reach for
Rc<RefCell<_>>only when shared mutability is genuinely required — it's a smell as a default; prefer restructuring ownership or passing&mut. - Newtypes (
struct UserId(u64)) over bare primitives for meaning + type safety.
Style
- Iterators/adapters over manual index loops;
?over match-on-error pyramids. - Derive (
Debug,Clone,PartialEq) rather than hand-writing.impl Traitin args for flexibility. clippy::pedanticis a good aspiration; silence lints with a reason, never blanket-allow.
Smells
.clone()sprinkled to dodge the borrow checker → rethink ownership.unsafewithout// SAFETY:→ not acceptable.- Stringly-typed IDs/states → newtype or enum.
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.
- 1mo ago First seen · 28 lines · 44 tokens per session scan A c2d886d21303
clean-code-rust is a skill published in the GitHub repository CassetteTapeCrackle/claude-starters (1 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 350 once invoked, about $0.0002 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-31.
Other skills, from other repositories
stack-pr
Use when breaking a too-big branch into a stack of smaller chained PRs — commit-based default, --smart agent-reshape, gh-stack detection, cross-links. Invoked by /orc:stack-pr and /orc:ship's size gate.
review-contract
The canonical review findings contract — JSON schema, severity enum, mechanical severity→event mapping, confidence ≥0.8 rule.
turborepo
Turborepo monorepo build-system guidance — turbo.json task pipelines, caching, the turbo CLI, --filter/--affected, CI, env vars, and packages.
caveman-review
Ultra-compressed code review comments — one line per finding: location, problem, fix.
rs-reviewer
Review selected Rust code for ownership, errors, concurrency, async lifecycle, unsafe and FFI contracts, and runtime/API defects using the project's actual toolchain, features, and dependencies.
improve-codebase-architecture
Find architecture-deepening opportunities in a codebase.