Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Rheinmir/setupnpx agentmods add skills/rheinmir/setup/dym-cti-expert-safety-gatesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rheinmir/setup/dym-cti-expert-safety-gates)<a href="https://agentmods.dev/skills/rheinmir/setup/dym-cti-expert-safety-gates"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-cti-expert-safety-gates/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-cti-expert-safety-gates"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-cti-expert-safety-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01853 |
| Opus 5.5 | $0.00024 | $0.00741 |
| Sonnet 5.5 | $0.00012 | $0.00371 |
| Haiku 4.5 | $0.00006 | $0.00185 |
Grade A, and why
dym-cti-expert-safety-gates scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: dym-cti-expert-safety-gates — Rào an toàn: cái gì bị CHẶN, cái gì HỎI, cái gì im lặng
Vì sao dùng: để bạn không ngạc nhiên giữa case, và quan trọng hơn — để bạn không tắt nhầm một rào. Sinh ra cái gì: không sinh gì; nó đổi cách bạn đọc mọi prompt xác nhận mà cti-expert bật lên.
Ba hook, và chúng chỉ tồn tại khi cài theo đường plugin
hooks/hooks.json đăng ký đúng ba mục:
| Hook | Bắt sự kiện | Hành vi |
|---|---|---|
leakguard.py |
PreToolUse · Write|Edit|NotebookEdit |
deny — chặn ghi dữ liệu case vào file tracked |
actionguard.py |
PreToolUse · Bash|mcp__.* |
ask — hỏi trước hành động outbound không thu hồi được |
sessionguard.py |
SessionStart |
báo tier backend + cảnh báo khi số @tool đổi |
bash scripts/register.sh không cài được hook. Chỉ /plugin install cti-expert mới có (01 bước 3b). Verify bằng /hooks trong Claude Code — phải thấy 3 mục.
leakguard.py — RULE 1 tại thời điểm GHI
Repo cấm dữ liệu điều tra lọt vào file tracked: tên người thật, hạ tầng của case, GA4/GTM thật, case ID, PII của operator — kể cả dưới dạng "ví dụ minh hoạ" trong comment hay fixture test.
Có hai lớp thi hành, cố ý:
scripts/leakcheck.shchạy ở git pre-commit (cài bằngbash scripts/install-hooks.sh, phải chạy mỗi lần clone mới vì.git/hooks/không được track).hooks/leakguard.pychạy ở thời điểm Write/Edit.
Lý do có cái thứ hai: hook git chỉ nổ lúc commit và git commit --no-verify bỏ qua được, trong khi một agent thì ghi liên tục và commit hiếm khi. Ở tầng Write không có cờ --no-verify nào cả.
leakguard.py không tự cài lại các mẫu regex — nó gọi ra scripts/leakcheck.sh. Một bản sao thứ hai sẽ trôi lệch, và một guard đã trôi lệch thì luôn báo sạch.
Nó chỉ deny khi cả hai đúng: đường dẫn nằm trong một checkout cti-expert, và git không ignore đường dẫn đó. Ghi vào intel_engine/cases/, intel_engine/knowledge/, .env — tức các kho đã gitignore — hoàn toàn không bị đụng. Ghi ngoài checkout cũng vậy.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 111 lines · 61 tokens per session scan A 55eff483648f
dym-cti-expert-safety-gates is a skill published in the GitHub repository Rheinmir/setup (11 stars, last pushed 20d ago), licensed MIT. It adds 61 tokens to every session and 1,853 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.
dym-cti-expert-safety-gates compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dym-cti-expert-safety-gatesRheinmir/setup | Skill | 11 | 20d ago | MIT | A | 61 | Claude Code |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | yesterday | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 100k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 314k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |