文本脱敏

redact

by darknoah

|

4.2k其他未扫描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. TRIGGER when: code imports anthropic/@anthropic-ai/sdk; user asks to use the Claude API, Anthropic SDKs, or Managed Agents (/v1/agents, /v1/sessions, /v1/environments). DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.

其他
安全119.1k

并行代理

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.2k

思否热榜

by codekungfu

热门

注册“SegmentFault”热门技能;当需要访问或自动化SegmentFault相关内容时调用。

其他
未扫描4.2k

评论