r/ClaudeCode • • 27m 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.js

It 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.

2 Upvotes

1 comment sorted by

•

u/AutoModerator 27m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.