bendrucker/claude · plugins/claude-code/skills/hook/SKILL.md

claude-code:hook skillA

claude-code:hook is agent-read markdown (skill) from bendrucker/claude: Configure, create, or troubleshoot Claude Code hooks (PreToolUse, PostToolUse, UserPromptSubmit), debug hook failures, or set up any automation within Claude Code. Examples include "I want to run tests before every file edit", "My hook isn't firing", "1 out of 2 hooks ran", or "How do I create a hook that formats JSON output with jq?".

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

How to install

Latest version
mdr add bendrucker/claude/claude-code:hook@git:20260902.13afaad
Exact content
mdr add bendrucker/claude/claude-code:hook@sha256:1710af10cbea6bb0

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6kwdmud7m7b7gxq4.svg)](https://markdownregistry.com/a/art_6kwdmud7m7b7gxq4)

0 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260902.13afaad latest2026-09-02 13afaad 6,580 BA view · diff
git:20260818.1aac8182026-08-18 1aac818 5,504 BA view · diff
git:20260802.56e55482026-08-02 56e5548 5,499 BA view · diff
git:20260727.14c22cf2026-07-27 14c22cf 3,695 BA view · diff
git:20260724.29138032026-07-24 2913803 3,876 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.

Source

GitHub

bendrucker/claude · 16 stars · license MIT · pushed 2026-09-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_6kwdmud7m7b7gxq4
GET https://markdownregistry.com/api/v1/resolve?ref=bendrucker/claude/claude-code:hook
GET https://markdownregistry.com/api/v1/blob/1710af10cbea6bb0e7f9d8e909af02111581345baf2821e0725f5d7cb2505b09