run-clippy

Run clippy, cargo fmt, and module checks on Rust workspaces.

477|32|Updated Feb 23, 2022
One-click install
npx skills add https://github.com/r3bl-org/r3bl-open-core --skill run-clippy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-clippy
Source: https://github.com/r3bl-org/r3bl-open-core/tree/main/.claude/skills/run-clippy
Command: npx skills add https://github.com/r3bl-org/r3bl-open-core --skill run-clippy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps Rust developers enforce code quality by running clippy, applying strict comment punctuation rules, formatting with cargo fmt, and validating module organization patterns. This ensures a consistent, clean codebase across crates and commits.

Core Features & Use Cases

  • Clippy linting: Run cargo clippy across all targets to surface correctness, performance, style, and complexity issues.
  • Comment punctuation enforcement: Apply documented punctuation rules to all comments to improve readability and consistency.
  • Code formatting: Run cargo fmt across the workspace to enforce formatting consistency.
  • Module organization checks: Validate module layout patterns to maintain a clean public API and documentation.
  • Use Case: Before committing changes to a multi-crate Rust project, run this skill to auto-detect and fix style issues, produce a clean commit-ready state.

Quick Start

Use the run-clippy skill to lint and format the current workspace. It will apply clippy, formatting, and organization checks and report any issues detected.

Frequently Asked Questions about run-clippy

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

FAQPage Schema
How do I run clippy and enforce code formatting across a Rust workspace?

To run clippy and enforce formatting across a Rust workspace, use this skill to execute cargo clippy --all-targets and cargo fmt. It automatically detects and reports style, correctness, and formatting issues across all crates to produce a commit-ready state.

What does clippy check for in a Rust project beyond standard compiler warnings?

Clippy checks Rust projects for correctness, performance, style, and complexity issues beyond standard compiler warnings. This skill extends those checks by enforcing comment punctuation rules and validating module organization patterns for a clean codebase.

Can I use this clippy check on a multi-crate Rust project before committing?

Yes, you can use this clippy check on a multi-crate Rust project before committing. It serves as a pre-commit style gate, applying clippy, formatting, and organization checks across all crates to ensure a consistent commit-ready state.

What's the best way to automate Rust code quality checks for module organization?

The best way to automate Rust code quality checks for module organization is using a skill like this one. It validates module layout patterns to maintain a clean public API and documentation alongside running clippy and cargo fmt.

Why does my Rust code pass clippy but fail comment punctuation rules?

Rust code can pass clippy but fail comment punctuation rules because clippy focuses on code correctness and style, not documentation formatting. This skill applies documented punctuation policies to all comments to improve readability and consistency.