What problem does it solve?
This Skill automates the installation and enforcement of git hooks to run code quality checks (format, lint, typecheck) on pre-commit and to run tests on pre-push, ensuring teams maintain consistent quality gates.
Core Features & Use Cases
- Pre-commit checks: format, lint, typecheck.
- Pre-push checks: run tests.
- DRY integration: hooks call justfile commands to centralize workflows across projects.
Quick Start
Follow these steps to install and activate the Git hooks:
- Copy the pre-commit and pre-push scripts into the .git/hooks/ directory as shown in the provided snippets.
- Make the scripts executable: chmod +x .git/hooks/pre-commit .git/hooks/pre-push
- If using the pre-commit framework, add the provided .pre-commit-config.yaml to your project and run pre-commit install.
- Verify that the hooks trigger on commit and push by making a small code change and committing; you should see format, lint, typecheck, and test runs.