rust-conventions

Enforce idiomatic Rust conventions, Cargo dependency management, and Clippy standards.

Updated Feb 7, 2026
One-click install
npx skills add https://github.com/jsamuelsen11/claude-config --skill rust-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-conventions
Source: https://github.com/jsamuelsen11/claude-config/tree/main/plugins/ccfg-rust/skills/rust-conventions
Command: npx skills add https://github.com/jsamuelsen11/claude-config --skill rust-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust projects often suffer from inconsistent conventions, verbose boilerplate, and subtle safety pitfalls. This skill codifies idiomatic Rust patterns, ownership and borrowing best practices, and robust error handling guidance to help teams write reliable, maintainable code.

Core Features & Use Cases

  • Enforces ownership and borrowing best practices to minimize unnecessary cloning and improve performance.
  • Provides guidance on error handling with thiserror for libraries and anyhow for applications.
  • Standardizes module organization, documentation rules, and naming conventions to improve readability and maintainability.
  • Use Case: refactor a Rust project to align with community guidelines and pass Clippy with minimal changes.

Quick Start

Review the conventions document and start refactoring a Rust project to align with idiomatic patterns.

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 conventions for ownership and borrowing across my project?

To enforce idiomatic Rust conventions, apply ownership and borrowing best practices to minimize unnecessary cloning and improve performance. This includes standardizing module layout, documentation rules, and naming conventions across the codebase.

What is the best way to handle errors in a Rust library versus an application?

The best way to handle errors in Rust is using thiserror for libraries and anyhow for applications. This approach provides robust error handling guidance and codifies idiomatic patterns to ensure reliable, maintainable code.

How do I refactor a Rust project to pass Clippy with minimal changes?

To refactor a Rust project to pass Clippy with minimal changes, review the conventions document and align your code with idiomatic patterns. This enforces Clippy-based standards and reduces subtle safety pitfalls.

Does this approach standardize Rust module organization and naming conventions?

Yes, this approach standardizes Rust module organization, documentation rules, and naming conventions. Applying these community guidelines improves readability and maintainability while reducing verbose boilerplate.

Why does my Rust code suffer from verbose boilerplate and subtle safety pitfalls?

Rust code suffers from verbose boilerplate and subtle safety pitfalls due to inconsistent conventions. Codifying idiomatic Rust patterns, ownership and borrowing rules, and robust error handling guidance resolves these issues.