More screenshots
Works with the AI Agents you already use
PII Shield: Mask & Restore Personal Data for AI
by kangjun
PII Shield masks the file first and lets you put the real values back afterwards.
$5
What it does
- Masks personal data in .txt, .md, .csv, .tsv, .docx, .xlsx and .pptx files on your own computer
- Deletes ID, passport, card and bank account numbers, passwords and health data for good
- Swaps names, phones, emails, addresses and birth dates for consistent tags like [PersonA]
- Puts the real values back into the AI's answer from a private map file on your computer
- Follows the rules you pick: South Korea, California (CCPA), EU (GDPR), Japan or China
Who it's for
Teams that work with customer data
Ask an AI agent to analyse customer lists or support tickets without sending real names or contact details.
Try asking: “Mask the personal data in this support ticket before we summarise it.”
HR and legal staff
Strip ID numbers and names from contracts, HR sheets and counselling notes before summarising them with AI.
Try asking: “Redact the names and phone numbers in this counselling record.”
People working with Korean documents
Korean resident registration numbers, names and addresses are detected best, with Korean tags.
Try asking: “Mask the personal data in this Korean employment contract with the kr region.”
PII Shield: Mask & Restore Personal Data for AI
Example session with this skill installed
Mask the personal data in ticket.txt before you summarise it. I am in California.
- Read your context and instructions
- Compiled the pii shield
Summary
Masked ticket.txt with the California (CCPA) rules. 7 items found, the card number deleted, everything else replaced with tags. The original file and the map file were not opened.
Preview (scan)
Found 7 item(s) in 8 text piece(s).
Name: 2
Email: 1
Phone number: 2
Address: 1
Card number (Delete): 1
Files written next to the original
- ticket.masked.txt (safe to read)
- ticket.DO-NOT-SHARE.pii-map.json (keep private, needed to restore)
Masked file
Support ticket #2291
Name: [PersonA]
Email: [Email1]
Phone: [Phone1]
Address: [Address1]
Card on file: [deleted:Card number]
[PersonA] says her order arrived two weeks late and nobody answered her emails.
She wants a refund of the shipping fee. Call back at [Phone1] before Friday.
Summary of the ticket
[PersonA] received the order two weeks late and got no reply to emails. Requests a refund of the shipping fee and a call back at [Phone1] before Friday.
Next steps
- Open ticket.masked.txt once to check nothing was missed before sharing it.
- To put the real name back into a reply, save the reply as a file and run restore with the map file.
Connects securely to your tools. The creator never sees your data.
About this skill
Want an AI agent to read your customer list, contract or HR sheet, but not the real personal data inside it? PII Shield masks the file first and lets you put the real values back afterwards.
How it works
PII Shield runs a single local Node.js script. Your agent passes the file path to the script and only reads the masked copy, never the original or the map file. Nothing is uploaded: the script makes no network calls and reads no environment variables. Before masking, a preview lists what was found by kind and place, without showing the values. The original file is never overwritten.
- High-risk numbers (national ID, passport, driver's licence, card, bank account, passwords, health and other sensitive data) are deleted.
- Names, phone numbers, emails, addresses and birth dates become tags. The same value always gets the same tag, so the AI can still follow who is who.
- The tag-to-value map is saved as a separate private file. Use it to restore real values into the AI's answer.
Use cases
- Mask a customer list in Excel before asking the AI to analyse it
- Redact a Word contract or counselling record before summarising it with AI
- Put real names back into a report the AI wrote with tags
Known limitations
- Automatic detection can miss items. Open the masked file once before sharing it.
- Foreign-language names are found mainly when a label such as "Name:" comes before them. Korean documents are covered best.
- PDF, HWP/HWPX, old .doc/.xls/.ppt files, and text inside images, charts or scans are not read.
- The skill relies on your agent following its instructions; it cannot technically stop an agent from opening the original file.
- The map file is plain JSON saved with owner-only permissions. Keep it private.
- Requires Node.js 22 or newer. This is a tool, not legal advice.
One script, scripts/pii-shield.js, with three commands: scan (preview kinds, counts and places only), mask (writes <name>.masked.<ext> and <name>.DO-NOT-SHARE.pii-map.json) and restore (writes <name>.restored.<ext> from an answer file and the map). Options: --region kr|us|eu|jp|cn, --out <folder>. Needs Node.js 22+. No network calls, no environment variables, never overwrites a 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 today
- Software
Node.js
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.