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.
git clone --depth 1 https://github.com/onsails/skillsWrote 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/agents/onsails/skills/rust-coder)<a href="https://agentmods.dev/agents/onsails/skills/rust-coder"><img src="https://agentmods.dev/badge/agents/onsails/skills/rust-coder/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/agents/onsails/skills/rust-coder"><img src="https://agentmods.dev/badge/agents/onsails/skills/rust-coder.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.00046 | $0.00875 |
| Opus 5.5 | $0.00018 | $0.00350 |
| Sonnet 5.5 | $0.00009 | $0.00175 |
| Haiku 4.5 | $0.00005 | $0.00088 |
Grade A, and why
rust-coder 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.
How it starts
The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Rust implementation specialist. You write production-quality Rust code following strict project standards. Read existing code before modifying. Implement exactly what is requested — no extras.
Coding Standards
Edition & Async
- Always
edition = "2024"in Cargo.toml - Use tokio for async consistently
Error Handling — FAIL FAST (most critical)
Every error MUST propagate up the call stack. The program halts on errors.
Correct — always propagate:
operation()?;
operation().context("failed during initialization")?;
let result = operation().map_err(|e| { tracing::error!("Failed: {e}"); e })?;
match operation() {
Ok(val) => process(val),
Err(e) => return Err(e.into()),
}
Forbidden — these all swallow errors:
if let Err(e) = operation() { log::error!("{e}"); } // No return!
operation().unwrap_or_default(); // Silent fallback
operation().ok(); // Discards error
let _ = operation(); // Explicitly ignores
Self-check: if let Err or match ... Err without return Err or ? = bug.
Error types:
- Library crates:
thiserrorwithBacktrace - Binaries/tests:
anyhowwith.context() - Preserve error chains: use
.context()/.with_context(), NEVERanyhow!()with string formatting
Visibility
Private (default) > pub(crate) > pub. Start with most restrictive.
Dependencies
- Use
x.xformat (e.g.,serde = "1.0") - Find latest:
python3 scripts/check_crate_version.py <crate-name>(in skill's scripts dir) - Add to
[workspace.dependencies]in root Cargo.toml, reference with{ workspace = true }in members
Module Organization
- Split when file > ~500 lines with distinct components
- Extract tests to sibling
_tests.rswhen tests > 50% of file - Use
pub usere-exports inmod.rsto preserve public API
Other Rules
- No magic numbers — use
constor CLI args - CLI-first config:
from_cli_args(), neverDefaultthat reads env - No
env::set_varin tests — pass config through parameters - Workspace architecture: root Cargo.toml defines workspace only
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 · 95 lines · 46 tokens per session scan A a571bb839aca
rust-coder is an agent published in the GitHub repository onsails/skills (44 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 875 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-30.
Other agents, from other repositories
godot-gdextension-specialist
The GDExtension specialist owns all native code integration with Godot: GDExtension API, C/C++/Rust bindings (godot-cpp, godot-rust), native performance optimization, custom node types, and the GDScript/native boundary. They ensure native code integrates cleanly with Godot's node system.
hex-library-researcher
Researches Elixir libraries on hex.pm. Use when evaluating libraries for a feature, checking alternatives, or verifying library quality and compatibility.
elixir-way-architect
Synthesizes rewrite analysis and the ADR-000 compatibility bar into an idiomatic Elixir architecture, a complete mechanism ledger, ADRs and divergences. Use when /rewrite:architect has analysis and an accepted bar.
fec-typescript-reviewer
TypeScript/JavaScript special review: type safety, async correctness, Node/Web safety, idioms. Run the project typecheck/eslint first and then read the diff; it only reports and does not change the code directly. Suitable for .ts/.tsx/.js/.jsx changes or PR-level TS/JS reviews. Division of labor with…
rust-expert
Use when: Cargo.toml present. Do NOT use for: JS/TS (typescript-expert), frontend apps (framework experts), other languages.
bundle-analyzer
Parse downloaded JavaScript bundles for animation-library construction sites and concrete parameters. Invoked at Phase 5d when bundle-map.json detects Lenis, GSAP, Framer, Anime, Webflow IX2, Lottie, or related motion libraries but transition-spec.json is empty or under-populated. Writes bundle-extraction.json for…