hk
/hk
Use when hk.pkl exists in project, hook output shows hk running, or working with git hooks in hk-managed projects. Also use when setting up, configuring, or troubleshooting hk git hooks.
- Author
- technicalpickles ↗
- Repository
- pickled-claude-plugins ↗
- Licence
- MIT
- Last repository change
- 19.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when hk.pkl exists in project, hook output shows hk running, or working with git hooks in hk-managed projects. Also use when setting up, configuring, or troubleshooting hk git hooks.
Original author description
Use when hk.pkl exists in project, hook output shows hk running, or working with git hooks in hk-managed projects. Also use when setting up, configuring, or troubleshooting hk git hooks.
How it works
- Overview
- Detection
- Key Commands
- Core Concepts
- Configuration
- Built-in Linters
- Finding Help
- Troubleshooting
SKILL.md preview
--- name: hk description: Use when hk.pkl exists in project, hook output shows hk running, or working with git hooks in hk-managed projects. Also use when setting up, configuring, or troubleshooting hk git hooks. --- # hk - Git Hook Manager ## Overview hk is a fast git hook manager by jdx (author of mise). Uses pkl configuration language. Provides 90+ built-in linters. **Docs:** https://hk.jdx.dev/ **GitHub:** https://github.com/jdx/hk ## Detection Identify which hook manager a project uses: | File | Hook Manager | |------|--------------| | `hk.pkl` | hk | | `lefthook.yml` | lefthook | | `.husky/` directory | husky | | `.pre-commit-config.yaml` | pre-commit (python) | ## Key Commands ```bash hk init # Create initial hk.pkl hk install # Set up git hooks hk check # Run checks manually (read-only) hk fix # Auto-fix issues hk builtins # List available builtins hk validate # Validate config hk config dump # Show effective configuration ``` ## Core Concepts - **Hooks:** Git hook types (pre-commit, commit-msg, pre-push) - **Steps:** Named units of work within hooks - **Builtins:** Pre-configured linters (90+) via `Builtins.pkl` - **Profiles:** Enable/disable groups of steps (`--profile slow`) ## Configuration When editing hk.pkl, read `hk-pkl-reference.md` in this skill directory for structure and examples. ## Built-in Linters When looking up builtins, read `builtins-reference.md` in this skill directory. Or run `hk builtins` for the live list. ## Finding Help **Stable reference:** Read the reference files in this skill directory when needed. **Latest docs:** ```bash npx @mdream/crawl https://hk.jdx.dev/ --output /tmp/hk-docs ``` **GitHub issues:** ```bash gh issue list -R jdx/hk # List open issues gh search issues --repo jdx/hk "error" # Search issues gh issue view 123 -R jdx/hk # View specific issue ``` ## Troubleshooting **Hook not running:** ```bash hk install # Reinstall hooks cat .git/hooks/pre-commit # Verify hook calls hk ``` **Step skipped:** ```bash hk check -v # Verbose output shows skip reasons hk config dump # Check effective configuration ``` **Validate config:** ```bash hk validate # Check hk.pkl syntax ```
Files in this package (3)
- SKILL.md 2 KB
- builtins-reference.md 4 KB
- hk-pkl-reference.md 4 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · technicalpickles/pickled-claude-plugins | 100 | MIT |
| tonydzi/second-brain-starter-kit | 100 | MIT |
| ivy/dotfiles | 96 | ISC |
Database snapshot: 13.11.2026 · package version 317366551a27 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95hk-configure
Configure hk git hooks and project checks in hk.pkl. Use when adding or changing linters, formatters, or custom steps in a project that uses hk, or when setting up hk at the user's request. - 100toolchain
This skill should be used when setting up or changing a project's developer toolchain with mise and hk, such as creating or editing `mise.toml`, `mise.lock` or `hk.pkl`, adding a tool, a task, a linter, a formatter, a code generator or a pre-commit hook, or scaffolding a new… - 100git-hooks
Set up and configure Git pre-commit hooks for code quality, secrets scanning, and commit message validation. Use when installing git hooks, configuring pre-commit checks, or enforcing code standards. - 100hk-creating-checks
Use when adding, writing, or fixing a check (step) in an hk.pkl, picking a builtin or writing a custom command, declaring an effect for `--safe`, or when hk reports "effect is unknown", "unexpected argument '--safe'", or "Hook 'check' not found". Also use when a step's syntax… - 100lefthook
This skill should be used when the user asks to "configure git hooks", "set up lefthook", "add a pre-commit hook", "create a lefthook config", "install git hooks", or mentions lefthook, .lefthook.yml, git hooks management, or hook enforcement in the context of Plexium or any project using Lefthook. - 100git-hooks-setup
Use when setting up git hooks (pre-commit, commit-msg, pre-push) with husky or native hooks for linting, formatting, commit conventions, and secret scanning.