Claude Secret Guard — Development skill for Claude Code
Your shell holds the keys to production.
How to install Claude Secret Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open treybae/claude-secret-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Secret Guard does
Your shell holds the keys to production. secret-guard stops Claude Code from reading, printing or leaking them: it blocks risky commands and file reads, and redacts secrets from tool output before Claude sees them.
Alternatives in Development
- Identify Assumptions Existing — Identify risky assumptions across Value, Usability, Viability, Feasibility 7.8k ★
- Agentic Coding Practices — Agentic coding practices: what agents changed in how software gets built, and what still holds up 353 ★
- Pi Warden — Zero-key runtime guardrails for Pi, Claude Code, and Codex — blocks destructive commands and secret exfiltrati 199 ★
README
secret-guard
Your shell holds the keys to production: cloud credentials, GitHub and Vault tokens, kubeconfigs, API keys in dotfiles. Claude Code's auto mode makes agents fast because they act without asking, but that also means one stray `cat ~/.zshrc` or `vault kv get` can put a live credential into an AI transcript. Turning auto mode off is safe but slow. secret-guard gives you both: it blocks commands and file reads that expose credentials, redacts secrets from anything a tool returns before Claude sees it, and logs what it did in `/secret-guard`. Install it once, keep auto mode on.
It does four things, in every permission mode, including auto and inside subagents:
- Blocks shell commands that touch credential files. Any command that mentions
~/.zshrc,~/.zprofile,~/.zshenv,~/.zlogin,~/.bashrc,~/.bash_profile,~/.profile,~/.netrc,~/.vault-token,~/.git-credentials,~/.npmrc,~/.pypirc,~/.terraformrc,~/.terraform.d/credentials.tfrc.json,~/.docker/config.json, or anything in~/.aws,~/.ssh,~/.kube,~/.gnupg,~/.azure,~/.config/op,~/.config/ghor~/.config/gcloud. That includes$HOME/..., absolute paths, and relative spellings aftercd ~. - Blocks environment dumps and commands that print secrets.
env,printenv,export -p,declare -xand a bareset, plus:op read,op item get --reveal,op run --no-maskingvault read,vault kv get,vault token lookup/create,vault print token,vault loginaws configure get/export-credentials,aws sts get-session-token,aws ecr get-login-passwordon its own,aws secretsmanager get-secret-value,aws ssm get-parameter --with-decryptiongh auth token,gh auth status --show-tokenkubectl get secret … -o yaml|json|jsonpath|go-template
Related Skills
Claude Plugin Guards
Claude Code plugin that keeps secrets out of an agent session: redacts them in output, blocks credential-file
Klava
Klava is a cli for dead-simple usage cli code agents with any providers. Use claude code with your OpenAI-like
Claude Secret Guard Kit
Block Claude Code from reading, echoing, or committing your secrets. Read-deny rules + shell filename guard +
Heeler Secrets Scan
Run Heeler secret scanning for a repository or staged changes. Use when comitting code or the user asks to det
Apikeys Handler
Rotate API keys and secrets after a breach. Shows progress, or plans a rotation (dry run). Never reads or prin
Claude Code Privacy Guard
🛡️ Claude Code plugin that blocks prompts containing secrets, API keys, and PII before they reach Claude.
Related Agents
Operations Sm
Operations work (Sonnet, medium): running commands, reading from Vault, diagnostics over VPN/SSH, tool install
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i
i18n Auditor
Use this agent to find untranslated i18n keys, missing locale entries, and raw enum values leaking to the UI.