Rust Development Patterns
Idiomatic Rust patterns and best practices for building safe, performant, and maintainable applications.
When to Use
Writing new Rust code
Reviewing Rust code
Refactoring existing Rust code
Designing crate structure and module layout
How It Works
This skill enforces idiomatic Rust conventions across six key areas: ownership and borrowing to prevent data races at compile time,
Result
/
?
error propagation with
thiserror
for libraries and
anyhow
for applications, enums and exhaustive pattern matching to make illegal states unrepresentable, traits and generics for zero-cost abstraction, safe concurrency via
Arc
rust-patterns
安装
npx skills add https://github.com/affaan-m/ecc --skill rust-patterns