What problem does it solve?
This Skill eliminates the guesswork of writing idiomatic, safe, and performant Rust code, helping developers avoid common borrow checker errors, runtime panics from unwrap() misuse, and non-performant implementations that lead to bugs and maintenance overhead.
Core Features & Use Cases
- Idiomatic Rust Best Practices: Covers ownership and borrowing, error handling with Result/thiserror/anyhow, enum pattern matching, traits and generics, safe concurrency, and module structure aligned with Rust community standards.
- Bug and Anti-Pattern Prevention: Explicitly calls out common pitfalls like unnecessary cloning, unsafe code misuse, and blocking in async contexts to prevent runtime failures.
- Use Case: Use this Skill when building new Rust applications or libraries, refactoring legacy Rust codebases, or reviewing pull requests to ensure code follows safe, performant conventions.
Quick Start
Use the rust-patterns skill to review the attached Rust microservice code and suggest improvements for ownership handling and error propagation.