What problem does it solve?
This Skill eliminates the hassle of managing fragmented, duplicated git hook configurations across projects, especially when migrating away from legacy pre-commit setups or mise hook wrappers to a unified hk workflow.
Core Features & Use Cases
- Pkl-based hk Configuration: Write clean, maintainable hk.pkl files to orchestrate git hooks, replacing old .git/hooks shims and duplicate pre-commit configurations.
- Mise Task Integration: Reuse existing mise lint and fix task definitions in hk configs to avoid duplicating command logic across projects.
- Hook Validation & Debugging: Validate hk configs, preview hook execution plans, and troubleshoot staged-file linting or autofix hook issues.
- Use Case: For example, if your team uses mise to run linters but has a messy, unmaintained pre-commit setup, this Skill guides you through migrating to a single source of truth in hk.pkl without breaking existing workflows.
Quick Start
Use the hk skill to migrate your project's existing pre-commit hooks to a clean hk.pkl configuration that reuses your current mise lint and fix tasks.