Hide Client Names & Secrets Before Sending Code to AI

    by Nicolas Baranov

    1

    Cleans code locally before it goes to an AI model: client names, emails, phones and keys become consistent tokens, Python logic is proven unchanged, and the originals are put back.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Replaces every spelling of the client and project names you list; each spelling keeps its own token
    • Replaces emails, phone numbers, keys and tokens before code leaves your machine
    • Proves Python logic is unchanged after cleaning, or refuses to output anything
    • Puts the original names back into the model's answer, even in new names it built
    • Flags tokens in the answer that it never issued
    • Refuses input with invisible characters instead of guessing

    Who it's for

    Freelancers handling sensitive client code

    Protect your clients' privacy when using AI to debug or refactor their code.

    Try asking: “Clean the client names and secrets from this Python script before I send it to ChatGPT.”

    Agencies and outsourcing teams under NDA

    Send client code to an AI or a subcontractor without naming the client or leaking its keys.

    Try asking: “Hide Northwind and Нортвинд in these files before I send them to the contractor.”

    Developers using AI for code reviews

    Strip API keys and client names from Python while its logic stays provably the same.

    Try asking: “Replace all keys and project names in these logs so I can ask for a summary.”

    Hide Client Names & Secrets Before Sending Code to AI

    Example session with this skill installed

    I need help speeding up billing.py, but it's for our client Northwind and has a key and a contact in it. Clean it before it goes to the cloud model, then restore the answer.

    • Read your context and instructions
    • Compiled the hide client names

    Summary

    billing.py is cleaned and ready to send. The client name, an email, a phone number and a key were replaced, and the Python logic was proven unchanged. I did not open the original file; I only read the cleaned copy.

    (Real run of the bundled tool on a small demo file. The model's answer in step 3 is a one-line stand-in.)

    1. Clean

    $ python3 <skill>/scripts/skilllayer.py context clean --in billing.py --out .context-clean/billing.py --entity client_a=Northwind,Нортвинд
    skilllayer context clean: TRANSFORM; replaced: name 2, email 1, phone 1, secret 1; Python structure proven unchanged
    

    2. What goes to the model: .context-clean/billing.py

    
    # client_a_f2715383 billing export, contact user_a814a549@example.invalid, +7 000 802-26-71
    API_KEY = "SECRET_ab5b42f7"
    
    def client_a_b8086f85_invoice_total(lines):
        return sum(l["qty"] * l["price"] for l in lines)
    

    3. Restore the answer

    The model replied: Rename client_a_b8086f85_invoice_total to client_a_b8086f85_total_v2 and add a docstring. Also see client_b_deadbeef.

    $ python3 <skill>/scripts/skilllayer.py context restore --in answer.txt --out answer.restored.txt
    skilllayer context restore: tokens that were never issued: client_b_deadbeef
    

    Restored answer: Rename northwind_invoice_total to northwind_total_v2 and add a docstring. Also see client_b_deadbeef.

    CheckResult
    Sensitive values left in the outputnone
    Restoring the cleaned fileidentical to the original, byte for byte
    Python logicproven unchanged
    Tokens the model invented1 reported (client_b_deadbeef), left as is

    Next steps

    1. Send .context-clean/billing.py to the model.
    2. Save its answer as answer.txt, and I will restore it.
    3. client_b_deadbeef was never issued, so the model made it up. Ask it what it meant before acting on that line.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    You want a model's help with client code, but the code says who the client is and holds keys and personal data. This skill cleans it on your machine first, checks its own result, and puts the originals back into the answer.

    What gets replaced

    WhatReplaced with
    Client and project names you list, in any case or separator (Northwind, north_wind, NorthwindClient, Cyrillic look-alikes)client_a_3f9c21b0, one token per spelling
    Keys, tokens, passwords (only the value)SECRET_5e0d77a1
    Emailuser_1b788a54@example.invalid
    Phone (+7/8, +1)same layout, area code 000
    ИНН, СНИЛС, card numbers (checksum-validated)new digits with a valid checksum
    Public IPv410.x.y.z

    The same spelling always gets the same token, so the code still makes sense to the model. Different spellings of one name get different tokens, all starting with client_a_.

    What it checks before giving you output

    1. Nothing sensitive is left: the output is scanned again with the same detectors.
    2. Exact reversibility: restoring the output gives back the input byte for byte.
    3. Python logic unchanged: both versions are parsed and must differ only by a consistent one-to-one renaming.
    4. Fail closed: invisible characters, unparseable Python, a secret in code outside a string, or a token already present in the input stop it, and nothing is written.

    How it works

    1. You list the clients and projects to hide, with every spelling you use.
    2. The agent cleans each file into a separate folder without opening the original, and reports what was replaced.
    3. You send only the cleaned files to the other model, a web chat or a contractor.
    4. You save the answer, and the agent restores the original names in it, including inside new names the model built from a token. Tokens the model invented are reported.

    The key and the token table stay in a private folder in your home directory and are never sent anywhere.

    What it does not do

    It is a convenience with checks, not a security boundary: an algorithm stays recognisable after renaming. It finds only the names you list, not people's names in free text. Other phone formats, passports, IBAN and IPv6 are not covered. Emails written with look-alike characters, such as a full-width @ instead of @, are not yet recognised. The logic proof is for Python only; other languages and plain text are replaced and round-tripped without it.

    Licence

    The bundled source is under the Business Source License 1.1 (full text in the package). Use is free for non-commercial use, for an evaluation or pilot of up to 90 days per organisation, and in an organisation where up to 10 developers use it.

    It only hides names you list manually. It does not detect all personal names or addresses in free text automatically. Logic proofing is for Python only. Emails written with look-alike characters, such as a full-width @, are not yet recognised.

    All the code is one file, scripts/skilllayer.py (38 KB): the context command of SkillLayer v0.3.1, cut from its source by a build script that copies every function verbatim. Standard library only, Python 3.10+, no network code. SKILL.md gives the file's SHA-256; the agent checks its copy before running it and, with the user's yes, keeps a checked copy in ~/.skilllayer/tools/. Tested against the full tool: identical output in 11 cases. The first run creates a random key and a token table in ~/.skilllayer/context (owner-only files); $SKILLLAYER_CONTEXT_DIR or --home moves them. The token table holds the originals and is never sent anywhere. Exit codes: 0 cleaned or nothing to clean, 2 blocked (nothing written), 1 bad input.

    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 today

    Software
    Python 3.10+

    Keep the key and token table (~/.skilllayer/context) out of git. The commands this skill runs make no network calls.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables

    File Scopes

    ~/.skilllayer/**

    Terminal: runs the tool with python3. Read Files: the files you choose to clean. Write Files: cleaned and restored files only where you agree; the key and token table in ~/.skilllayer/context; with your yes, a checked copy of the tool in ~/.skilllayer/tools/. Environment Variables: optional SKILLLAYER_CONTEXT_DIR. No network: the tool has no network code.

    Listedtoday

    What's inside

    Creator

    Nicolas Baranov

    Nicolas Baranov

    5 skills on Agensi

    Frequently Asked Questions

    It replaces client and project names you list, emails, phone numbers and keys with consistent tokens before your files go to an AI or a contractor, so they don't learn which client it is or see its keys and contacts. The code's logic itself stays readable; that is what lets the model help.

    Python 3.10 or newer, the files you want to clean, and a list of the client and project names to hide, with every spelling you use. Everything runs locally; no accounts or cloud services are needed.

    The skill produces a cleaned version of your file where private details are replaced by placeholders. If you are cleaning a Python script, it also provides a report proving that the underlying logic of your code has not been altered during the cleaning process.

    Yes. It finds only the names you list, not people's names or addresses in free text. Phones are recognised in +7/8 and +1 formats only, and passports, IBAN, bank account numbers and IPv6 addresses are not covered. Bare 10- or 12-digit numbers are treated as ИНН only after the word ИНН/INN.

    Simply tell your AI agent which files to clean and provide a list of the specific project or client names you want to mask. You should also tell the agent where you would like the cleaned versions of the files to be saved.

    Yes. Save the answer from the AI or contractor to a file and the skill puts your original names and details back, including inside new names the model built from a token. It must run on the same machine, with the same key and token table, and it reports any token-shaped strings it never issued.

    New in Legal & Compliance

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Legal & Compliance.