Skip to content
Skills Library
Programming · Automation

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.

Licence
MIT
Last repository change
19.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.

Licence

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

  1. Overview
  2. Detection
  3. Key Commands
  4. Core Concepts
  5. Configuration
  6. Built-in Linters
  7. Finding Help
  8. Troubleshooting
Original SKILL.md headings · 83 lines, 293 words
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

RepositoryScoreLicence
This page · technicalpickles/pickled-claude-plugins100MIT
tonydzi/second-brain-starter-kit100MIT
ivy/dotfiles96ISC

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.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.