Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/matanryngler/deployshield/claude-mdgit clone --depth 1 https://github.com/matanryngler/deployshieldWrote 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/instructions/matanryngler/deployshield/claude-md)<a href="https://agentmods.dev/instructions/matanryngler/deployshield/claude-md"><img src="https://agentmods.dev/badge/instructions/matanryngler/deployshield/claude-md.svg" alt="Measured on agentmods" 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 | $0.00903 | $0.00903 |
| Opus 5 | $0.00451 | $0.00451 |
| Sonnet 5 | $0.00181 | $0.00181 |
| Haiku 4.5 | $0.00090 | $0.00090 |
Grade A, and why
deployshield CLAUDE.md 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 4d ago.
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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
DeployShield is a production safety guardrail for Claude Code and Gemini CLI. It blocks write/mutating CLI commands while allowing read-only ones. It works as a hook on shell commands — every command the AI tries to run goes through the validator, which default-denies any recognized CLI action that isn't on the safe-list. Unrecognized CLIs pass through untouched.
Commands
# Run tests
uv run pytest -v
# Run a single test file or class
uv run pytest tests/test_integration.py -v
uv run pytest tests/test_cloud_providers.py -v
# Lint
uv run ruff check hooks/scripts/ tests/
uv run ruff format --check hooks/scripts/ tests/
# Pre-commit (runs automatically on commit after install)
uv run pre-commit install
uv run pre-commit run --all-files
# Manual smoke test (pipe JSON to stdin, exit 0 = allow, JSON output = deny)
echo '{"hook_event_name": "PreToolUse", "tool_input":{"command":"kubectl get pods"}}' | ./hooks/scripts/validate-cloud-command.py
echo '{"hook_event_name": "BeforeTool", "tool_input":{"command":"terraform apply"}}' | ./hooks/scripts/validate-cloud-command.py
# Test session start message
python3 hooks/scripts/validate-cloud-command.py --session-start claude
python3 hooks/scripts/validate-cloud-command.py --session-start gemini
Architecture
The entire validation engine is a single Python script (hooks/scripts/validate-cloud-command.py) with no dependencies beyond the stdlib.
- hooks/hooks.json — Primary hook file for Gemini CLI (uses
BeforeToolevent). - hooks/claude-hooks.json — Dedicated hook file for Claude Code (uses
PreToolUseevent). - .claude-plugin/plugin.json — Plugin manifest. Points to
hooks/claude-hooks.json. - hooks/scripts/validate-cloud-command.py — Core logic. Flow: read JSON from stdin → detect platform from
hook_event_name→split_compound_command(state-machine shell parser) →normalize_segment(unwrapssudo,env,xargs) → dispatch to per-providercheck_*function →deny()with platform-specific JSON output if unsafe. - skills/deployshield/SKILL.md — Context injected into Claude when working with infra files.
- skills/gemini/SKILL.md — Context injected into Gemini CLI.
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.
- 4d ago First seen · 74 lines · 903 tokens per session scan A 6d888006aa47
deployshield CLAUDE.md is an instructions file published in the GitHub repository matanryngler/deployshield (3 stars, last pushed 5mo ago), licensed MIT. It adds 903 tokens to every session, about $0.0045 per session on Opus 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-08-31.
Other instructions, from other repositories
awesome-kubernetes CLAUDE.md
Instructions for nubenetes/awesome-kubernetes, covering claude.md — nubenetes project instructions for claude code, git workflow: gitflow, branches, release process (mandatory for all releases) and versioning.
awesome-kubernetes GEMINI.md
Instructions for nubenetes/awesome-kubernetes, covering 🧠 core mandates, 🛠️ structural evolution & navigation, 📊 mermaid diagram best practices, 🛡️ repository policies & branch protection and 📝 readme synchronization & maintenance protocols.
claude-aws-architect CLAUDE.md
Claude Code instructions for odere-pro/claude-aws-architect, covering claude.md — entry-point notes for claude-aws-architect, plugin entry point, self-dogfood, where the spec lives and house rules in this repo.
ML-MLOps-Portfolio AGENTS.md
AGENTS.md instructions for DuqueOM/ML-MLOps-Portfolio, covering agents.md — ml service template, project identity, agent architecture, critical patterns — do not violate and ml serving invariants.
kube2iam GEMINI.md
Gemini CLI instructions for jtblin/kube2iam, covering gemini.md - kube2iam, project overview, build and development, prerequisites and core commands.
awsmux AGENTS.md
Instructions for 0hardik1/awsmux, covering agents.md, what awsmux is, build, test, verify, layout and the safety model — invariants you must not weaken.