redact
Privacy redaction toolkit for images, PDFs, Word documents, and PowerPoint presentations. Use when the user needs to redact, mask, or replace sensitive/private information in files. Triggers: - Redacting or masking sensitive text in images, PDFs, documents, or presentations - Replacing names, phone numbers, IDs, or other PII in files - Processing privacy compliance for documents before sharing - Anonymizing content in visual files Supported formats: png/jpg images, PDF, docx/doc, pptx/ppt
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/darknoah/redactRedact Skill
Privacy redaction toolkit using PPStructureV3 OCR for text detection and replacement.
Scripts
| Script | Format | Command |
|---|---|---|
redact-image.py | Images (png, jpg, etc.) | redact-image.py <input> <rules.csv> <output> |
redact-pdf.py | redact-pdf.py <input> <rules.csv> <output> | |
redact-document.py | Word (docx, doc) | redact-document.py <input> <rules.csv> <output> |
redact-presentation.py | PowerPoint (pptx, ppt) | redact-presentation.py <input> <rules.csv> <output> |
CSV Rules Format
target_text,replacement_text
张三,李四
手机号,
身份证号,
| Rule | Effect |
|---|---|
原文本,新文本 | Replace with new text |
原文本, | Empty = mask with █ (documents) or solid color block (images/PDF) |
Masking Behavior
| Format | Empty Replacement |
|---|---|
| Images, PDF | Solid color block overlay |
| Word, PowerPoint | █ characters (same length as target) |
Features
| Feature | Image | Document | Presentation | |
|---|---|---|---|---|
| Text replacement | ✅ | ✅ | ✅ | ✅ |
| Solid color mask | ✅ | ✅ | - | - |
| █ character mask | - | - | ✅ | ✅ |
| OCR detection | ✅ | ✅ | ✅ (images) | ✅ (images) |
| Tables | - | ✅ | ✅ | ✅ |
| Headers/Footers | - | ✅ | ✅ | - |
| Embedded images | - | ✅ | ✅ | ✅ |
Environment Setup
# Initialize virtual environment
./scripts/init-runtime.sh
# Activate
source scripts/.venv/bin/activate
Dependencies
- Python 3.10+
- PaddleOCR / PPStructureV3
- python-docx, python-pptx, PyMuPDF, Pillow
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-darknoah-redact": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
qwen3-audio
High-performance audio library for Apple Silicon with text-to-speech (TTS) and speech-to-text (STT).
free-resource
Search and retrieve royalty-free media from Pixabay (images/videos), Freesound (audio effects), and Jamendo (music/BGM). Use when the user needs to find stock photos, illustrations, vectors, videos, sound effects, or background music, download media, or query media libraries with filters.
qwen-audio
High-performance audio library with text-to-speech (TTS) and speech-to-text (STT).
Rednote Cli
Skill by darknoah