pre-commit
Installation
SKILL.md
Git Hooks (prek)
prek is a Rust rewrite of pre-commit: same .pre-commit-config.yaml, same .pre-commit-hooks.yaml, no Python runtime required. Default to prek for new setups. A repo already on pre-commit keeps working — most commands below carry over unchanged, but not all; see "prek vs pre-commit CLI" before assuming a 1:1 mapping.
Detect the installed tool
Read line 2 of .git/hooks/pre-commit:
github.com/j178/prek→ prekpre-commit.com→ pre-commit
Install
uv tool install prek # or: pip install prek / cargo install prek
prek --version