AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Pii Detection

skill-builderced-agent-skills-pii-detection · by BuilderCed

Detect personally identifiable information (PII) in code, data, and agent outputs before processing or storage. Multi-language, GDPR-aware.

No reviews yet
0 installs
30 views
0.0% view→install

Install

$ agentstack add skill-builderced-agent-skills-pii-detection

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-builderced-agent-skills-pii-detection)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Pii Detection? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

PII Detection

> DISCLAIMER: This skill provides detection patterns only. It does not guarantee complete PII identification. Always verify with a DPO for GDPR compliance decisions.

When to Use

  • Before sending data to an LLM API
  • Before logging or storing agent outputs
  • During data pipeline design
  • When reviewing code that handles user data
  • Before sharing datasets or exports

PII Categories

High Sensitivity (must always detect)

| Category | Patterns | Examples | |----------|----------|---------| | Email | \b[\w.-]+@[\w.-]+\.\w+\b | user@example.com | | Phone | \+?\d[\d\s\-().]{7,}\d | +33 6 12 34 56 78 | | SSN (FR) | \b[12]\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{3}\s?\d{3}\s?\d{2}\b | 1 85 05 75 123 456 78 | | SSN (US) | \b\d{3}-\d{2}-\d{4}\b | 123-45-6789 | | Credit Card | \b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b | 4111-1111-1111-1111 | | IBAN | \b[A-Z]{2}\d{2}[\s]?[\dA-Z]{4}[\s]?[\dA-Z]{4}[\s]?[\dA-Z]{4} | FR76 1234 5678 9012 | | Passport | Context-dependent | 12AB34567 |

Medium Sensitivity (detect in context)

| Category | Patterns | Notes | |----------|----------|-------| | Full name | Named entity recognition | Combine first + last name | | Address | Street + city + postal code | Multi-format per country | | Date of birth | Date near age/birth context | Not all dates are PII | | IP Address | \b\d{1,3}(\.\d{1,3}){3}\b | IPv4; check if user-linked | | Vehicle plate | Country-specific format | FR: AA-123-BB |

Low Sensitivity (flag only)

| Category | Notes | |----------|-------| | Age | PII only when combinable | | Gender | PII only when combinable | | Location (city) | PII only when precise | | Job title | PII only with employer |

Detection Process

  1. Scan the input text for high-sensitivity patterns
  2. Flag medium-sensitivity items with context check
  3. Report findings with location and category
  4. Recommend action: redact, anonymize, or approve

Remediation Actions

| Action | When | Method | |--------|------|--------| | Redact | Before logging | Replace with [REDACTED] | | Pseudonymize | Before analysis | Replace with consistent fake (e.g., hash-based) | | Anonymize | Before sharing | Remove irreversibly (k-anonymity, differential privacy) | | Encrypt | Before storage | AES-256 at rest, TLS in transit | | Approve | Legitimate purpose | Document legal basis (GDPR Art. 6) |

GDPR Special Categories (Article 9)

These require explicit consent or legal basis:

  • Racial or ethnic origin
  • Political opinions
  • Religious beliefs
  • Trade union membership
  • Genetic data
  • Biometric data (for identification)
  • Health data
  • Sex life or sexual orientation

Detection: Use keyword lists + context analysis. Never store without documented legal basis.

Output Format

PII SCAN REPORT
Source: {file/variable/output}
Items found: {count}

[HIGH] Email: user@company.com (line 42)
[HIGH] Phone: +33 6 12 34 56 78 (line 67)
[MED]  Full name: "Jean Dupont" (line 12, with address context)
[LOW]  City: "Paris" (line 15, no combination risk)

Recommendation: Redact HIGH items before processing.
GDPR basis required: YES (personal data detected)

What This Skill Does NOT Do

  • Does not encrypt or store data (patterns only)
  • Does not determine GDPR legal basis (legal decision)
  • Does not handle consent management (UI/UX concern)
  • Does not replace a DPO assessment

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.