/legal-investigative:redact-contentfrom legal-investigative
Redact or obfuscate sensitive content in a document using consistent aliases, random replacement, or pattern-based techniques.
Ships in legal-investigative. Installing the plugin adds it to Claude Code.
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.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
4 commands in this plugin
/analyze-document/analyze-documentAnalyze a document (contract, filing, report, correspondence) and produce a structured memo with findings, citations, and open questions./generate-brief/generate-briefGenerate a professionally typeset brief, memo, or report (Typst → PDF) from workspace analyses, evidence entries, and user-supplied framing./log-evidence/log-evidencelegal-investigative@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin legal-investigative