Skip to content
reason-machines avatar

Privacy Parser Pii Extraction

Structured PII span extractor that returns label, text, and offsets using the OpenAI Privacy Filter 1.5B model.

CCM score
46 of 100
skills.sh installs
201
GitHub stars
99
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three backends: regex-only PIIParser, model-only ModelPIIParser, and recommended HybridPIIParser with span-merge and regex backstop
  • Labels spans across 8 types: private_person, private_email, private_phone, private_address, private_url, private_date, account_number, and secret
  • Returns character offsets with exclusive end indices, and includes a CLI (python -m pii_parser.cli_model) for piped text
  • Designed for batch extraction, redaction after inspection, and JSON export in pipelines that need to know what PII is present, not just mask it

Install

$ npx -y skills add reason-machines/trending-skills --skill privacy-parser-pii-extraction -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Privacy Parser — PII Span Extraction

Skill by ara.so — Daily 2026 Skills collection.

privacy-parser is the inverse of OpenAI's Privacy Filter. Where the filter masks PII with <REDACTED>, this library returns structured spans — label, text, and character offsets — using the same 1.5B opf model weights and label taxonomy.

Installation

# Clone the repo (includes both subpackages)
git clone https://github.com/chiefautism/privacy-parser
cd privacy-parser

uv venv
uv pip install -e ./privacy-filter   # installs the opf model + weights loader
uv pip install -e ./pii_parser       # installs the parser library

First run downloads the opf 1.5B checkpoint (~3 GB) to ~/.opf/privacy_filter/.

Quick Start

from pii_parser.hybrid import HybridPIIParser

parser = HybridPIIParser(device="cpu")  # or "cuda" / "mps"
result = parser.parse(
    "Hi Quindle Testwick (quindle.testwick@openai.com / +1-415-555-0102), "
    "account 40702810500001234567, 14 Beautiful Ct, Anytown USA, "
    "password Priv4cy-Filt3r-2026."
)

for span in result.spans:
    print(f"{span.label:18}  {span.text}")

Details

Repository
github.com/reason-machines/trending-skills
Category
Security
First seen
Jun 3, 2026

Questions

What does the privacy-parser-pii-extraction skill do?

privacy-parser-pii-extraction extracts structured PII spans from text using the OpenAI Privacy Filter 1.5B model in reverse. Instead of masking data with REDACTED, it returns the label, text and character offsets of each personal item found.

What kinds of PII can privacy-parser-pii-extraction detect?

privacy-parser-pii-extraction labels spans as private_person, private_email, private_phone, private_address, private_url, private_date, account_number and secret. It covers names, contact details, account identifiers, passwords and API keys in the same pass.

How do I install privacy-parser-pii-extraction?

Run npx -y skills add reason-machines/trending-skills --skill privacy-parser-pii-extraction -y in your project. privacy-parser-pii-extraction then lets the agent parse text for personal information spans.

What does privacy-parser-pii-extraction need to run?

privacy-parser-pii-extraction needs the privacy-parser repository cloned and two packages installed with uv. The first run downloads a roughly 3 GB checkpoint to ~/.opf/privacy_filter/, and the HybridPIIParser backend runs on CPU, CUDA or MPS.

Which backend should I use with privacy-parser-pii-extraction?

privacy-parser-pii-extraction recommends HybridPIIParser for production, since it combines the model with span merging and a regex backstop. The regex-only PIIParser and model-only ModelPIIParser are also available for tests or raw model output.

More from reason-machines/trending-skills

All 251

Similar to Privacy Parser Pii Extraction

More Security