hk

hk is a skill for Claude Code from technicalpickles/pickled-claude-plugins. It costs 40 tokens per session (581 once invoked), scanned A, original, MIT.

Guidance for hk, a tool that manages Git hooks—automatic checks that run during actions such as committing or pushing code. It explains how to detect, configure, validate, and run those checks.

In plain words
What is it for?
Use it in projects with an hk.pkl file to inspect hook settings, run checks, fix issues, or change hook configuration.
Why use it?
It helps you understand and troubleshoot automated checks that can block Git operations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-tools plugin — 8 skills, 2 commands shipped together

Good fit Use it in projects with an hk.pkl file to inspect hook settings, run checks, fix issues, or change hook configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/technicalpickles/pickled-claude-plugins/hk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add technicalpickles/pickled-claude-plugins --skill hk
Clone the repo
git clone --depth 1 https://github.com/technicalpickles/pickled-claude-plugins

Made for: Claude Code.

Or install dev-tools, the plugin that ships this one along with the rest of its 8 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hk

README.md
[![agentmods](https://agentmods.dev/badge/skills/technicalpickles/pickled-claude-plugins/hk/github.svg)](https://agentmods.dev/skills/technicalpickles/pickled-claude-plugins/hk)
Your own site
<a href="https://agentmods.dev/skills/technicalpickles/pickled-claude-plugins/hk"><img src="https://agentmods.dev/badge/skills/technicalpickles/pickled-claude-plugins/hk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hk

Your own site · 80×15
<a href="https://agentmods.dev/skills/technicalpickles/pickled-claude-plugins/hk"><img src="https://agentmods.dev/badge/skills/technicalpickles/pickled-claude-plugins/hk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 59
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00581
Opus 5.5 $0.00016 $0.00232
Sonnet 5.5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured 3mo ago against content hash 72ac3bc7f49c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-tools/skills/hk/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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:

npx @mdream/crawl https://hk.jdx.dev/ --output /tmp/hk-docs

GitHub issues:

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:

hk install        # Reinstall hooks
cat .git/hooks/pre-commit  # Verify hook calls hk

Step skipped:

hk check -v       # Verbose output shows skip reasons
hk config dump    # Check effective configuration

Read the full file on GitHub · 87 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 87 lines · 40 tokens per session scan A 72ac3bc7f49c

Subscribe to this mod's changes

hk is a skill published in the GitHub repository technicalpickles/pickled-claude-plugins (13 stars, last pushed 9d ago), licensed MIT. It adds 40 tokens to every session and 581 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

hk compared with skills from other repositories

hk next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hktechnicalpickles/pickled-claude-pluginsSkill139d agoMITA40Claude Code
ecosystem-managingVidyFoo/antigravity-skill-engineSkill132mo agoMITA27Claude Code, Codex
release-prfabiandistler/agentsSkill2yesterdaynoneA47Claude Code, Codex
git-precommitu9401066/template-is-all-you-needSkill39mo agoApache-2.0A92Claude Code
releaseu9401066/template-is-all-you-needSkill39mo agoApache-2.0A60Claude Code
Worktree Managersmith-horn/product-builder-starterSkill118mo agononeA43Claude Code, Codex
commit-messageLion-1209/Lion-SkillsSkill55mo agoMITA15Claude Code