# US & UK PII Guardrail — HIPAA, GLBA & UK GDPR Memory Filter

> Client-side RAM filter validating and redacting US & UK identifiers (SSN, ITIN, ABA Routing, NHS, NINO) before LLM API calls.

US & UK PII Guardrail — HIPAA, GLBA & UK GDPR Memory Filter is a paid AI agent skill on Agensi by Patryk Mazur, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $39 (one-time purchase)
- Creator: [Patryk Mazur](https://www.agensi.io/creators/patryk-mazur)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-10-17
- Security: scan passed (2026-10-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/us-uk-pii-guardrail-hipaa-glba-uk-gdpr-memory-filter
- Tags: llm-ops, security, python, gdpr-compliance, data-privacy, us-pii, uk-gdpr, hipaa

## About this skill

### US & UK PII Masking Guardrail — Enterprise Memory Safe Harbor

Client-side memory firewall validating and sanitizing statutory US and UK personal identifiers, HIPAA medical data, GLBA banking coordinates, and cloud credentials before LLM ingress.

##### ⚡ Key Features & Engineering Guardrails:
- **Dual Jurisdictions Covered:**
  - **USA:** SSN (strict Area/Group/Serial checks), ITIN (IRS range checks), ABA Routing Transit Numbers (Federal Reserve Mod-10), NANP Phone numbers, ZIP+4 codes, HIPAA medical records (Medicare MBI, ICD-10 conditions).
  - **UK:** NHS Numbers (10-digit Mod-11 weighted checksums), National Insurance Numbers (NINO HMRC rules), UK Bank Sort Codes (XX-XX-XX), Royal Mail Postcodes (BS 7666), UK Driving Licences.
  - **Global:** Credit/Debit Cards (Luhn Mod-10 for Visa, Mastercard, Amex, Discover), Cloud API Keys (OpenAI, Anthropic, AWS, GitHub, Stripe), RFC-compliant Emails, IPv4 addresses.
- **100% Local-First RAM Execution:** Zero cloud telemetry, zero external network requests.
- **Bidirectional Token Handover:** Generates sequential tokens (`<PII_US_SSN_01>`, `<PII_UK_NHS_01>`) with deterministic local unmasking.
- **Developer Ready:** Drop-in compatibility for Claude Code, Cursor, Windsurf, Codex CLI, and Git pre-commit hooks.

##### 📦 What's Included in the ZIP:
- Production CLI & core sanitization engine (`scripts/us_uk_pii_guardrail.py`)
- Full regulatory reference protocol (`references/us_uk_pii_privacy_protocol.md`)
- Complete integration & unit test suite with 100% pass rate (`scripts/test_us_uk_pii_guardrail.py`)
- Antigravity & Agent skill specification (`SKILL.md`)

## Known limitations

Focuses exclusively on US and UK identifiers. Requires local Python 3. Does not support real-time streaming audio or binary image files.

## 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 US & UK PII Guardrail — HIPAA, GLBA & UK GDPR 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 does this guardrail differ from standard regex-based PII filters?

This skill prevents sensitive data leaks by redacting US and UK identifiers (like SSNs and NHS numbers) locally in RAM using mathematical checksums rather than just simple pattern matching, ensuring compliance with HIPAA and GDPR.

### Which AI agents or frameworks is this skill compatible with?

It is a standalone Python 3 engine that can be integrated into any AI agent workflow via terminal commands or by importing the sanitization logic into your existing pipeline scripts.

### Does any data leave my local environment during the masking process?

The skill performs all redaction in system memory without writing artifacts to disk, ensuring that raw sensitive data never leaves your secure local environment or reaches the cloud LLM.

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

You will receive the core Python PII engine, a command-line interface for batch processing, and a validation test suite to verify the guardrail's integrity before deployment.

### Can I use this skill to process and sanitize JSON data for automated workflows?

Yes, the skill supports a `--json` flag that generates structured, sanitized payloads, making it easy to feed cleaned data directly into automated downstream API pipelines.

### Are identifiers from other regions, such as the EU or Canada, supported?

Currently, the tool is optimized specifically for US and UK identifiers; support for additional regions or new identifier types would require a version update or custom configuration.

---

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.
