Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
jorgealves avatar

Pii Sanitizer

  • 226 installs
  • 2 repo stars
  • Updated January 25, 2026
  • jorgealves/agent_skills

Detect and redact emails, names, IDs, and other PII in logs, prompts, datasets, and exports before sharing artifacts with vendors or model providers.

About

pii-sanitizer helps teams find and remove personally identifiable information from logs, prompts, fixtures, and exports using pattern-aware redaction strategies. It reduces regulatory exposure and vendor data-sharing risk while keeping sanitized artifacts usable for debugging, analytics, and agent training workflows.

  • Recognizes common PII and PHI patterns
  • Supports tokenization versus full redaction modes
  • Scans free text, JSON logs, and chat transcripts
  • Preserves structure for debugging where safe
  • Documents residual risk after sanitization

Pii Sanitizer by the numbers

  • 226 all-time installs (skills.sh)
  • +9 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #720 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jorgealves/agent_skills --skill pii-sanitizer

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs226
repo stars2
Last updatedJanuary 25, 2026
Repositoryjorgealves/agent_skills

What it does

Detect and redact emails, names, IDs, and other PII in logs, prompts, datasets, and exports before sharing artifacts with vendors or model providers.

Files

SKILL.mdMarkdownGitHub ↗

PII Sanitizer

Purpose and Intent

The pii-sanitizer is a data protection tool designed to identify and mask Personally Identifiable Information (PII) from datasets, logs, or communications to comply with privacy regulations like GDPR and CCPA.

When to Use

  • Log Scrubbing: Clean application logs before sending them to centralized logging platforms (e.g., ELK, Datadog).
  • Dataset Preparation: Sanitize production data before using it in staging or training environments.
  • Customer Support: Mask sensitive info in support tickets before sharing them with engineering teams.

When NOT to Use

  • Encryption: This is a redaction tool, not an encryption tool. It is for removing data, not securing it for later retrieval.
  • Structured Database Migration: While it handles some structure, specialized ETL tools are better for massive DB sanitization.

Error Conditions and Edge Cases

  • False Positives: Strings that resemble PII (like internal serial numbers) might be accidentally redacted.
  • Ambiguous Context: "Rose" could be a name (PII) or a flower; the tool may err on the side of caution.
  • Encoding Issues: Ensure input text is UTF-8 to avoid detection failures on special characters.

Security and Data-Handling Considerations

  • Zero Retention: Input data must never be saved to disk.
  • Local Processing: Highly recommended to run this within a secure perimeter so sensitive raw data never leaves the local environment.

Related skills

Securitysecretscompliance

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.