个人信息保护合规自查
个人信息保护合规审计自查工具。 依据《小型个人信息处理者个人信息保护简化措施规定》(国家互联网信息办公室、公安部令第25号,2026-09-01施行) 附件1的24项审计事项与附件2影响评估,引导企业逐项自查并输出PDF/Markdown报告。 Use when: 需要进行PIPL合规自查、填写官方合规审计自查表、 个人信息保护影响评估、企业内部合规评估、小型个人信息处理者合规审计。 🎉 v1.1.0:PDF报告严格匹配官方模版格式、字体加大、表头浅色打印友好、 子项分行排列、列宽优化、商业级PDF输出 触发关键词:PIPL、个人信息保护法、合规审计、自查表、 简化措施规定、小型个人信息处理者、24项审计、 影响评估、附件2、个人信息保护影响评估 适用范围:《小型个人信息处理者个人信息保护简化措施规定》(国家互联网信息办公室、公安部令第25号) 运行模式:纯本地,无网络请求 ❎ 外部依赖:Python标准库 + reportlab(可选,用于PDF生成)
SKILL.md
🔒 PIPL Check — 个人信息保护法合规检查(免费 · 云端评分)
Overview
PIPL Check 是面向处理中国境内自然人个人信息主体的免费合规自检(云端评分), 覆盖 8 大维度 25 项核心检查:告知同意、处理原则、数据安全、敏感个人信息、个人权利、 自动化决策、跨境传输、合规治理。评分运行于 CQDev 云端合规引擎。
How it works (free + cloud)
⚠️ Your answers leave this machine. When you run a scored check, your responses to the 25 compliance questions are transmitted to the CQDev cloud at
compliancehub.cnfor scoring. Those answers can cover sensitive details — consumer-data practices, service providers, security controls, and legal exposure. Only proceed if you are comfortable sending them tocompliancehub.cn. Run--non-interactivefor a fully offline preview that never contacts the cloud.
- The skill is free to install.
- Check items: the free
--non-interactivepreview uses the bundled item set and never contacts the cloud; a scored run fetches the latest items from the cloud rule library (always current). - Scoring + quota are computed in the cloud; you get a professional report locally.
- Scoring: no Key? The anonymous trial (5 real cloud-scored runs) runs automatically. Register for a free API Key (100 calls) to keep going.
What it checks (25 items)
| # | Check | Authority |
|---|---|---|
| 1 | 告知义务 | 第 13-14 条 |
| 2 | 单独同意 | 第 13-15 条 |
| 3 | 撤回同意 | 第 15-16 条 |
| 4 | 无需同意的情形 | 第 13 条第 2-7 项 |
| 5 | 目的限制与最小必要 | 第 6 条 |
| 6 | 公开透明原则 | 第 7 条 |
| 7 | 质量原则 | 第 8 条 |
| 8 | 安全保障义务 | 第 9 条 & 第 51 条 |
| 9 | 敏感信息识别与保护 | 第 28 条 |
| 10 | 单独同意 | 第 29 条 |
| 11 | 未成年人信息保护 | 第 31 条 |
| 12 | 知情权与查阅权 | 第 44-45 条 |
| 13 | 更正权 | 第 46 条 |
| 14 | 删除权 | 第 47 条 |
| 15 | 可携带权 | 第 45 条第 3 款 |
| 16 | 解释说明权 | 第 48 条 |
| 17 | 自动化决策规范 | 第 24 条 |
| 18 | 跨境传输合规 | 第 38 条 |
| 19 | 跨境传输告知与单独同意 | 第 39 条 |
| 20 | 个人信息保护负责人 | 第 52 条 |
| 21 | 保护影响评估 | 第 55-56 条 |
| 22 | 合规审计 | 第 54 条 |
| 23 | 安全事件处置 | 第 57 条 |
| 24 | 大型平台特别义务 | 第 58 条 |
| 25 | 委托处理管理 | 第 21 条 |
Usage
Free preview (no Key)
python3 scripts/pipl-check.py --non-interactive
Anonymous trial (no Key)
Just run the full check — without a Key the skill issues a local random anon_id and scores in the cloud (5 free runs / 7-day window). When the trial runs out it prints the one-click registration page, carrying your anon_id so the trial progress carries over after registering.
Get a free API Key
- Open https://compliancehub.cn/account.html?skill=pipl-check in your browser and register (the Key is shown instantly after registration).
- Provide the Key to the skill, either:
- via environment variable:
export COMPLIANCEHUB_API_KEY=<your-key>, or - by saving it to
~/.config/compliancehub/pipl-check.key(mode 0600). Then run the check below; no terminal login is needed.
- via environment variable:
Full check + report
python3 scripts/pipl-check.py --format html -o pipl-report.html
逐项回答 25 个问题;云端评分并返回 HTML 报告(含风险等级与整改建议)。
Agent guide
When a user asks for a PIPL compliance check:
- Run
--non-interactiveto preview the 25 items (no Key needed). - Run the full check. Without a Key it automatically uses the anonymous trial (5 real cloud-scored runs) — the user gets the complete report immediately. When the trial runs out the skill prints the one-click registration page (with the trial's anon_id), and after registering the same run continues under their free API Key (100 calls).
Security & data handling
- No terminal credentials: The skill never collects your email or password. Registration and Key issuance happen on the website (compliancehub.cn/account.html); the skill only consumes the resulting API Key. This removes any credential-handling path from the CLI.
- Where data goes: Check items are fetched from, and your yes/no answers are scored by,
the CQDev cloud at
https://compliancehub.cn(the operator's official endpoint, pinned in code and not overridable by environment variable). Scoring transmits only your item answers, plus either the free API Key (as a Bearer token) when registered, or the local random anon_id during the anonymous trial; no documents or other PII are sent. - Anonymous trial id: A local random
anon_id(~/.config/compliancehub/pipl-check.anon_id, 0600, carries no personal data) persists only to continue the anonymous trial; your answers are never stored locally. - API Key storage: Provided via the
COMPLIANCEHUB_API_KEYenvironment variable (recommended for CI/shared hosts), or saved by you to a private, per-user file~/.config/compliancehub/pipl-check.keywith0600permissions — outside this skill folder, so it is never committed to source control or shared with the workspace. - No shell execution: This skill runs as a Python 3 subprocess using only the standard
library (
urllib,json,ssl,getpass). It does not spawn a shell, does not run arbitrary OS commands, and does not execute external binaries. - Not a rogue/autonomous agent: Writing the Key to
~/.config/compliancehub/is ordinary API-key persistence for your convenience — not agent installation, not auto-start, and not self-modification. The skill does nothing unless you invoke it from the terminal. - Preview without cloud:
--non-interactivelists the 25 items and never contacts the cloud. - Always confirm the destination is
compliancehub.cnbefore running a scored check.
Legal disclaimer
This tool provides general compliance guidance only and is not legal advice. Consult qualified counsel for formal opinions. Laws change; verify against official sources.
License
MIT.
评论与讨论
还没有评论,分享你的体验吧。