data-minimisation
它能做什么
这项技能检查表单、发送到服务器的数据和浏览器中保存的数据,查找没有用处的个人信息。适合处理用户信息的开发者。
适用场景
- ✓当你的注册表单要求提供你从未使用的信息时。
- ✓当分析数据或日志中可能包含电子邮件或姓名时。
- ✓当你希望遵守 GDPR 等数据隐私规则时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/data-minimisation/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能检查一下我的网站,看看有没有我们收集但其实并不需要的个人数据吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会审查表单字段、发送到服务器的数据以及浏览器中保存的数据。然后建议删除未使用的字段,并把日志中的个人信息替换为匿名 ID。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Collect only the minimum personal data necessary
Collecting more data than necessary increases the blast radius of a breach, exposes your organisation to regulatory fines, and erodes user trust. GDPR Article 5(1)(c) makes data minimisation a legal obligation for any controller processing EU residents' data — but it is also sound engineering practice regardless of jurisdiction.
Quick Reference
- Collect only fields your application actually needs to function
- Document the purpose for every piece of personal data you store
- Prefer anonymous or pseudonymous data over identifiable data where possible
- Clear client-side storage (localStorage, sessionStorage, cookies) on logout or after a defined retention window
- Never send raw PII to analytics, monitoring, or client-side logs
Check
Audit the form fields, API request bodies, and client-side storage keys in this codebase to identify any personal data collected beyond what the stated feature requires. Also inspect analytics and logging payloads for raw email addresses, names, phone numbers, or full query strings that leak PII.
Fix
Remove or anonymise form fields, storage keys, and API parameters that collect personal data not consumed by a specific, documented feature purpose. Replace raw personal identifiers in analytics and logs with pseudonymous IDs and define a retention window for each stored value.
Explain
Explain the GDPR data minimisation principle and how over-collection of personal data increases breach impact and regulatory risk.
Code Review
Review form components, fetch/axios calls, and storage utilities for personal data fields. Flag any field or key that is collected but not read by an active feature, and suggest anonymisation or removal. Flag analytics and monitoring payloads that include raw PII or have no stated retention.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/privacy/data-minimisation
常见问题
这里的个人数据包括哪些?
例如姓名、电子邮件地址和电话号码。这项技能还会标出可能带有个人信息的完整网址。
为什么要限制收集的数据?
收集的数据越少,数据泄露造成的损害就越小,也更有利于符合隐私法律。这项技能引用了 GDPR 第 5 条。
旧的已存储数据应该删除吗?
这项技能建议为每个存储的值设置保留期限,使数据在规定时间后被清除。
详情
作者的原始描述
Use when reviewing form components, API payloads, or client-side storage to identify fields that are collected but not consumed by a stated feature.
热度
- GitHub 星标
- 75k
- 排名
- #2808
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。