What problem does it solve?
Rust projects often suffer from formatting drift and lint violations that slow reviews and CI. This Skill automates code quality checks by running cargo fmt for formatting and cargo clippy for linting, enabling pedantic rules and enforcing a 100-character line width to maintain consistency. It also enforces no unsafe code usage (unsafe_code = "forbid") to improve safety and reliability.
Core Features & Use Cases
- Automated formatting checks and fixes with cargo fmt
- Lint enforcement with cargo clippy (all-targets) and optional fixes
- Safety enforcement (no unsafe code) and 100-character line width
- Suitable for pre-commit hooks, CI pipelines, and code reviews
Quick Start
Run cargo fmt --check to verify formatting, then cargo fmt to apply formatting, followed by cargo clippy --all-targets to lint, and cargo clippy --fix to auto-fix issues where possible.