daymade/claude-code-skills · daymade-claude-code/claude-code-hooks/SKILL.md

claude-code-hooks skillA

claude-code-hooks is agent-read markdown (skill) from daymade/claude-code-skills: 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"..

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 daymade/claude-code-skills/claude-code-hooks@git:20260923.d5976d1
Exact content
mdr add daymade/claude-code-skills/claude-code-hooks@sha256:a9ee63d83709e428

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_h37auq7wl2h7vyks.svg)](https://markdownregistry.com/a/art_h37auq7wl2h7vyks)

0 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260923.d5976d1 latest2026-09-23 d5976d1 93,735 BA view · diff
git:20260920.7b2dfb02026-09-20 7b2dfb0 94,459 BA view · diff
git:20260920.0b9b3e62026-09-20 0b9b3e6 93,835 BA view · diff
git:20260920.5bd83652026-09-20 5bd8365 93,738 BA view · diff
git:20260919.b6269492026-09-19 b626949 92,924 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (93735 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

GitHub

daymade/claude-code-skills · 1,425 stars · license MIT · pushed 2026-09-24 · 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/a9ee63d83709e428ffca830029d539d96b02de2e8761d31b41dce7b94e20ab08

Your agent does the deals. You hear about the good ones. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.