agentsclimarketplace

Pii detection

Skill BuilderCed/agent-skills/skills/privacy/pii-detection

31 cross-platform AI agent skills for regulated industries & underserved markets. EU compliance (AI Act, NIS2, DORA, GDPR), French professional (accounting, tax, notary, real estate), security audit, agent evaluation, Africa mobile money, offline-first.

Install
npx -y skills add BuilderCed/agent-skills --skill pii-detection

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.9 KB, as published. Nobody here has run it

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)

CategoryPatternsExamples
Email\b[\w.-]+@[\w.-]+\.\w+\b[email protected]
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}\b1 85 05 75 123 456 78
SSN (US)\b\d{3}-\d{2}-\d{4}\b123-45-6789
Credit Card\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b4111-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
PassportContext-dependent12AB34567

Medium Sensitivity (detect in context)

CategoryPatternsNotes
Full nameNamed entity recognitionCombine first + last name
AddressStreet + city + postal codeMulti-format per country
Date of birthDate near age/birth contextNot all dates are PII
IP Address\b\d{1,3}(\.\d{1,3}){3}\bIPv4; check if user-linked
Vehicle plateCountry-specific formatFR: AA-123-BB

Low Sensitivity (flag only)

CategoryNotes
AgePII only when combinable
GenderPII only when combinable
Location (city)PII only when precise
Job titlePII 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

ActionWhenMethod
RedactBefore loggingReplace with [REDACTED]
PseudonymizeBefore analysisReplace with consistent fake (e.g., hash-based)
AnonymizeBefore sharingRemove irreversibly (k-anonymity, differential privacy)
EncryptBefore storageAES-256 at rest, TLS in transit
ApproveLegitimate purposeDocument 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: [email protected] (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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.