rust-code-quality

Enforce rustfmt and clippy standards in pre-commit and CI pipelines.

1|Updated Dec 30, 2025
One-click install
npx skills add https://github.com/gar-ai/mallorn --skill rust-code-quality-gar-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-code-quality
Source: https://github.com/gar-ai/mallorn/tree/main/.claude/skills/rust-foundation-code-quality
Command: npx skills add https://github.com/gar-ai/mallorn --skill rust-code-quality-gar-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Apply rustfmt and clippy linting standards for consistent, safe Rust code. Use before commits and in CI pipelines.

Core Features & Use Cases

  • Rustfmt configuration to enforce formatting rules across the project
  • Clippy configuration to catch common mistakes and enforce best practices
  • CI integration guidelines to run formatting and lint checks in pipelines
  • Pre-commit hook recommendations to prevent unformatted or linted code from being committed
  • Guidelines to maintain high-quality Rust code and reduce review cycles

Quick Start

Run cargo fmt and cargo clippy as part of your pre-commit and CI workflow.

Frequently Asked Questions about rust-code-quality

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

FAQPage Schema
How do I set up Rust pre-commit hooks for formatting and linting?

Rust pre-commit hooks run `cargo fmt` and `cargo clippy` locally to block unformatted or unsafe code from being committed, catching errors early before they reach your repository.

What is the best way to run clippy and rustfmt in CI pipelines?

Running clippy and rustfmt in CI pipelines involves integrating configuration checks into your pipeline to enforce consistent Rust style and catch common mistakes automatically during code review cycles.

How do I configure clippy lint levels to enforce Rust safety standards?

Configuring clippy lint levels enforces Rust safety standards by applying specific rule sets to catch common mistakes and dangerous patterns, minimizing unsafe code across your project.

Does rustfmt configuration work with pre-commit and CI workflows?

Rustfmt configuration works with both pre-commit and CI workflows by applying consistent formatting rules across local development and pipeline checks, ensuring style uniformity from commit to deployment.

Why should I enforce Rust formatting and linting before commits?

Enforcing Rust formatting and linting before commits prevents unformatted or error-prone code from entering the repository, reducing review cycles and maintaining high-quality code standards early.