Works with the AI Agents you already use

    PrivacyGuard — Pre-Flight Privacy Gate for AI Agents

    by jerry-3

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PrivacyGuard — Pre-Flight Privacy Gate for AI Agents

    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

    ScopeResultFindingsStatus
    build_output/HITS FOUND4 Total Detection(s)BLOCKING

    Detection Details

    • HIT x1 static:[EMAIL] - Your configured email address was found in config_backup.txt.
    • HIT x2 rule:known-api-token - Detected patterns matching Anthropic and OpenAI API key formats in env_vars.log.
    • HIT x1 rule:local-path - An absolute local file path (/Users/admin/projects/...) was found in error.log.

    Next steps

    1. Delete config_backup.txt and env_vars.log from the ./build_output folder.
    2. Sanitize error.log using the sanitize command to mask the local path.
    3. Rerun the scan on the folder to verify a clean: no hits result 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:

    1. 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.
    2. 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.
    3. 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.
    4. Custom rules for your platform. Add claim codes, order numbers, or any format your workflow uses.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed5 days ago
    Updated3 days ago

    What's inside

    Creator

    jerry-3

    jerry-3

    4 skills on Agensi

    Frequently Asked Questions

    Privacy Guard is a local Python-based security layer that scans and masks PII, API keys, and internal file paths before you send data to cloud LLMs, preventing accidental data leaks.

    This is a standalone Python utility that functions as a 'pre-flight' gate; it is compatible with any AI agent or workflow that can execute Python scripts or process text files locally.

    Unlike prompt-based redaction which can be bypassed or ignored by an LLM, this skill uses deterministic code-level regex and blocklists to ensure sensitive data is removed before it ever leaves your machine.

    You will receive the core Python script, a sample JSON configuration file for your custom blocklists, and a README guide detailing CLI commands for text sanitization and archive scanning.

    Yes, the tool includes a dedicated archive inspection feature that can unpack, scan, and audit the contents of .zip and .tar.gz files to identify hidden secrets before you upload them.

    Privacy Guard is a zero-dependency tool requiring only a standard Python 3.x installation, making it lightweight and easy to integrate into existing DevOps or LLM-ops pipelines.

    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.