跳到正文
Skillpedia
安全75k · #2808

data-minimisation

它能做什么

这项技能检查表单、发送到服务器的数据和浏览器中保存的数据,查找没有用处的个人信息。适合处理用户信息的开发者。

适用场景

  • ✓当你的注册表单要求提供你从未使用的信息时。
  • ✓当分析数据或日志中可能包含电子邮件或姓名时。
  • ✓当你希望遵守 GDPR 等数据隐私规则时。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/data-minimisation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/data-minimisation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2808
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能