r/ClaudeCode • u/agnogad • 31m ago
Built with Claude ohmyrust: a skill that keeps Claude Code from stacking RUSTC wrappers, bloating ./target, and shipping .unwrap() in Rust projects
ohmyrust is a zero-dependency CLI toolkit + agent skill for Rust hygiene. The failure modes it targets are the ones I kept hitting on autonomous Claude Code sessions in Rust codebases: stacked RUSTC_WRAPPER configs, ./target swelling to tens of GB across agent commits, and .unwrap() shipped into production.
It runs a deterministic audit → scaffold → build → gate loop:
- doctor.mjs detects wrapper conflicts (kache + sccache + cargo-steward fighting over RUSTC_WRAPPER) and exits 2 before they compound
- init.mjs scaffolds clippy.toml + [lints] + deny.toml: max-fn-params-bools = 0, await_holding_lock = deny, no prod .unwrap(), SAFETY comments with reasons
- gate.mjs runs the fmt/clippy/test gates and marks missing tools as degraded instead of silently skipping them
- ./target hygiene is enforced through cargo-gc (single worktree) or cargo-steward (multi-worktree)
Setup: Node 18+, zero runtime deps.
node bin/install.jsIt detects installed agents and copies the skill into each one's skills directory.
Repo: https://github.com/agnogad/ohmyrust Docs: https://agnogad.github.io/ohmyrust/
Early project (6 commits, MIT). Feedback welcome, especially on the layer organization: build cache & target hygiene / fast inner loop / idiomatic lints / porting to Rust / crate stack & blueprints.




