# Redact PII (Spanish + English).

> Spanish + English PII redaction that runs on your machine: removes names, emails, phones, cards, IBAN, DNI/CUIT and more before your agent reads the document.

Redact PII (Spanish + English). is a paid AI agent skill on Agensi by Matías Rodríguez, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Matías Rodríguez](https://www.agensi.io/creators/matiasrodriguezc)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/redact-pii-spanish-english
- Tags: llm-ops, python, privacy, presidio, anonymization, nlp

## About this skill

Your agent shouldn't read a contract, a CV or a support ticket full of customer data just to summarize it. This skill runs Microsoft Presidio locally and gives the agent a redacted copy instead. The original file never enters the model's context and nothing is uploaded anywhere.

**What it detects**
- Names and locations, in Spanish and English (language is detected per paragraph)
- Emails, phone numbers (Latin America, Spain, US, UK and more), credit cards, IBAN, IP addresses
- Argentine DNI and CUIT/CUIL, Spanish NIF

**Why it's different**
- Numbered tokens (`<PERSON_1>`, `<PERSON_2>`) keep track of who is who, so summaries and analysis still make sense.
- Fails closed: if anything goes wrong it stops and writes nothing. It never falls back to the raw text.
- The agent is instructed never to open the original file, only the redacted copy.

**Options**
- Aggressive mode (lower confidence threshold)
- Also redact dates or company names, or only specific types
- Optional mapping file to put the real values back later, kept local

**Works with** .txt, .md, .csv, .json and text-based PDFs. Scanned PDFs need OCR first.

**Setup:** Python 3.9+ and about 100 MB of language models. The first time, the skill walks the agent through installing them.

**Good for:** contracts, CVs, support tickets, chat exports, CRM exports, HR or medical records, and anything with customer data you want an LLM to work with.

## Requires

- Python

## Known limitations

Requires Python 3 and ~100MB for Spacy models. No OCR for scanned PDFs. English and Spanish only for NER. Detection is statistical and can have false positives/negatives.

## 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 Redact PII (Spanish + English). 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 skill protect my privacy when using AI?

This skill prevents data leakage by redacting PII locally on your machine using Microsoft Presidio. By replacing names, emails, and IDs with numbered placeholders before the text reaches an LLM, it ensures that your sensitive data never enters the model's training data or context history.

### What file types can I redact with this skill?

The skill handles .txt, .md, .csv, and .json files, as well as text-based PDFs. It cannot process scanned PDFs or images that require OCR, so you should convert those to text before use.

### How do I ask my agent to use this tool?

You can tell your agent to de-identify, scrub, or anonymize specific documents, such as customer support logs, medical records, or legal contracts. Even if you do not use the term PII, the agent will use this skill to clean the data before summarizing or analyzing the content.

### What specific types of personal information are detected?

It removes global identifiers like emails, phones, card numbers, and IPs, plus regional IDs like Spanish NIF and Argentine DNI/CUIT/CUIL. You can also customize it to include dates, organizations, and URLs if your specific use case requires more aggressive scrubbing.

### Are there any limitations to the redaction accuracy?

Detection is statistical and uses natural language models for English and Spanish. While highly accurate, it may occasionally miss unusual names or flag ordinary capitalized words, so it is recommended to skim the redacted output before sharing it.

### Can I recover the original names and details after they have been redacted?

Yes, the skill can optionally generate a local JSON mapping file. This allows you to revert the redactions and put the real values back into the document later without ever exposing that sensitive map to the AI agent.

---

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.
