文本脱敏

redact

by darknoah

|

4.5k其他未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/darknoah/redact

文档

Redact Skill

Privacy redaction toolkit using PPStructureV3 OCR for text detection and replacement.

Scripts

ScriptFormatCommand
redact-image.pyImages (png, jpg, etc.)redact-image.py <input> <rules.csv> <output>
redact-pdf.pyPDFredact-pdf.py <input> <rules.csv> <output>
redact-document.pyWord (docx, doc)redact-document.py <input> <rules.csv> <output>
redact-presentation.pyPowerPoint (pptx, ppt)redact-presentation.py <input> <rules.csv> <output>

CSV Rules Format

csv
target_text,replacement_text
张三,李四
手机号,
身份证号,
RuleEffect
原文本,新文本Replace with new text
原文本,Empty = mask with █ (documents) or solid color block (images/PDF)

Masking Behavior

FormatEmpty Replacement
Images, PDFSolid color block overlay
Word, PowerPoint characters (same length as target)

Features

FeatureImagePDFDocumentPresentation
Text replacement
Solid color mask--
█ character mask--
OCR detection✅ (images)✅ (images)
Tables-
Headers/Footers--
Embedded images-

Environment Setup

bash
# 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

相关 Skills

Claude API

by anthropic

热门

Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.

其他
安全147.7k

并行代理

by axelhu

热门

Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw

其他
未扫描4.5k

高光制作器

by bwbernardweston18

热门

>

其他
未扫描4.5k

评论