rust-idiomatic-patterns
CommunityOptimize Rust code with expert patterns and best practices.
AuthorJheisonMB
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill assists developers in writing clean, efficient, and secure Rust code by providing expert-level patterns and best practices.
Core Features & Use Cases
- Ownership & Borrowing Guidance: Offers decision tables for ownership and borrowing scenarios.
- Error Handling Best Practices: Suggests the use of
thiserrorfor libraries andanyhowfor binaries. - Iterative Patterns: Recommends avoiding intermediate
collect()and usingfilter_mapandfind. - Structs & Enums: Provides advice on struct and enum design, including
let...elseandBox<T>. - Design Patterns: Implements the SOLID principles and DRY (Don't Repeat Yourself) philosophy.
- Code Quality: Offers best practices for code quality, refactoring, and using Clippy.
Quick Start
Activate the skill when working on Rust code to get instant guidance on ownership, error handling, DRY principles, and more.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rust-idiomatic-patterns Download link: https://github.com/JheisonMB/skills/archive/main.zip#rust-idiomatic-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.