Loading...
Loading...
Three-layer PII anonymization for session transcripts (therapy, coaching, consulting, mentoring). Runs Natasha (Russian NER), OpenAI Privacy Filter, and local LLM (Ollama) in sequence for maximum coverage. Fully local by default. This skill should be used when anonymizing session transcripts, notes, or any text containing client PII before AI analysis. Triggers on "anonymize", "redact PII", "anonymize session", "protect client data", "strip personal data", "anonymize transcript".
npx skill4agent add glebis/claude-skills session-anonymizer| Layer | Tool | Catches | Size | Speed |
|---|---|---|---|---|
| 1 | Natasha | Russian names, locations, organizations | 27 MB | instant |
| 2 | OpenAI Privacy Filter (opf) | Phones, accounts, addresses, emails | 2.8 GB | ~1.5s |
| 3 | Ollama LLM | Medications, dates, contextual IDs | 2.5-7 GB | ~10s |
pip install natasha setuptools pymorphy2-dicts-ru
pip install 'opf @ git+https://github.com/openai/privacy-filter.git'
ollama pull qwen3:4bpython3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txtcat session.txt | python3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.pypython3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py --batch ~/sessions/ -o ~/sessions_clean/python3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txt --jsonpython3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txt --pseudonyms# Fast — Natasha only
python3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txt --layers natasha
# LLM only — maximum coverage
python3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txt --layers ollama --model gemma4:e2bpython3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py session.txt -o clean.txt --encrypt "password"echo '<text>' | python3 ~/.claude/skills/therapy-anonymizer/scripts/anonymize.py --json