rust-coding-patterns

Community

Master robust Rust patterns for safe code.

AuthorCraftsMan-Labs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rust projects frequently stumble over ownership pitfalls, unsafe concurrency, and inconsistent error handling across teams. This guide provides a structured set of patterns to drive idiomatic, safe, and maintainable Rust code during implementation, debugging, and reviews.

Core Features & Use Cases

  • Ownership and borrowing decisions: enforce clear ownership semantics, minimal borrows, and safe shared access.
  • Concurrency and error strategies: define bounded, cancellable async patterns and typed error handling to prevent panic-driven failures.
  • Type-driven design and invariants: use newtypes, typestate, and validated constructors to encode domain constraints.
  • Code review and refactor guidance: provide checklists and anti-pattern remediation to strengthen code quality across teams.

Quick Start

Choose a task mode (implement, debug, review, or refactor) and apply the corresponding Rust coding pattern guidelines to the codebase.

Dependency Matrix

Required Modules

None required

Components

references

💻 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-coding-patterns
Download link: https://github.com/CraftsMan-Labs/SimpleAgents/archive/main.zip#rust-coding-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 471,000+ vetted skills library on demand.