Skip to content
Skill

hk

by majiayu000

AI Summary

Provides guidance for working with hk, a fast git hook manager using pkl configuration. Developers managing git hooks in hk-enabled projects benefit from detection tips and command references.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "hk" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory (2 files)
mkdir -p .claude/skills/hk && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/hk/SKILL.md "https://raw.githubusercontent.com/majiayu000/claude-skill-registry-data/main/data/hk/SKILL.md" && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/hk/metadata.json "https://raw.githubusercontent.com/majiayu000/claude-skill-registry-data/main/data/hk/metadata.json"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

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.

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)

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
2 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars2
Forks2
Issues0
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code