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.

Install it, pinned
mdr add kopp0510/claude-dd/skills/gate-guard/hooks/CLAUDE.md@git:20261012.2bb8011

Pins 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

The exact contents, by fingerprint
mdr add kopp0510/claude-dd/skills/gate-guard/hooks/CLAUDE.md@sha256:67d7bb66bb569c99

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_n55yhlwksxin5ygn.svg)](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.

versioncommittedcommitsizeaudit
git:20261012.2bb8011 latest2026-10-12 2bb8011 5,391 BA view · diff
git:20260930.3048f952026-09-30 3048f95 5,318 BA view · diff
git:20260930.43d92a02026-09-30 43d92a0 5,207 BA view · diff
git:20260930.bf095ee2026-09-30 bf095ee 5,105 BA view · diff
git:20260930.5fafa752026-09-30 5fafa75 3,611 BA view · diff
git:20260930.7c535ec2026-09-30 7c535ec 2,973 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from kopp0510/claude-dd

CLAUDE.md CLAUDE.md file
kopp0510/claude-dd · CLAUDE.md
git:20261019.ee236d6 · audit A · 12 stars
CLAUDE.md@diagrams/src CLAUDE.md file
kopp0510/claude-dd · diagrams/src/CLAUDE.md
git:20260912.b15432f · audit A · 12 stars
CLAUDE.md@docs/reviews CLAUDE.md file
kopp0510/claude-dd · docs/reviews/CLAUDE.md
git:20261018.ee68e72 · audit A · 12 stars
CLAUDE.md@scripts CLAUDE.md file
kopp0510/claude-dd · scripts/CLAUDE.md
git:20261019.ee236d6 · audit A · 12 stars
code-simplifier SKILL.md skill
kopp0510/claude-dd · skills/code-simplifier/SKILL.md · 調用官方 code-simplifier agent 簡化程式碼。當使用者要求簡化、降低複雜度、清理冗餘,或執行 8 步開發迴圈步驟 3 時啟用。不適用於 PR 審查(用 code-reviewer)。
git:20260912.708b336 · audit A · 12 stars
design-brainstorm SKILL.md skill
kopp0510/claude-dd · skills/design-brainstorm/SKILL.md · 蘇格拉底式設計對話,透過逐步提問把模糊想法精煉為可實作的設計。當提到「腦力激盪」「brainstorm」「我有個想法」「幫我想想」「設計討論」「這方向可行嗎」時自動啟用。
git:20260912.9ee3372 · audit A · 12 stars
frontend-design SKILL.md skill
kopp0510/claude-dd · skills/frontend-design/SKILL.md · 前端視覺設計專家,建立獨特、生產級的前端介面。當提到視覺風格設計、UI 介面建立、頁面視覺設計、切版、版面樣式時自動啟用。不適用於純框架實作或設計系統 token 建置。
git:20260723.ee57bf2 · audit A · 12 stars
review SKILL.md skill
kopp0510/claude-dd · skills/review/SKILL.md · 跨維度綜合審查包裝器,調用 workflow-review 命令同時執行安全+效能+配置審查。當需要全面審查、comprehensive review、合併前多維度審查時自動啟用。不適用於單純 PR / 段落 diff 審查(用…
git:20260723.ee57bf2 · audit A · 12 stars
CLAUDE.md@skills/self-improving-agent CLAUDE.md file
kopp0510/claude-dd · skills/self-improving-agent/CLAUDE.md
git:20261012.2bb8011 · audit A · 12 stars
self-improving-agent SKILL.md skill
kopp0510/claude-dd · skills/self-improving-agent/SKILL.md · Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven…
git:20260912.9ee3372 · audit A · 12 stars
CLAUDE.md@skills/self-improving-agent/hooks CLAUDE.md file
kopp0510/claude-dd · skills/self-improving-agent/hooks/CLAUDE.md
git:20261012.2bb8011 · audit A · 12 stars
extract SKILL.md skill
kopp0510/claude-dd · skills/self-improving-agent/skills/extract/SKILL.md · Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and…
git:20260912.9ee3372 · audit A · 12 stars

Every file in kopp0510/claude-dd

Browse by kind, by grade A, or by owner.