What problem does it solve?
This Skill automates the execution of pre-commit hooks locally or in CI, ensuring code quality standards are met before commits are pushed, preventing common issues like trailing whitespace or unformatted code. It streamlines quality checks, saving time and preventing CI failures.
Core Features & Use Cases:
- Automated Code Checks: Runs various hooks including Mojo formatting, whitespace trimming, and YAML validation for comprehensive quality assurance.
- Auto-Fix Capabilities: Many hooks automatically fix issues, requiring only a re-commit, simplifying the developer workflow.
- Use Case: Before committing your changes, use this skill to run all pre-commit hooks. It will automatically fix minor issues like trailing whitespace and report any major problems, ensuring your commit is clean and passes CI.
Quick Start:
Use the ci-run-precommit skill to run all pre-commit hooks on all files in the repository.