pii-detection

pii-detection is a skill for Claude Code, Codex from BuilderCed/agent-skills. It costs 32 tokens per session (1,201 once invoked), scanned A, original, MIT.

A checker that looks for personally identifying information, such as email addresses, phone numbers, identity numbers, and payment details, in code, data, or agent output.

In plain words
What is it for?
Use it during code reviews and data-pipeline work to detect possible personal information, while treating its results as incomplete and reviewing them for GDPR decisions.
Why use it?
It helps find sensitive information before it is sent to an AI service, logged, stored, or shared.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/builderced/agent-skills/pii-detection
Any agent
npx skills add BuilderCed/agent-skills --skill pii-detection
Clone the repo
git clone --depth 1 https://github.com/BuilderCed/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pii-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/builderced/agent-skills/pii-detection.svg)](https://agentmods.dev/skills/builderced/agent-skills/pii-detection)
Your own site
<a href="https://agentmods.dev/skills/builderced/agent-skills/pii-detection"><img src="https://agentmods.dev/badge/skills/builderced/agent-skills/pii-detection.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01201
Opus 5 $0.00016 $0.00600
Sonnet 5 $0.00006 $0.00240
Haiku 4.5 $0.00003 $0.00120

Measured 5d ago against content hash 331e4d223b97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

pii-detection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/privacy/pii-detection/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 [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}\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)

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 119 lines · 32 tokens per session scan A 331e4d223b97

Subscribe to this mod's changes

pii-detection is a skill published in the GitHub repository BuilderCed/agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 1,201 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

implementing-gdpr-data-protection-controls

The General Data Protection Regulation (EU) 2016/679 (GDPR) is the EU's comprehensive data protection law governing the collection, processing, storage, and transfer of personal data. This skill cover.

xalgorix/xalgorix · 52 tokens

data-policy

Use when building internal data-governance machinery: a retention schedule (period, lawful basis, expiry action, system where deletion runs), an Art. 6 lawful-basis register, an Art. 30 ROPA, or a consent capture/withdrawal model. NOT the public privacy notice or DSAR handling (that is gdpr-privacy), NOT SOC 2 posture…

ericrisco/rsc-harness · 88 tokens

gdpr-privacy

Use when producing the GDPR artifacts a product publishes or hands over: a privacy policy true to what it processes, a cookie/consent banner, a lawful basis per purpose, an Art. 28 DPA, an SCC transfer mechanism, or a DSAR flow. Drafts for counsel review. NOT internal retention rules (that is data-policy), NOT…

ericrisco/rsc-harness · 89 tokens

add-thirdparty-service

Add a new third-party service to the privacy policy generator. Trigger when user says: "add {name} service", "add third party service", "add 3rd party service", "add new service entry", or when a user wants to contribute a new service to the app.

nisrulz/app-privacy-policy-generator · 63 tokens

gdpr-expert

Expert in GDPR compliance, data protection, privacy by design, consent management, DPO responsibilities, and EU data regulations. Use when the user mentions privacy, data protection, compliance, consent, a DPO, or eu regulation, or when the task involves GDPR Fundamentals, Key Principles, Data Subject Rights, or…

personamanagmentlayer/pcl · 71 tokens

data-clean-room

Use this skill when asked about data clean room, AWS Clean Rooms, Snowflake Clean Room, PSI, Private Set Intersection, privacy-preserving data join, data collaboration, secure multi-party computation, differential privacy, privacy-enhancing technologies, or PET. This skill enforces: clean room architecture with…

j4flmao/agent-skills · 116 tokens