What problem does it solve?
Rust code that compiles often still suffers from non-idiomatic patterns, unhandled error cases, unsafe code gaps, missing tests, and poor documentation, leading to bugs, maintenance overhead, and unreliable releases. This skill eliminates those gaps by enforcing proven Rust best practices across every stage of development.
Core Features & Use Cases
- Idiomatic API Design: Enforces Rust API Guidelines for consistent, intuitive public interfaces.
- Strict Error Handling: Mandates proper
Result usage, thiserror for libraries, anyhow for binaries, and complete error documentation.
- Lint & Safety Compliance: Enforces clippy rules, requires SAFETY comments for all
unsafe blocks, and mandates miri testing for crates using unsafe code.
- Async & Testing Standards: Covers tokio structured concurrency rules, unit/integration/doctest requirements, and snapshot/benchmark testing practices.
- Use Case: Use this skill when writing new Rust crates, reviewing PRs for Rust projects, refactoring legacy Rust code, or designing Rust library APIs to ensure code is shippable, not just compilable.
Quick Start
Use the rust-quality skill to review your Rust web server crate for clippy compliance, proper error handling, and safe async task spawning practices.