CLAUDE.md@skills/gate-guard/hooksA
CLAUDE.md@skills/gate-guard/hooks from kopp0510/claude-dd is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.
mdr add kopp0510/claude-dd/skills/gate-guard/hooks/CLAUDE.md@git:20261012.2bb8011Pins git:20261012.2bb8011 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- CLAUDE.md file
- Repository
- kopp0510/claude-dd
- Path
skills/gate-guard/hooks/CLAUDE.md- Versions recorded
- 6
- Latest version
- git:20261012.2bb8011, committed Oct 12, 2026
- First version recorded
- Sep 30, 2026
- Size
- 5,391 bytes
- Repository stars
- 12
- License
- MIT
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
# gate-guard / hooks 一支 PreToolUse(Bash) hook:Claude 要執行的 `git commit` 帶了 `--no-verify`、`-n`,或用 `-c core.hooksPath=` 當場關掉 hook 時直接 deny,堵住「被 CLAUDE.md gate 擋下就繞過」這條路。 git 的 `--no-verify` 會跳過 pre-commit hook,gate(`scripts/check-claude-md.sh`)自己看不到那次 commit。 ## 關鍵檔案 | 檔案 | 用途 | |---|---| | `guard-no-verify.sh` | hook 本體。stdin 收 hook JSON,取 `tool_input.command`(jq 優先、python3 後備,兩者都沒有就放行),用 awk 做簡化的 shell 斷詞後判斷;命中就印 `permissionDecision: deny` 的 JSON,理由裡指向正式逃生口 `SKIP_DOC_CHECK=1`。一律 exit 0 | | `test-guard-no-verify.sh` | 上者的行為測試(CI 會跑)。指令用 jq/python3 組成 JSON,雙引號與換行才不會生出壞 JSON 讓案例假通過。整套跑兩輪(預設 PATH、藏起 jq 逼走 python3),hook 印出任何 stderr 就判失敗(bash 3.2 的 `bad substitution` 常常只印錯誤、結果照舊);第 3 輪另組只有 `cat`、`awk` 的 PATH 確認放行 —— 不沿用第 2 輪的 PATH,那份在第 2 輪被跳過時是空的,hook 會因為找不到 `cat` 才放行、案例假通過 | | `hooks.json` | 註冊 PreToolUse、matcher `Bash`,帶 `"timeout": 30`(秒,使用者要求所有 hook 都有逾時)。`command` 必須是 `$HOME/.claude/skills/gate-guard/hooks/...` 絕對路徑(根目錄 CLAUDE.md「Skill hook 路徑規範」,`validate_skill_hooks()` 會擋相對路徑) | ## 此層約束 - **只擋 `git commit`**。`git config core.hooksPath scripts/githooks` 是開發本 repo 的標準設定、 `git config --get core.hooksPath` 是 `/dd-init` Phase 3 會跑的指令,兩者都必須放行; …
Read the whole file at its exact version.
How to install
mdr add kopp0510/claude-dd/skills/gate-guard/hooks/CLAUDE.md@sha256:67d7bb66bb569c99The line at the top of this page pins the label git:20261012.2bb8011, 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_n55yhlwksxin5ygn)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Sep 30, 2026 and Oct 12, 2026, about one every 2 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261012.2bb8011 latest | 2026-10-12 | 2bb8011 | 5,391 B | A | view · diff |
| git:20260930.3048f95 | 2026-09-30 | 3048f95 | 5,318 B | A | view · diff |
| git:20260930.43d92a0 | 2026-09-30 | 43d92a0 | 5,207 B | A | view · diff |
| git:20260930.bf095ee | 2026-09-30 | bf095ee | 5,105 B | A | view · diff |
| git:20260930.5fafa75 | 2026-09-30 | 5fafa75 | 3,611 B | A | view · diff |
| git:20260930.7c535ec | 2026-09-30 | 7c535ec | 2,973 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (5391 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
kopp0510/claude-dd · 12 stars · license MIT · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_n55yhlwksxin5ygn GET https://markdownregistry.com/api/v1/resolve?ref=kopp0510/claude-dd/skills/gate-guard/hooks/CLAUDE.md GET https://markdownregistry.com/api/v1/blob/67d7bb66bb569c995db4567d76228dfb962310653186d51bc65f4029f3e5fe45
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: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.