文本脱敏
redact
by darknoah
|
安装
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
| 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
相关 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.
并行代理
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
思否热榜
by codekungfu
注册“SegmentFault”热门技能;当需要访问或自动化SegmentFault相关内容时调用。