doc-compliance-assistant
БесплатноЗапускает вложенные скриптыНе проверен文档合规处理助手 — 清洗+合规扫描一体:编码探测/BOM/换行/空白归一化后,一次扫描 PII(邮箱/手机号/身份证)、密钥(GitHub/AWS/OpenAI/私钥)、URL 内嵌口令,输出脱敏命中报告。当你要发布/外发/归档文档前做合规自检时使用;触发词:doc-compliance、文档合规、发前扫描、PII…
от zhaoxinghua09-cell314 установок в других каталогахОб этом скилле
doc-compliance-assistant
English
doc-compliance-assistant v1.0.0 · LGD-Powered security/productivity family · zero-dependency
The pain
You finish a draft, a config dump, a log export — and then you wonder: did I accidentally paste a phone number, a bearer token, or an internal IP into something I'm about to send out? Anthropics' official docx/pdf skills are pure format converters; they never look at content. This skill fuses normalization and compliance into one pass so you don't ship a document and then find the leak.
When to use
- Before a document / Markdown draft / log export / config dump is shared, posted to an issue, archived, or committed.
- You suspect PII or credentials leaked into a text file (email, CN mobile, CN ID card, GitHub/AWS/OpenAI tokens, private key blocks, URLs with embedded basic-auth, IPs).
- You want BOM / CRLF / trailing-whitespace normalization and a hit list in the same run.
- You need a machine-readable JSON report (
--json) to wire into CI or a pre-commit hook.
Usage
python scripts/doc_compliance.py --file path/to/draft.md
python scripts/doc_compliance.py --file path/to/draft.md --json
python scripts/doc_compliance.py --file path/to/draft.md --clean --out normalized.txt
python scripts/doc_compliance.py --list-rules
- rc=0 clean · rc=1 findings (any) · rc=2 usage error
- Hits are masked in output (
con***com,ghp***bcd) — never printed in plaintext.
Workflow
- Trigger: identify a pre-send / pre-commit document review (see When to use).
- Execute: run
doc_compliance.pyper Usage. Default is scan-only; add--clean --outto also emit a normalized copy. - Verify: read the masked hit list. If
findings_secret > 0, treat as a block until the source file is scrubbed. - Deliver: present the report; the cleaned copy is a convenience, not an auto-redaction — the tool does not rewrite secrets inside your text, it only flags them.
Example
$ python scripts/doc_compliance.py --file examples/sample-input.md
file: examples/sample-input.md | encoding: utf-8 | chars: 306
findings: 5 (secret=2 pii=2 info=1)
- [PII] email line=3 match=con***com
- [PII] cn_mobile line=3 match=138***000
- [secret] aws_access_key line=5 match=AKI***PLE
- [secret] github_token line=6 match=ghp***bcd
- [info] ipv4 line=9 match=192***.10
Design boundary
This is a local, offline scanner. It does not call any API, does not upload content, and does not auto-redact. It is a stop-gate, not a DLP pipeline. For regulated pipelines pair it with a real DLP; this skill exists so the cheap 80% case (obvious secrets / PII) never leaves the editor unwatched.
Disclaimer
Security aid only. Regex scanners have false negatives; treat a clean run as "no obvious patterns", not "this document is safe".
中文
doc-compliance-assistant v1.0.0 · LGD-Powered 安全合规家族 · 零依赖
痛点
草稿、配置导出、日志文件写完了,转头就犯嘀咕:我是不是把手机号、Bearer Token、内网 IP 不小心贴进了马上要发出去的东西里?anthropics 官方 docx/pdf 件只做格式转换,从不看内容。本技能把归一化和合规扫描压成一遍,避免"发出去之后才发现泄漏"。
何时用
- 文档 / Markdown 草稿 / 日志导出 / 配置 dump 外发、贴 Issue、归档、提交前。
- 怀疑文本里混进了 PII 或凭证(邮箱、手机号、身份证、GitHub/AWS/OpenAI Token、私钥块、URL 内嵌 basic-auth、IP)。
- 需要 BOM / CRLF / 尾部空白归一化同时拿到一份命中清单。
- 想要机器可读 JSON 报告(
--json)接 CI 或 pre-commit。
用法
python scripts/doc_compliance.py --file path/to/draft.md
python scripts/doc_compliance.py --file path/to/draft.md --json
python scripts/doc_compliance.py --file path/to/draft.md --clean --out normalized.txt
python scripts/doc_compliance.py --list-rules
- rc=0 干净 · rc=1 有命中 · rc=2 用法错误
- 命中在输出里掩码显示(
con***com、ghp***bcd),绝不打印明文。
流程
- 触发:识别外发/提交前文档复核任务(见「何时用」)。
- 执行:按「用法」运行
doc_compliance.py。默认只扫描;加--clean --out同时输出归一化副本。 - 校验:读掩码命中清单。若
findings_secret > 0,视为阻断,直到源文件被清干净。 - 交付:呈现报告;归一化副本是便利输出,不是自动脱敏——工具只标记,不替你改原文里的密钥。
实例
$ python scripts/doc_compliance.py --file examples/sample-input.md
file: examples/sample-input.md | encoding: utf-8 | chars: 306
findings: 5 (secret=2 pii=2 info=1)
- [PII] email line=3 match=con***com
- [PII] cn_mobile line=3 match=138***000
- [secret] aws_access_key line=5 match=AKI***PLE
- [secret] github_token line=6 match=ghp***bcd
- [info] ipv4 line=9 match=192***.10
设计边界
本地、离线扫描。不调任何 API、不上传内容、不自动脱敏。它是一道闸门,不是 DLP 流水线。受监管流水线请叠真 DLP;本技能存在的意义是把"明显密钥/PII"这便宜的 80% 挡在编辑器里。
证据与安全声明
- 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
- 版本:1.0.0
- 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。
免责
本工具为安全辅助。正则扫描有误报漏报;rc=0 表示"未命中明显模式",不等于"文档绝对安全"。
Установить doc-compliance-assistant в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashWriteFAQ
Что делает скилл doc-compliance-assistant?
文档合规处理助手 — 清洗+合规扫描一体:编码探测/BOM/换行/空白归一化后,一次扫描 PII(邮箱/手机号/身份证)、密钥(GitHub/AWS/OpenAI/私钥)、URL 内嵌口令,输出脱敏命中报告。当你要发布/外发/归档文档前做合规自检时使用;触发词:doc-compliance、文档合规、发前扫描、PII 扫描、密钥泄漏检查。
Как установить скилл doc-compliance-assistant?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл doc-compliance-assistant запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic