rust-idioms

Installation
SKILL.md

Rust Community Rust Refactoring Best Practices

Comprehensive refactoring and idiomatic patterns guide for Rust applications, maintained by the Rust Community. Contains 44 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new Rust code with strong type guarantees
  • Refactoring ownership and borrowing patterns
  • Designing error handling strategies
  • Creating public APIs with traits and generics
  • Organizing modules and controlling visibility

Rule Categories by Priority

Priority Category Impact Prefix
1 Type Safety & Newtype Patterns CRITICAL type-
2 Ownership & Borrowing CRITICAL own-
Related skills

More from pproenca/dot-skills

Installs
44
GitHub Stars
141
First Seen
Jan 22, 2026