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 bgauryy/octocode --skill rust-best-practicesgit clone --depth 1 https://github.com/bgauryy/octocodeWrote 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/bgauryy/octocode/rust-best-practices)<a href="https://agentmods.dev/skills/bgauryy/octocode/rust-best-practices"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/rust-best-practices/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/bgauryy/octocode/rust-best-practices"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/rust-best-practices.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.00047 | $0.01158 |
| Opus 5.5 | $0.00019 | $0.00463 |
| Sonnet 5.5 | $0.00009 | $0.00232 |
| Haiku 4.5 | $0.00005 | $0.00116 |
Grade A, and why
rust-best-practices 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 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.
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 — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust in octocode-native
One Cargo workspace in packages/octocode-native (paths are relative to it): 17 crates, edition 2024, resolver 3, toolchain = MSRV (rust-toolchain.toml). ARCHITECTURE.md owns crate roles; CRATE_EDGES in crates/runtime/tests/architecture_guards.rs enforces the allowed edges. Folders drop the octocode- prefix; crates/runtime is the octocode-native facade. $DEV is the AGENTS.md task runner. Check a change against each section; return the review result. Adding, splitting or moving crates: crate structure; compile time, rebuilds or profiles: build profiles.
Where code goes
- A tool's behavior lives in its family crate (
crates/tool-*), code two tools share intools-shared(layers:SHARED_LAYERS), the layers below the tools inruntime-base. The facade keeps admission, dispatch and wiring only: every edit below it recompiles it and the CLI. - A family never imports or dev-depends on another family. Pass build-wide values (build identity, clocks, config) down as parameters, never globals.
crates/io(octocode_io) solely owns cross-crate primitives: atomic writes, locks, env reads, HTTP clients,cancellation, the requestbudget, retries, bounded reads,notice. Child processes go through the engine'sprocess_envandtools-shared'sbounded_process.- Add no
Result<_, String>at a crate or module boundary; type an existing one when you change its callers anyway.
Lints that fail the build
- Workspace
[lints](rootCargo.toml) deny dead and unused code, private interfaces and bounds,clippy::all,unwrap,expect,panic!,todo!,dbg!and undocumentedunsafe;unreachable_pubandmod_module_files(name.rsplusname/, nevermod.rs) warn, and CI denies warnings. Librarylib.rsheaders also deny prints (useoctocode_io::notice) and warn on lossyascasts outside tests (usetry_from). - Suppress only with
#[expect(lint, reason = "…")]on the smallest item.clippy.tomlalready lets tests unwrap, expect, panic and print. $DEV lint:rustadds production-only bans fromclippy-ratchet.toml, each naming its replacement: fixed durations, sleeps and timeouts,truncate,Command::new,reqwestclient construction, unboundedfsreads and non-atomic writes. Older findings sit per crate inclippy-baseline.json, which only shrinks. A site that must stay takes thecfg_attr(octocode_clippy_ratchet, expect(…))from the toml header.
What ships with it
2 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.
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.
- today First seen · 38 lines · 47 tokens per session scan A dddf0a45f143
rust-best-practices is a skill published in the GitHub repository bgauryy/octocode (971 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 1,158 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-12-01.
rust-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rust-best-practicesbgauryy/octocode | Skill | 971 | today | MIT | A | 47 | Claude Code, Codex |
| rust-expert-best-practices-code-reviewwispbit-ai/skills | Skill | 9 | 9mo ago | none | A | 66 | Claude Code, Codex |
| rust-skillsleonardomso/rust-skills | Skill | 781 | 5d ago | MIT | A | 56 | Claude Code, Codex |
| 814-regulations-iso-25010jabrena/plinth | Skill | 470 | yesterday | Apache-2.0 | A | 83 | Claude Code, Codex |
| 121-java-object-oriented-designjabrena/plinth | Skill | 470 | yesterday | Apache-2.0 | A | 107 | Claude Code, Codex |
| 053-design-simple-rulesjabrena/plinth | Skill | 470 | yesterday | Apache-2.0 | A | 86 | Claude Code, Codex |
| agent-rust-experttravisjneuman/.claude | Skill | 115 | 2d ago | MIT | A | 85 | Claude Code |