What problem does it solve? Rust code written or edited by AI models repeatedly exhibits the same quality failures: clones inserted to satisfy the borrow checker, speculative fallback paths, verbose match chains, and weak error modeling. This Skill holds every Rust change to the idiomatic bar defined by the Rust API guidelines, catching these recurring anti-patterns before they land. ## Core Features & Use Cases - Error type design: Guides deliberate error modeling with concrete enums in libraries (thiserror style), catch-all types at application boundaries (anyhow style), and correct use of #[from] versus .map_err() at public boundaries. - Idiom enforcement: Applies named preferences such as transpose() for Option<Result> conversions, Arc::clone(&x), if let over single-arm match, and newtype wrappers over stringly-typed parameters. - Anti-pattern rejection: Flags borrow-checker-driven clones, single-call-site abstractions, speculative fallbacks, repeated matching on the same value, and transitive-dependency imports. - Use Case: While refactoring a Rust crate, use this Skill to ensure new error enums distinguish actionable failure modes, clippy lints stay at warn in workspace configuration, and every #[allow] carries a written reason. ## Quick Start Use the sd-rust-quality skill to review and improve the Rust code in this crate for idiomatic error handling and clippy conformance.