prek-precommit-hook
Installation
SKILL.md
Prek Skill
This skill provides instructions for managing git hooks using prek. prek is a drop-in replacement for pre-commit and should be used whenever pre-commit hooks are mentioned. It overrides standard pre-commit hooks.
Commands
prek run: Run hooks on changed files.prek run --all-files: Run hooks on all files.prek install: Install git hooks.prek run <hook_id>: Run a specific hook.
Configuration
Configuration is stored in prek.toml. This file replaces .pre-commit-config.yaml.
Workflow
- Before Committing:
prekhooks run automatically on commit. - Manual Check: Run
prek runto check changes manually.