Claude Code Privacy Guard — Development skill for Claude Code
🛡️ Claude Code plugin that blocks prompts containing secrets, API keys, and PII before they reach Claude.
How to install Claude Code Privacy Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open datumbrain/claude-privacy-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Privacy Guard does
🛡️ Claude Code plugin that blocks prompts containing secrets, API keys, and PII before they reach Claude.
Alternatives in Development
- Google Ads Meta Ads MCP — Google Ads MCP server + Meta Ads MCP (Facebook Ads MCP) + GA4 + Search Console in one hosted remote MCP for Cl 3.2k ★
- Sanitize — Detect and redact PII from text files — 15 categories (SSNs, credit cards, API keys, etc.), zero dependencies 3.1k ★
- Dexscreener Unofficial CLI + MCP + Skills — You are a token scanning specialist using the Dexscreener Unofficial CLI (not affiliated with or endorsed by D 213 ★
README
Claude Code Privacy Guard
🛡️ Prevent secrets and PII from being accidentally shared with Claude Code.
A privacy-first plugin for Claude Code that scans prompts for sensitive data and **blocks** them before they reach the AI.

Features
- ✅ Blocks prompts containing sensitive data before they're sent to Claude
- ✅ Detects PII, secrets, API keys, tokens, and sensitive information
- ✅ Works locally - all scanning happens on your machine
- ✅ Zero configuration - works out of the box
- ✅ Detailed reporting - shows exactly what was detected
- ✅ Toggle rules and manage allowlists - by hand in
.privacy-guard.json, or vianpx claude-code-privacy-guard rulesfor a local web UI
Installation
# Add the marketplace (if not already added)
/plugin marketplace add datumbrain/claude-code-privacy-guard
# Install the plugin
/plugin install claude-code-privacy-guard
**⚠️ Important: Restart Required**
After installing the plugin, you must **restart your Claude Code session** for it to take effect. This is because hooks are registered at session startup - Claude Code doesn't dynamically load new hooks mid-session.
Simply close and reopen Claude Code, or start a new session.
Once restarted, the plugin will automatically scan all prompts before they reach Claude.
What Gets Detected
✅ **Secrets**
- OpenAI API keys (
sk-...,sk-proj-...) - Anthropic, OpenRouter, Google AI, Groq, and Perplexity API keys
- Hugging Face API tokens
- AWS credentials
- GCP service account keys
- Azure client secrets (Microsoft Entra ID)
- GitHub tokens (classic and fine-grained PATs)
- GitLab tokens (personal access, deploy, runner, pipeline trigger, service account, CI job)
- Slack tokens
- Stripe keys
- Twilio API key SIDs and account
Related Skills
Sensitive Canary
Claude Code hooks that guard secrets and PII before they reach the Anthropic API
Bashrc Credential Guard
Always check ~/.bashrc for credentials, API keys, passwords, and configuration values before asking user
Prompt Optimizer
Optimize prompts for Claude & Gemini with local, privacy-first PII anonymization: a Windows/Tauri desktop app
CryptEnv
A local-first encrypted secrets vault for developers. API keys, credentials, commands and links — accessible w
Heeler Secrets Scan
Run Heeler secret scanning for a repository or staged changes. Use when comitting code or the user asks to det
Rogue Observability Engineering Skill
Expert application observability: structured logging, correlation IDs, health checks, metrics/SLIs, error trac
Related Agents
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i
Security Privacy Guardian
Use when validating PII handling (LGPD/GDPR), secret leakage in code/prompts/traces, eval-case sanitization, o
Verify Data Privacy
STAGE 3 VERIFICATION - Data privacy and compliance. Ensures GDPR, PCI-DSS, HIPAA compliance, PII handling, and