Enforce repo hygiene with pre-commit hooks
Run a repeatable pre-commit gate that catches formatting, lint, secret, and policy issues before they land in the repo.
Prerequisites
pre-commit
Installation
Choose whichever fits your setup:
- Copy this skill folder into your local skills directory.
- Clone the repo and symlink or copy the skill into your agent workspace.
- Add the repo as a git submodule if you manage shared skills centrally.
- Install it through your internal provisioning or packaging workflow.
- Download the folder directly from GitHub and place it in your skills collection.
Install command or upstream instructions:
Install pre-commit, add a .pre-commit-config.yaml file, then run `pre-commit install` and `pre-commit run --all-files`.