What problem does it solve?
This Skill eliminates the tedious manual work of code formatting and linting, which often leads to inconsistent codebases, developer friction, and wasted time. It ensures your code adheres to standards automatically.
Core Features & Use Cases
- Automated Formatting: Applies
cargo fmt to ensure consistent Rust code style across your project, modifying files safely.
- Linting & Reporting: Runs
cargo clippy to identify potential code quality issues, providing a clear summary of warnings and errors without auto-applying semantic fixes.
- Targeted Efficiency: Prioritizes running on changed files (
git diff) for faster feedback, falling back to a full repository scan when necessary.
- Use Case: Integrate this Skill into your CI/CD pipeline or a "Build" flow to automatically format all new Rust code and report any linting issues before merging, ensuring high code quality and consistency without manual intervention.
Quick Start
Run the auto-linter skill to format and lint all changed Rust files in the current branch, saving the output to 'lint_output.log' and a summary to 'lint_summary.md'.