From dstoic
Detects and anonymizes PII (SSNs, cards, emails, phones, names) and business data (companies, revenue, costs, pricing) in files using Scrubadub and spaCy NER. Supports check-only or 5 strategies (mask/hash/pseudo/token/mixed); GDPR/HIPAA aware.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dstoic:anonymize-docsonnetThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Detect and anonymize PII + sensitive business data using ML-powered detection (Scrubadub + spaCy NER).
Detect and anonymize PII + sensitive business data using ML-powered detection (Scrubadub + spaCy NER).
SKILL_DIR="$(dirname "$(realpath "$0")" 2>/dev/null || echo /home/mat/dev/agent-skills/dstoic/skills/anonymize-doc)"
pip install -q -r "$SKILL_DIR/requirements.txt" && python -m spacy download -q en_core_web_sm 2>/dev/null
Question: "Check for PII/business data (detection only) or anonymize?"
python "$SKILL_DIR/scripts/detect.py" <file_path>Ask strategy:
| Strategy | Use Case | Reversible | GDPR |
|---|---|---|---|
mask | Max privacy, redaction | No | ✅ Full |
hash | Analytics, tracking | No | ✅ Full |
pseudo | Demos, case studies | Yes | ⚠️ Partial |
token | Financial, vault-backed | Yes | ⚠️ Partial |
mixed | Complex docs (auto per severity) | Mixed | ⚠️ Partial |
Run: python "$SKILL_DIR/scripts/anonymize.py" <file_path> --strategy <choice>
Outputs: <file>-anonymized.<ext> + <file>-audit-log.json
.gitignore has *-audit-log.jsonSee reference.md for entity types, severity tiers, compliance details.
See examples.md for before/after samples.
npx claudepluginhub digital-stoic-org/agent-skills --plugin dstoicDetects and de-identifies PII using Microsoft Presidio before data reaches AI models, logs, or external services. Masks, redacts, hashes, or encrypts PII in text, images, and DICOM.
Detects and masks PII spans (names, emails, phone numbers, addresses, credentials, etc.) in text using a bidirectional token-classification model. Provides CLI and Python API for one-shot redaction, batch processing, evaluation, and finetuning.
Builds automated PII detection and redaction pipelines using spaCy NER, Microsoft Presidio, and AWS Macie. Handles confidence scoring, custom entities, batch workflows, and multi-format document scanning.