rust-development

Enforce Rust coding standards and best practices across codebases.

21|3|Updated Nov 14, 2025
One-click install
npx skills add https://github.com/cosmonic-labs/skills --skill rust-development-cosmonic-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-development
Source: https://github.com/cosmonic-labs/skills/tree/main/rust-development
Command: npx skills add https://github.com/cosmonic-labs/skills --skill rust-development-cosmonic-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Expert Rust development guidance helps teams align on naming conventions, type safety, error handling, and documentation, reducing bugs and streamlining code reviews.

Core Features & Use Cases

  • Comprehensive Rust guidelines covering naming conventions, type safety, error handling, documentation, and best practices.
  • Use Case: A team auditing a Rust codebase to ensure API design and module structure follow RFC 430 naming conventions and style standards.

Quick Start

Install Rust toolchain if not already present. Then apply the guidelines during development with:

  • Run cargo +nightly fmt
  • Run cargo clippy -- -D warnings
  • Run cargo test
  • Review documentation with cargo doc --no-deps

Frequently Asked Questions about rust-development

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

FAQPage Schema
How do I enforce Rust coding standards and naming conventions across a codebase?

To enforce Rust coding standards, validate naming conventions, type safety, and error handling patterns against official Rust guidelines during code reviews and refactoring. This reduces bugs by ensuring API design and module structure follow RFC 430.

What is the best way to handle error handling and type safety validation in Rust?

The best way to handle error handling and type safety validation in Rust is to apply guidelines from the Rust API Guidelines and The Rust Programming Language Book. This ensures robust patterns are consistently applied during code reviews and API design.

How do I audit a Rust codebase for API design and module structure compliance?

To audit a Rust codebase for API design compliance, review the code against official Rust guidelines and RFC 430 naming conventions. Check documentation requirements and type safety to ensure the module structure meets standard coding practices.

Does this Rust development approach work with existing tools like clippy and rustfmt?

Yes, this Rust development approach works alongside clippy and rustfmt by enforcing the standards these tools check. It provides the underlying coding guidelines for error handling and documentation that complement running cargo clippy and cargo fmt.

What are the limitations of relying only on clippy for Rust code reviews?

Relying only on clippy for Rust code reviews limits enforcement of documentation requirements and broader API design standards. It checks syntax and common lints, but does not validate alignment with comprehensive guidelines like the Microsoft Rust Guidelines.