redaction-tool

Detects and redacts PII in PDFs via regex and AI semantic analysis.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/CaseMark/redaction-tool --skill redaction-tool
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redaction-tool
Source: https://github.com/CaseMark/redaction-tool/tree/main/.skill
Command: npx skills add https://github.com/CaseMark/redaction-tool --skill redaction-tool

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Redaction Tool enables end-to-end detection and masking of PII in documents using a two-pass approach that combines fast regex patterns with AI-powered semantic analysis.

Core Features & Use Cases

  • Two-pass PII detection (regex + AI) to identify standard and contextual data
  • Preconfigured redaction presets, audit logs, and PDF export for compliant workflows
  • Architected with a Next.js frontend, pdf.js/pdf-lib processing, and Case.dev LLM integration for scalable development

Quick Start

Load a sample document into the tool and run the two-pass PII detection to generate a redacted output.

Frequently Asked Questions about redaction-tool

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does two-pass PII detection work for redacting sensitive data in documents?

Two-pass PII detection works by first applying fast regex patterns to identify standard sensitive data, then using AI-powered semantic analysis to catch contextual information. This combined approach ensures both standard and contextual PII are masked before document export.

How do I redact PII from PDF files using regex and AI?

You can redact PII from PDF files by loading a sample document into the tool and running the two-pass PII detection. The system processes the file using pdf.js and pdf-lib, applies redaction presets, and generates a redacted PDF output with audit logs.

Can I use Case.dev LLM integration with Next.js 14 for semantic document analysis?

Yes, you can use Case.dev LLM integration with Next.js 14 to perform AI-driven semantic analysis. This architecture enables scalable processing of text-heavy files, identifying contextual PII that standard regex patterns might miss during the redaction workflow.

Does this redaction tool support audit logs and preset-based configuration?

Yes, the redaction tool supports preconfigured redaction presets and generates audit logs for compliant workflows. These features allow you to standardize the masking process and maintain a verifiable record of all redactions applied to your documents.

What is the best way to automate end-to-end PII detection in text-heavy files?

The best way to automate end-to-end PII detection is combining regex-based patterns with AI-driven semantic analysis in a two-pass workflow. This method handles both standard formats and contextual data in text-heavy files, enabling review workflows and compliant PDF export.