rust-quality
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Rust quality — universal discipline for any Rust crate
This skill makes the model write idiomatic, well-tested, lint-clean Rust by default — not just code that compiles. It applies to libraries, binaries, sync code, async/tokio, no_std, embedded, wasm, and GPU host code. (For GPU kernel work, also load rust-gpu-discipline.)
Scope check before you start
Before writing or reviewing Rust, identify:
- Crate kind: library (lib.rs) or binary (main.rs) — error-handling discipline differs.
- Sync or async: presence of
tokio,async-std, orasync fnin the surface area. unsafeposture: does the crate useunsafe? If so, miri is mandatory.- MSRV: read
rust-versioninCargo.toml. Don't use newer features. - Existing lint config: read
Cargo.toml[lints]table and any#![…]crate attributes inlib.rs/main.rsbefore adding new ones.
If any of the above is unclear, read the manifest and the crate root file. Do not guess.