Claude Secret Guard Kit — Development skill for Claude Code
Block Claude Code from reading, echoing, or committing your secrets.
How to install Claude Secret Guard Kit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open baselane-sh/claude-secret-guard-kit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Secret Guard Kit does
Block Claude Code from reading, echoing, or committing your secrets. Read-deny rules + shell filename guard + credential-value guard, one-command install.
Alternatives in Development
- Pi Warden — Zero-key runtime guardrails for Pi, Claude Code, and Codex — blocks destructive commands and secret exfiltrati 199 ★
- Voice Guard — Use to check ONE already-written piece of copy against a voice guide before it ships — it spawns ONE fresh sib 130 ★
- Replicate — Demonstrate-first replication of a paper's method before committing to a build 61 ★
README
Claude Secret Guard Kit
Stop Claude Code from reading, echoing, or committing your secrets. One command.
Claude Code is powerful in auto/accept mode, but it will happily `cat` your `.env`, pull a private key into context (which is then sent to the model and saved in the local transcript), or write a token into a logline or commit. This kit adds six layers of protection so that does not happen by accident.
What it does
| Layer | Covers | Mechanism |
|---|---|---|
| 1. Read block | Read tool opening .env, *.pem, *.key, id_rsa, secrets.json, ... |
native permissions.deny rules |
| 2. Shell guard | cat / grep / cp / scp of those same files |
secret-filename-guard hook (PreToolUse Bash) |
| 3. Value guard | Live credential values (AWS, GitHub, Anthropic, OpenAI, Google, Slack, Stripe, JWTs, DB URLs with a password, npm, SendGrid, Twilio, GCP service accounts, Azure, Hugging Face, private keys) pasted, written, or committed | secret-guard hook (PreToolUse + UserPromptSubmit) |
| 4. Commit guard | Secrets already sitting in files when you git commit: scans the staged diff (and unstaged tracked changes with -a) for credential values and secret-named files |
secret-commit-guard hook (PreToolUse Bash) |
| 5. Env and exfil guard | env / printenv dumps, echo $SECRET_VAR, /proc/*/environ, and curl / wget / nc sending a $variable, an @file, or piped content to a remote host |
env-exfil-guard hook (PreToolUse Bash) |
| 6. Output guard | A credential that lands in a tool result (a cat, a log, a Read). Cannot un-read it, but tells the model not to repeat, store, or commit it, names the source, and asks you to rotate |
secret-output-guard hook (PostToolUse Bash, Read) |
All guards share one pattern list, `hooks/secret-patterns.sh`, so a shape added there is caught everywhere. Layer 1 hard-blocks. Layers 2 to 5 pause and ask you to confirm, so normal work (like a recursive `gre
Related Skills
Claude Secret Guard
Your shell holds the keys to production. secret-guard stops Claude Code from reading, printing or leaking them
Cc Agents Kit
Claude Code plugin marketplace. guard-hooks: five defensive hooks that block dangerous shell commands and secr
Uaf Secrets
Scan files or the repository for credential patterns before sharing, committing, or publishing.
Narthex
Prompt-injection defenses for Claude Code. A PreToolUse Bash hook blocks compositional credential-exfiltration
Apikeys Handler
Rotate API keys and secrets after a breach. Shows progress, or plans a rotation (dry run). Never reads or prin
Secret Guard
Cross-agent secret-leak guard: gitleaks-based detection core + per-tool hook adapters (Claude Code, OpenCode,
Related Agents
Laya Vetter
Security-vets a candidate plugin, skill or MCP server repo before installation (hooks, install scripts, creden
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i