Skip to main content
plugin

data-privacy — Claude Code plugin: PII detection and anonymization

data-privacy — a Claude Code plugin that scans code and files for personally identifiable information, then anonymizes it. Runs manually via slash command or automatically before commits.

Apache-2.0 ★ 2,858 updated 2026-05-12

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install data-privacy@claude-code-toolkit
Open on GitHub

What data-privacy does

The plugin scans source files, logs and configs for names, email addresses, phone numbers, passport numbers and other PII. Detected values are replaced with placeholders or hashes so the code can be safely shared in pull requests or pushed to public repositories.

Useful for projects where test data or examples accidentally contain real customer contacts. The plugin requires no external APIs and runs locally — data stays on your machine.

Before running, make sure .gitignore excludes files with actual secrets: the plugin anonymizes PII but does not encrypt access tokens.

What it helps with

  • find emails, phone numbers and names in code before committing
  • replace personal data with placeholders automatically
  • check logs for PII leaks before publishing
  • anonymize test data for a demo environment

Example prompts for the agent

  • Scan src/ for PII and replace any found data
  • Anonymize all emails in logs/app.log
  • Run data-privacy on changed files before committing

How to install data-privacy

Plugin marketplace

/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install data-privacy@claude-code-toolkit

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about data-privacy

How to install data-privacy in Claude Code?

Run /plugin marketplace add rohitg00/awesome-claude-code-toolkit, then /plugin install data-privacy@claude-code-toolkit.

What does data-privacy do?

The plugin finds personally identifiable information — emails, phone numbers, names, passport numbers — and replaces them with placeholders or hashes so code can be safely shared or published.

Which types of PII does the plugin recognize?

Names, email addresses, phone numbers and passport data. The exact list depends on the plugin's internal implementation.

Source text

data-privacy · Apache-2.0
Data privacy implementation with PII detection and anonymization

© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit

Similar plugins

All plugins for Security →

From the same set178

The whole set →

Project sponsors

Companies that keep this analytics open