Skip to content
Back to skills

Anonymize Text

ASecurity

"Use Presidio Anonymizer for text replacement, redaction, hashing,

  • 247 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 8, 2026
toolspythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill anonymize-text --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anonymize Text?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Anonymize Text
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-anonymize-text/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-anonymize-text)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: anonymize-text
description: "Use Presidio Anonymizer for text replacement, redaction, hashing,
  masking, encryption, decryption, custom operators, batch flows, and overlap
  handling."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# anonymize-text

Use this sub-skill when the text spans are already known and you need Presidio to transform them.

## Start here
1. Choose the operator map and conflict policy.
2. Pass analyzer spans into `AnonymizerEngine` or `BatchAnonymizerEngine`.
3. For reversible flows, keep the returned `OperatorResult` spans and reuse them with `DeanonymizeEngine`.

## Core APIs
- `AnonymizerEngine` for single-text anonymization.
- `DeanonymizeEngine` for decrypting or keeping text.
- `BatchAnonymizerEngine` and `BatchDeanonymizeEngine` for lists and nested dictionaries.
- `OperatorConfig`, `RecognizerResult`, `OperatorResult`, and `ConflictResolutionStrategy` for input/result plumbing.

## What this sub-skill covers
- Built-in operators: replace, redact, hash, mask, encrypt, keep, custom, decrypt, deanonymize_keep, and optional `surrogate_ahds`.
- DEFAULT precedence and entity-specific overrides.
- Overlap handling, conflict trimming, and space-merge behavior.
- Custom operator extension points.
- Safe smoke scripts in `scripts/`.
- Optional AHDS surrogation when the extra and endpoint are available.

## Route elsewhere
- PII detection, recognizers, NLP, allow-lists, or model setup → `../analyze-text/SKILL.md`
- DataFrame / JSON structured anonymization → `../structured-data/SKILL.md`
- CLI file scanning and config precedence → `../cli-scans/SKILL.md`

## Read next
- `references/api-reference.md`
- `references/operators-and-conflicts.md`
- `references/workflows.md`
- `references/troubleshooting.md`

## Smoke checks
- `python scripts/presidio_text_smoke.py --help`
- `python scripts/custom_operator_smoke.py --help`

Files in this skill

  • SKILL.md1.9 KB
  • references/api-reference.md3.5 KB
  • references/operators-and-conflicts.md3.4 KB
  • references/troubleshooting.md3.2 KB
  • references/workflows.md3.3 KB
  • scripts/custom_operator_smoke.py3.5 KB
  • scripts/presidio_text_smoke.py4.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.