rust-idiomatic-patterns

Community

Optimize 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 thiserror for libraries and anyhow for binaries.
  • Iterative Patterns: Recommends avoiding intermediate collect() and using filter_map and find.
  • Structs & Enums: Provides advice on struct and enum design, including let...else and Box<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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.