rust

Enforce cargo check, clippy, tests, and formatting in Rust workspaces.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill rust-gregoryraymond
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/rust
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill rust-gregoryraymond

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rust projects often suffer from inconsistent style, fragile builds, and hidden warnings. This guide defines a strict workflow that enforces cargo check, cargo clippy, cargo test, and cargo fmt to maintain high code quality across a workspace.

Core Features & Use Cases

  • Quality Gate: cargo check, clippy, tests, and formatting with no warnings or errors.
  • Coding Style: naming conventions, imports, error handling, and documentation guidelines.
  • Use Case: a Rust project with multiple crates uses this guide to keep the codebase robust and maintainable.

Quick Start

Run this guide before starting Rust work to ensure cargo checks pass and style guidelines are followed.

Frequently Asked Questions about rust

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

FAQPage Schema
How do I enforce a no-warnings policy in a Rust workspace?

Enforce a no-warnings policy in Rust by running cargo check, cargo clippy, and cargo fmt as a quality gate. This guide standardizes workspace validation to reject builds with any warnings or errors before changes are accepted.

What is the best way to automate cargo check and clippy tests for code quality?

Automate cargo check and clippy tests by integrating them into a strict development workflow. This guide enforces continuous execution of cargo check, clippy, tests, and formatting to maintain robust Rust code quality.

Does this Rust development guide work with multiple crates and Cargo.toml configurations?

Yes, this Rust development guide applies to projects using Cargo.toml, Rust crates, and workspace configurations. It enforces standardized workspace validation, making it suitable for multi-crate project environments.

How do I standardize naming conventions and error handling in Rust?

Standardize naming conventions and error handling in Rust by applying explicit coding style guidelines. This guide defines strict rules for imports, documentation, and error handling to keep codebases maintainable.

Why should I run cargo fmt and clippy before accepting Rust code changes?

Run cargo fmt and clippy before accepting Rust code changes to prevent inconsistent style and hidden warnings. This workflow ensures code quality, formatting compliance, and robust builds across the workspace.