claude-code-hooks SKILL.md skillA
claude-code-hooks from daymade/claude-code-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add daymade/claude-code-skills/claude-code-hooks@git:20261107.c2b95fcPins git:20261107.c2b95fc in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- daymade/claude-code-skills
- Path
daymade-claude-code/claude-code-hooks/SKILL.md- Versions recorded
- 16
- Latest version
- git:20261107.c2b95fc, committed Nov 7, 2026
- First version recorded
- Sep 19, 2026
- Size
- 98,255 bytes
- Repository stars
- 1,519
- License
- MIT
Writes, tests, registers and debugs Claude Code hooks (PreToolUse, PostToolUse, SessionStart, Stop) that turn a rule the model keeps breaking into a hard gate. Use when the user wants to block or intercept a tool call, add a guard rail, fix a misfiring hook, or says 拦截 / 守卫 / 钩子 — including "make it stop doing X".
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Claude Code Hooks Claude Code fires **hooks** at tool-call boundaries. A hook is a shell command that receives a JSON event on stdin and, for blocking hooks, decides via its **exit code** whether the tool call proceeds. This is the only mechanism that *structurally* stops a behavior — a prose rule in CLAUDE.md is a suggestion the completion drive can override; a hook is a wall. ## When a hook is the right tool (and when it isn't) Write a hook when **a rule keeps getting violated even though it's already written down**. The tell: you added the prose rule, it read clearly, and the behavior recurred anyway — because at the moment of action, attention is 100% on "get the thing done" and the reminder loses. That recurrence is the signal to move the rule from prose (advisory) to a hook (enforced). Governance rule of thumb: *Tier-0 irreversible action + only prose, no hook → it should be a hook.* (**Tier-0** here = an action whose damage cannot be undone from inside the session: destroying uncommitted work, pushing secrets to a remote, deleting files, publishing something outward. The test is reversibility, not severity.) …
Read the whole file at its exact version.
How to install
mdr add daymade/claude-code-skills/claude-code-hooks@sha256:1b043b51ca4f49caThe line at the top of this page pins the label git:20261107.c2b95fc, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_h37auq7wl2h7vyks)
7 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 16 versions of this file, between Sep 19, 2026 and Nov 7, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261107.c2b95fc latest | 2026-11-07 | c2b95fc | 98,255 B | A | view · diff |
| git:20261031.7013d82 | 2026-10-31 | 7013d82 | 97,941 B | A | view · diff |
| git:20261025.39d04e9 | 2026-10-25 | 39d04e9 | 97,604 B | A | view · diff |
| git:20261025.4d4336b | 2026-10-25 | 4d4336b | 97,284 B | A | view · diff |
| git:20261007.3fb307e | 2026-10-07 | 3fb307e | 97,227 B | A | view · diff |
| git:20261004.ba5ba4c | 2026-10-04 | ba5ba4c | 96,759 B | A | view · diff |
| git:20261004.c2cfb0f | 2026-10-04 | c2cfb0f | 96,764 B | A | view · diff |
| git:20261004.9e8d846 | 2026-10-04 | 9e8d846 | 96,755 B | A | view · diff |
| git:20261003.e49da15 | 2026-10-03 | e49da15 | 95,697 B | A | view · diff |
| git:20260929.f04461b | 2026-09-29 | f04461b | 94,935 B | A | view · diff |
| git:20260928.7930495 | 2026-09-28 | 7930495 | 94,209 B | A | view · diff |
| git:20260923.d5976d1 | 2026-09-23 | d5976d1 | 93,735 B | A | view · diff |
| git:20260920.7b2dfb0 | 2026-09-20 | 7b2dfb0 | 94,459 B | A | view · diff |
| git:20260920.0b9b3e6 | 2026-09-20 | 0b9b3e6 | 93,835 B | A | view · diff |
| git:20260920.5bd8365 | 2026-09-20 | 5bd8365 | 93,738 B | A | view · diff |
| git:20260919.b626949 | 2026-09-19 | b626949 | 92,924 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (98255 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
daymade/claude-code-skills · 1,519 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_h37auq7wl2h7vyks GET https://markdownregistry.com/api/v1/resolve?ref=daymade/claude-code-skills/claude-code-hooks GET https://markdownregistry.com/api/v1/blob/1b043b51ca4f49cab48917fe6ecc8a8b10b73388cfdf445c0cfab9da18e0bc42
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from daymade/claude-code-skills
Every file in daymade/claude-code-skills