rust-idiomatic

Installation
SKILL.md

Rust Community Idiomatic Rust Best Practices

A structured guide to writing idiomatic Rust code based on patterns established by top contributors. Each rule includes incorrect/correct examples with realistic domain names and quantified impact metrics.

When to Apply

  • Writing new Rust code in any project or crate
  • Reviewing pull requests for idiomatic patterns
  • Refactoring code that uses excessive cloning, manual loops, or opaque error handling
  • Designing public APIs for libraries or shared modules
  • Optimizing async code for correctness and cancellation safety

Rule Categories by Priority

# Category Prefix Impact Rules
1 Ownership and Borrowing own- CRITICAL 6
2 Error Propagation errprop- CRITICAL 6
3 Type Safety safe- HIGH 6
Related skills

More from pproenca/dot-skills

Installs
1
GitHub Stars
141
First Seen
Mar 19, 2026