Skill · Published 2026-08-08

pii-scanner

Download pii-scanner.zip 100% test coverage Ported from rules::pii

A Claude Skill: download it, run it locally. No network call, no account, nothing scanned ever leaves your machine.

What it checks, and how confident each finding is

Every finding carries a confidence tier, not a flat “found it”:

  • Low — format-only matches (an email, a US/IL phone number, a US SSN shape). Expected to include some false positives.
  • Medium — a 9-digit Israeli national ID that passes its Luhn checksum, not just its length.
  • High — an IBAN passing its ISO 7064 mod-97 checksum, or a payment card passing its Luhn checksum. A random digit string only has roughly a 1-in-10 (Luhn) or 1-in-97 (IBAN) chance of passing by coincidence, so a checksum pass is real evidence, not just shape.
python3 scan_pii.py <file-or-directory>
python3 scan_pii.py --stdin

Where this came from

Ported from the same rule pack that runs inside PinkyAI’s own local security engine (rules::pii), re-implemented independently in dependency-free Python with its own full test suite — currently at 100% statement coverage.

Honest scope

Email and payment-card shapes are effectively universal; phone numbers and national IDs are genuinely per-country, so this only ships a real US and Israeli pattern rather than inventing a generic one that doesn’t correspond to any actual format. A checksum-valid match is evidence the value isn’t random — it isn’t proof of who it belongs to or whether it’s currently in use.

Preview the real source

Read straight out of this skill's own source directory, unedited — the exact bytes that ship inside pii-scanner.zip, not a rewritten excerpt. Switch tabs to read a file before downloading, or use Copy to paste it somewhere else.

Choose a file to preview

← Back to skills