rust-best-practices

Enforce Rust coding standards, idioms, and anti-patterns in projects.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/EtaCassiopeia/claude-skills --skill rust-best-practices-etacassiopeia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-best-practices
Source: https://github.com/EtaCassiopeia/claude-skills/tree/main/config/skills/rust-best-practices
Command: npx skills add https://github.com/EtaCassiopeia/claude-skills --skill rust-best-practices-etacassiopeia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures adherence to Rust best practices, helping developers write idiomatic, efficient, and maintainable code.

Core Features & Use Cases

  • Coding Standards: Enforces coding standards, idioms, and anti-patterns.
  • Project Structure: Provides guidelines for module organization and public API surface.
  • Error Handling: Offers guidance on effective error handling patterns.
  • Traits & Generics: Best practices for designing traits and generics.
  • Async & Tokio: Best practices for writing asynchronous code with Tokio.
  • Concurrency: Best practices for managing concurrency in Rust.
  • Testing: Best practices for writing unit and integration tests.
  • Clippy & Formatting: Integration with Clippy for code linting and formatting.
  • Quick Reference: Provides a quick reference for common Rust types and patterns.

Quick Start

Run the 'rust-best-practices' skill to apply Rust coding standards to your project.

Frequently Asked Questions about rust-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for Rust error handling and async code?

Rust best practices for error handling and async code involve using idiomatic patterns to ensure efficiency and maintainability. This Skill enforces standards for effective error handling patterns and asynchronous code with Tokio.

How do I enforce Rust coding standards and avoid anti-patterns in my project?

To enforce Rust coding standards and avoid anti-patterns, apply guidelines for module organization, public API surface, and Clippy integration. This Skill provides comprehensive standards to improve code quality across projects of any size.

Does this Rust coding standards guidance work for large, complex projects?

Yes, these Rust coding standards apply to projects of any size and complexity. The guidelines cover project structure, traits, generics, and testing to ensure maintainable code at scale.

What's the best way to structure Rust modules and design public APIs?

The best way to structure Rust modules and design public APIs is to follow established coding standards and idioms. This Skill provides specific guidelines for module organization and managing your public API surface effectively.

Do I need a specific Rust development environment to use these coding standards?

Yes, you need a Rust development environment to apply these coding standards. The Skill integrates with Clippy for code linting and formatting to enforce best practices and idioms.