From legal-investigative
Redact or obfuscate sensitive content in a document using consistent aliases, random replacement, or pattern-based techniques.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin legal-investigative# /redact-content Apply human-guided redaction and obfuscation to a document or a batch of documents. This is **not** an automated PII scanner — the user specifies what to protect and which technique to use. ## Arguments `$ARGUMENTS` — path(s) to input file(s) plus optional flags: - `--mode=<alias|random|pattern>` — default `alias`. - `--mapping=<path>` — path to an alias mapping JSON (default: `aliases/active_mapping.json`). - `--scrub-metadata` — also strip EXIF / document metadata from the output. - `--out=<path>` — override output directory (default: `output/`). ## Procedure 1. Re...
Share bugs, ideas, or general feedback.
Apply human-guided redaction and obfuscation to a document or a batch of documents. This is not an automated PII scanner — the user specifies what to protect and which technique to use.
$ARGUMENTS — path(s) to input file(s) plus optional flags:
--mode=<alias|random|pattern> — default alias.--mapping=<path> — path to an alias mapping JSON (default: aliases/active_mapping.json).--scrub-metadata — also strip EXIF / document metadata from the output.--out=<path> — override output directory (default: output/).Resolve input files. If a directory is given, process every supported file inside (txt, md, pdf, docx, odt, images).
Load or create the alias mapping:
aliases/active_mapping.json. Reuse existing aliases so the same real name always maps to the same pseudonym across runs.aliases/<document-slug>.json. Do not reuse across documents.schemas/patterns.json (emails, phone numbers, IDs, addresses). Replace with labelled placeholders.Ask the user for any new real-name → alias pairs not yet in the mapping. Confirm before writing.
Apply redaction:
pdftotext + re-render via Typst or qpdf for a text-layer rewrite. If true visual redaction is required, flag that to the user and recommend a purpose-built tool — this plugin does not guarantee visual-layer redaction.If --scrub-metadata is set, run exiftool -all= on the output copies (never the originals).
Write outputs to the output/ directory (or --out). Never overwrite the input.
Emit a redaction log to logs/redaction-<timestamp>.jsonl with: input path, output path, mode, mapping file, count of replacements, any warnings.