Works with the AI Agents you already use
PrivacyGuard — Pre-Flight Privacy Gate for AI Agents
by jerry-3
A zero-dependency Python skill that masks PII, API keys, tokens, and wallet addresses before your agent sends anything to a cloud LLM, API, or third-party platform — and scans the final file before submission.
$2
PrivacyGuard — Pre-Flight Privacy Gate for AI Agents
Example session with this skill installed
Scan the folder ./build_output to make sure I didn't leave any API keys or my personal email in the files before I upload the bundle.
- Read your context and instructions
- Compiled the privacyguard
I have completed the privacy scan of the ./build_output directory using privacy_guard.py. I checked for both your fixed sensitive terms and built-in secret patterns.
Privacy Scan Report
| Scope | Result | Findings | Status |
|---|---|---|---|
build_output/ | HITS FOUND | 4 Total Detection(s) | BLOCKING |
Detection Details
- HIT x1
static:[EMAIL]- Your configured email address was found inconfig_backup.txt. - HIT x2
rule:known-api-token- Detected patterns matching Anthropic and OpenAI API key formats inenv_vars.log. - HIT x1
rule:local-path- An absolute local file path (/Users/admin/projects/...) was found inerror.log.
Next steps
- Delete
config_backup.txtandenv_vars.logfrom the./build_outputfolder. - Sanitize
error.logusing thesanitizecommand to mask the local path. - Rerun the scan on the folder to verify a
clean: no hitsresult before uploading.
Connects securely to your tools. The creator never sees your data.
About this skill
Most privacy skills do one half of the job: they scan and report, or they hand you instructions and templates. PrivacyGuard does both halves — mask, then verify — in one zero-dependency Python tool that runs before anything leaves the machine:
- sanitize masks your fixed sensitive terms (names, emails, account IDs, wallet addresses, organizations) and high-risk formats (API keys, tokens, private keys, JWTs, crypto addresses, local paths) in any text stream.
- scan checks the exact file, directory, .tar.gz, or .zip you are about to send and reports what's still inside — by rule label and count, never by value. Exit code 1 blocks the send.
What makes it different:
- Your own blocklist, not just formats. Regex scanners catch things that look like secrets. They cannot catch your name, your email, or your wallet address. PrivacyGuard masks the exact terms you list in a JSON config — the values only you know are sensitive. Your terms never live in the script, so the tool itself is safe to share and bundle.
- Mask, then verify, end to end. Sanitize the stream, then scan the final artifact. If anything slipped through, the gate fails closed (exit 1) instead of leaking quietly.
- Reports that are safe to share. Scan output shows rule labels and counts only — never the matched values — so a report pasted into logs, chats, or tickets can't become a second leak.
- Custom rules for your platform. Add claim codes, order numbers, or any format your workflow uses.
- Battle-tested in a real agent pipeline. Built for automated agent submissions where a leaked transcript means disqualification — not a demo.
What's included
- SKILL.md — agent instructions (works with Claude Code, Codex, Cursor, and any agent that reads skills)
- privacy_guard.py — the tool, Python 3 standard library only
- config.example.json — config template
- examples/ — fake demo transcript + expected output, so you can see it work in 30 seconds
Built-in format coverage Private-key headers · GitHub/Anthropic/OpenAI token formats · AWS access key IDs · bearer tokens · JWTs · api_key=... assignments · EVM addresses & keys · emails · local user paths · example regional rules (Taiwan ID/mobile) you can adapt or remove.
Honest note: this is a regex-and-blocklist gate, not magic. It catches what you list and the formats it knows. Treat a clean scan as a strong pre-flight check — and still read the final artifact before it leaves.
Requires local Python 3. Cannot scan binary formats like images or PDFs. Effectiveness depends on the completeness of the user-provided config file.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Creator
jerry-3
4 skills on Agensi
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.