Rust Conventions

Enforce idiomatic Rust conventions for code style, error handling, and testing.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/jdsingh122918/forge --skill rust-conventions-jdsingh122918
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Rust Conventions
Source: https://github.com/jdsingh122918/forge/tree/main/.forge/skills/rust-conventions
Command: npx skills add https://github.com/jdsingh122918/forge --skill rust-conventions-jdsingh122918

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that all Rust code adheres to established best practices and conventions, leading to more maintainable, readable, and robust codebases.

Core Features & Use Cases

  • Code Style Enforcement: Guides developers on formatting and linting rules (rustfmt, clippy).
  • Error Handling Standards: Defines best practices for error management using anyhow and thiserror.
  • Naming Conventions: Provides clear guidelines for naming functions, variables, types, and modules.
  • Module Structure: Recommends organization for modules and test placement.
  • Documentation Standards: Emphasizes the importance of doc comments and examples.
  • Testing Practices: Outlines strategies for writing effective unit tests.

Quick Start

Apply the Rust Conventions skill to ensure the current codebase follows idiomatic Rust practices.

Frequently Asked Questions about Rust Conventions

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

FAQPage Schema
How do I enforce idiomatic Rust coding conventions across my project?

You can enforce idiomatic Rust coding conventions by applying standards for code style, error handling, naming, module structure, documentation, and testing strategies across your project.

What are the best practices for Rust error handling with anyhow and thiserror?

Best practices for Rust error handling involve using thiserror for library-level custom errors and anyhow for application-level error management to ensure robust codebases.

How do I configure rustfmt and clippy for Rust code style enforcement?

Configuring rustfmt and clippy enforces Rust code style and linting rules, ensuring formatting consistency and identifying potential improvements for readable, maintainable code.

What are the standard naming conventions and module structure for Rust projects?

Standard Rust naming conventions provide guidelines for naming functions, variables, types, and modules, while module structure recommendations dictate file organization and test placement.

What documentation standards and testing practices should I use for Rust development?

Rust development documentation standards emphasize using doc comments and examples, while testing practices outline strategies for writing effective unit tests within your modules.