pii-detector

Detect PII in code, logs, databases, and files using regex patterns.

6|2|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/Dexploarer/claudius-skills --skill pii-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pii-detector
Source: https://github.com/Dexploarer/claudius-skills/tree/main/examples/intermediate/security-skills/pii-detector
Command: npx skills add https://github.com/Dexploarer/claudius-skills --skill pii-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps identify personally identifiable information scattered across code, logs, databases, and configuration files, enabling GDPR/CCPA privacy compliance and reducing risk.

Core Features & Use Cases

  • PII pattern detection: Recognizes SSNs, credit cards, emails, phone numbers, IPs, dates of birth, and API tokens.
  • Codebase scanning: Works across multiple languages and file types to surface sensitive data before release.
  • Use Case: After scanning a codebase with customer data, produce a report of all PII instances and recommended redaction or masking steps.

Quick Start

Run the built-in detector to scan your repository for PII and generate a risk report.

Frequently Asked Questions about pii-detector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan my codebase for personally identifiable information?

Run the built-in PII detector to scan your repository for sensitive data across code, logs, databases, and configuration files. The detector identifies SSNs, credit cards, emails, phone numbers, IP addresses, and API keys, producing a structured report with file paths, line numbers, and masked values to help you locate and remediate exposure.

What types of sensitive data can a PII scanner detect?

PII detection recognizes Social Security numbers, credit card numbers, email addresses, phone numbers, IP addresses, dates of birth, and API tokens. It applies regex-based pattern matching across multiple file types and languages to identify these data types wherever they appear in your codebase or configuration.

Can I use PII detection to meet GDPR and CCPA compliance requirements?

Yes. PII scanning helps you identify and remediate personally identifiable information across your systems, supporting privacy compliance efforts under GDPR and CCPA. By locating sensitive data before release, you reduce regulatory risk and demonstrate due diligence in data protection.

How does PII detection avoid false positives when scanning large codebases?

The detector implements file-size aware scanning and false-positive filtering alongside regex patterns to reduce noise in large repositories. This produces higher-confidence results by distinguishing genuine sensitive data from coincidental pattern matches in comments, test data, or documentation.

What output do I get from a PII scan?

A structured PII report shows file paths, line numbers, detected data type, and masked values for each sensitive data instance found. This enables your team to quickly review, prioritize, and apply redaction or masking steps to remediate exposure before deployment.