# Redact PII from text before sharing or indexing with scrubadub

> Use scrubadub when an agent needs to strip emails, phone numbers, names, and similar sensitive text before sending content to external systems or search indexes.

- Skill: `agentskillexchange/redact-pii-from-text-before-sharing-or-indexing-with-scrubad` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/redact-pii-from-text-before-sharing-or-indexing-with-scrubad`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/redact-pii-from-text-before-sharing-or-indexing-with-scrubad/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/redact-pii-from-text-before-sharing-or-indexing-with-scrubad

---


# Redact PII from text before sharing or indexing with scrubadub

Use scrubadub when an agent needs to strip emails, phone numbers, names, and similar sensitive text before sending content to external systems or search indexes.

## Prerequisites

Python and scrubadub, plus any text source the agent needs to sanitize.

## Installation

Use the upstream install or setup path that matches your environment:
- pip install scrubadub

Requirements and caveats from upstream:
- .. image:: https://img.shields.io/github/workflow/status/LeapBeyond/scrubadub/Python%20package/master
- incorporating it into your python scripts like this:
- This package requires at least python 3.6.

Basic usage or getting-started notes:
- -----------
- .. code:: pycon
- >> import scrubadub

- Source: https://github.com/LeapBeyond/scrubadub
- Extracted from upstream docs: https://raw.githubusercontent.com/LeapBeyond/scrubadub/HEAD/README.rst

## Documentation

- https://scrubadub.readthedocs.io/en/stable/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/redact-pii-from-text-before-sharing-or-indexing-with-scrubadub/)

