法律文件脱敏处理

Redact sensitive information from DOCX files using regex-based rules.

110|9|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/moyupeng0422/legal-doc-redactor --skill -moyupeng0422
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 法律文件脱敏处理
Source: https://github.com/moyupeng0422/legal-doc-redactor/tree/main
Command: npx skills add https://github.com/moyupeng0422/legal-doc-redactor --skill -moyupeng0422

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-docx, adm-zip, and includes scripts (resource) and references (resource) and assets (resource) components.

## What problem does it solve? 法律文档中常见的敏感信息需要脱敏以保护隐私并便于对外分享。本 Skill 提供离线脱敏和还原能力,支持外部审核后通过比对文本还原为原文。

## Core Features & Use Cases

  • 离线脱敏与还原:在本地浏览器/脚本环境执行,数据不上传。
  • 批量处理与自定义类型:支持多文件批量脱敏、可创建自定义脱敏类型并批量导入匹配内容。
  • 代码与工作流整合:提供前端HTML工具、Python与Node.js脚本,以及右键菜单加速工作流;可导出比对文档用于还原与审核。
  • 外部审核与还原:脱敏稿可发送审核,随后通过替换比对文本完整还原。

### Quick Start Open assets/index.html in a browser and upload a DOCX to start redacting.

Frequently Asked Questions about 法律文件脱敏处理

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

FAQPage Schema
How do I redact sensitive information from DOCX files offline?

To redact sensitive information from DOCX files offline, open the provided HTML tool in your local browser, upload your document, and apply regex-based rules to replace private data without uploading anything to the internet.

Can I batch redact multiple legal documents and customize the matching rules?

Yes, you can batch redact multiple legal documents by creating custom redaction types and bulk importing matching content through the provided Python and Node.js scripts.

What is the best way to restore redacted text after an external review?

The best way to restore redacted text after an external review is to use mapping files and exported comparison documents to replace the redacted text and fully restore the original DOCX content.

Does this offline redaction approach work with Python and Node.js workflows?

Yes, offline redaction works with Python and Node.js workflows by utilizing python-docx and adm-zip dependencies to execute scripts, manage localStorage, and process documents locally.

How do I integrate document redaction into my existing code workflow?

You integrate document redaction into your code workflow by using the provided Python and Node.js scripts alongside a frontend HTML tool, enabling right-click menu integration to accelerate your local processing.