rust-quality-checker

Run rustfmt, clippy, cargo check, test, and audit for Rust quality gates.

25|2|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/matteocervelli/llms --skill rust-quality-checker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-quality-checker
Source: https://github.com/matteocervelli/llms/tree/main/.claude/skills/rust-quality-checker
Command: npx skills add https://github.com/matteocervelli/llms --skill rust-quality-checker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a Rust quality gate including formatting, linting, compilation checks, testing, and security analysis to prevent regressions.

Core Features & Use Cases

  • Rustfmt formatting checks
  • Clippy linting
  • Cargo check and build
  • Cargo test and coverage
  • Cargo audit for security

Quick Start

Run cargo fmt, cargo clippy, cargo test, and cargo audit to validate quality and security.

Frequently Asked Questions about rust-quality-checker

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

FAQPage Schema
How do I set up a quality gate for Rust code with formatting, linting, and security checks?

A Rust quality gate automates formatting validation, linting, compilation checks, testing, and security audits using rustfmt, clippy, cargo check, cargo test, and cargo audit. Run these tools in sequence to catch regressions before code merges and prevent security vulnerabilities in your codebase.

Can I use cargo audit and clippy together in a CI/CD pipeline?

Yes. Cargo audit identifies security vulnerabilities in dependencies while clippy detects code quality issues. Both integrate into CI/CD gates and pre-commit hooks to provide comprehensive coverage of formatting, linting, compilation, testing, and security analysis in a single workflow.

What's the difference between rustfmt and cargo fmt for Rust code formatting?

Rustfmt is the formatting engine; cargo fmt is the Cargo command that applies rustfmt to your project. Both enforce consistent code style. The quality gate uses both to validate formatting compliance across your entire Rust codebase before submission.

How do I integrate Rust code quality checks into pre-commit hooks?

Pre-commit hooks run cargo fmt, clippy, cargo check, cargo test, and cargo audit automatically before each commit. This integration prevents unformatted or insecure code from entering your repository and catches issues early without manual intervention.

Does cargo check catch compilation errors before running cargo test?

Yes. Cargo check compiles your code without producing binaries, identifying compilation errors faster than cargo test. The quality gate runs cargo check first to validate code compiles, then cargo test for functional correctness and coverage data.

What security issues does cargo audit detect in Rust dependencies?

Cargo audit scans your dependency tree against a vulnerability database, identifying known security flaws in direct and transitive dependencies. The quality gate includes cargo audit to flag vulnerable packages and prevent regressions in your supply chain.