- Home
- Skills
- Legal & Compliance
- Hide Client Names & Secrets Before Sending Code to AI
Hide Client Names & Secrets Before Sending Code to AI
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
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.
| Check | Result |
|---|---|
| Sensitive values left in the output | none |
| Restoring the cleaned file | identical to the original, byte for byte |
| Python logic | proven unchanged |
| Tokens the model invented | 1 reported (client_b_deadbeef), left as is |
Next steps
- Send
.context-clean/billing.pyto the model. - Save its answer as
answer.txt, and I will restore it. client_b_deadbeefwas 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
| What | Replaced 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 |
user_1b788a54@example.invalid | |
| Phone (+7/8, +1) | same layout, area code 000 |
| ИНН, СНИЛС, card numbers (checksum-validated) | new digits with a valid checksum |
| Public IPv4 | 10.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
- Nothing sensitive is left: the output is scanned again with the same detectors.
- Exact reversibility: restoring the output gives back the input byte for byte.
- Python logic unchanged: both versions are parsed and must differ only by a consistent one-to-one renaming.
- 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
- You list the clients and projects to hide, with every spelling you use.
- The agent cleans each file into a separate folder without opening the original, and reports what was replaced.
- You send only the cleaned files to the other model, a web chat or a contractor.
- 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
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 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
File Scopes
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.
What's inside
Frequently Asked Questions
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.