# PII Masking Guardrail — Local GDPR/RODO Memory Filter

> Client-side RAM filter validating and redacting Polish PESEL, NIP, IBAN, and credit card numbers before LLM API calls.

PII Masking Guardrail — Local GDPR/RODO Memory Filter is a paid AI agent skill on Agensi by Patryk Mazur, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $29 (one-time purchase)
- Creator: [Patryk Mazur](https://www.agensi.io/creators/patryk-mazur)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pii-masking-guardrail-local-gdpr-rodo-memory-filter
- Tags: security, llm-ops, legal, gdpr, privacy, python, pii-guardrail, rodo

## About this skill

### PII Masking Guardrail — Local GDPR/RODO Memory Filter

Client-side RAM filter validating and redacting Polish PESEL, NIP, IBAN, and credit card numbers before LLM API calls.

##### ⚡ Key Features & Engineering Guardrails:
- Production-grade architecture compatible with Claude Code, Cursor, Windsurf, and Antigravity.
- Zero external tracking: 100% local execution preserving API token economics.
- Complete protocol documentation and test harnesses included.

##### 📦 What's Included in the ZIP:
- Complete production source code (`scripts/` and CLI tools)
- Architectural references and protocols (`references/`)
- Production prompt templates & schemas

## Known limitations

Requires local Python 3 environment. Execution happens in local RAM. Validation is limited to the 13 supported categories.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the PII Masking Guardrail — Local GDPR/RODO Memory Filter skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How is this different from simply telling a cloud LLM to 'ignore PII' in my prompt?

Unlike LLM instructions, this skill sanitizes data locally in your RAM before it is transmitted, ensuring raw PII never reaches cloud servers and keeping you compliant with GDPR and SOC-2.

### Which specific types of sensitive data can this skill detect and mask?

The skill supports a wide range of global identifiers including Credit Card numbers (Luhn check), IBANs, ICD-10 medical codes, and API keys for major providers like AWS, OpenAI, and GitHub.

### Can I restore the original data once the cloud LLM provides its response?

Yes, the skill includes a deterministic de-identification process that allows you to swap surrogate tokens back to their original values once you receive the response from the LLM.

### What is included in the purchase of this skill?

You will receive the core Python sanitization scripts, a library of pre-configured regex patterns for global identifiers, and a guide for local environment setup.

### Does this skill work with specific AI agents like ChatGPT or Claude?

This skill is designed to run in a local Python environment as a pre-processing and post-processing layer, making it compatible with any cloud-based AI agent or LLM API.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
