Chuyển đến nội dung
Skillpedia
Bảo mật40k · #7215

gdpr-compliant

Skill này làm gì

Công cụ này giúp bảo đảm code và thiết kế hệ thống của bạn tuân thủ các quy định bảo vệ dữ liệu (như GDPR). Nó tập trung vào việc thu thập, lưu trữ và công khai ít dữ liệu nhất có thể, bảo vệ quyền riêng tư của người dùng.

Khi nào nên dùng

  • ✓Khi tạo tính năng mới xử lý dữ liệu người dùng.
  • ✓Khi xem xét code để bảo đảm an toàn và riêng tư.
  • ✓Khi lên kế hoạch cách lưu trữ dữ liệu và trong bao lâu.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/gdpr-compliant/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/gdpr-compliant/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để bảo đảm tôi chỉ thu thập dữ liệu thiết yếu cho tính năng mới này?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kiểm tra xem bạn có tuân theo các nguyên tắc như thu thập ít dữ liệu hơn, lưu trữ ít hơn, công khai ít hơn và giữ trong thời gian ngắn hơn không. Nó cũng gợi ý các thực hành bảo vệ dữ liệu, như mã hóa và ẩn danh hóa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

GDPR Engineering Skill

Actionable GDPR reference for engineers, architects, DevOps, and tech leads. Inspired by CNIL developer guidance and GDPR Articles 5, 25, 32, 33, 35.

Golden Rule: Collect less. Store less. Expose less. Retain less.

For deep dives, read the reference files in references/:

  • references/data-rights.md — user rights endpoints, DSR workflow, RoPA
  • references/security.md — encryption, hashing, secrets, anonymization
  • references/operations.md — cloud, CI/CD, incident response, architecture patterns

1. Core GDPR Principles (Article 5)

Principle Engineering obligation
Lawfulness, fairness, transparency Document legal basis for every processing activity in the RoPA
Purpose limitation Data collected for purpose A MUST NOT be reused for purpose B without a new legal basis
Data minimization Collect only fields with a documented business need today
Accuracy Provide update endpoints; propagate corrections to downstream stores
Storage limitation Define TTL at schema design time — never after
Integrity & confidentiality Encrypt at rest and in transit; restrict and audit access
Accountability Maintain evidence of compliance; RoPA ready for DPA inspection at any time

2. Privacy by Design & by Default

MUST

  • Add CreatedAt, RetentionExpiresAt to every table holding personal data at creation time.
  • Default all optional data collection to off. Users opt in; they never opt out of a default-on setting.
  • Conduct a DPIA before building high-risk processing (biometrics, health data, large-scale profiling, systematic monitoring).
  • Update the RoPA with every new feature that introduces a processing activity.
  • Sign a DPA with every sub-processor before data flows to them.

MUST NOT

  • Ship a new data collection feature without a documented legal basis.
  • Enable analytics, tracking, or telemetry by default without explicit consent.
  • Store personal data in a system not listed in the RoPA.

3. Data Minimization

MUST

  • Map every DTO/model field to a concrete business need. Remove undocumented fields.
  • Use separate DTOs for create, read, and update — never reuse the same object.
  • Return only what the caller is authorized to see — use response projections.
  • Mask sensitive values at the edge: return ****1234 for card numbers, never the full value.
  • Exclude sensitive fields (DOB, national ID, health) from default list/search projections.

MUST NOT

  • Log full request/response bodies if they may contain personal data.
  • Include personal data in URL path segments or query parameters (CDN logs, browser history).
  • Collect dateOfBirth, national ID, or health data without an explicit legal basis.

4. Purpose Limitation

MUST

  • Document the purpose of every processing activity in code comments and in the RoPA.
  • Obtain a new legal basis or perform a compatibility analysis before reusing data for a secondary purpose.

MUST NOT

  • Share personal data collected for service delivery with advertising networks without explicit consent.
  • Use support ticket content to train ML models without a separate legal basis and user notice.

5. Storage Limitation & Retention

MUST

  • Every table holding personal data MUST have a defined retention period.
  • Enforce retention automatically via a scheduled job (Hangfire, cron) — never a manual process.
  • Anonymize or delete data when retention expires — never leave expired data silently in production.

Recommended defaults

Data type Max retention
Auth / audit logs 12–24 months
Session / refresh tokens 30–90 days
Email / notification logs 6 months
Inactive user accounts 12 months after last login → notify → delete
Payment records As required by tax law (7–10 years), minimized
Analytics events 13 months

SHOULD

  • Add RetentionExpiresAt column — compute at insert time.
  • Use soft-delete (DeletedAt) with a scheduled hard-delete after the erasure request window (30 days).

MUST NOT

  • Retain personal data indefinitely "in case it becomes useful later."

6. API Design Rules

MUST

  • MUST NOT include personal data in URL paths or query parameters.
    • GET /users/{userId}
  • Authenticate all endpoints that return or accept personal data.
  • Extract the acting user's identity from the JWT — never from the request body.

…

Câu hỏi thường gặp

GDPR là gì?

GDPR là luật châu Âu bảo vệ quyền riêng tư và dữ liệu cá nhân của công dân Liên minh châu Âu.

“Privacy by Design” nghĩa là gì?

Nghĩa là nghĩ đến quyền riêng tư ngay từ đầu khi phát triển sản phẩm hoặc dịch vụ, chứ không coi đó là điều làm sau cùng.

RoPA là gì?

RoPA là viết tắt của “Record of Processing Activities” (Hồ sơ hoạt động xử lý dữ liệu), một tài liệu liệt kê cách dữ liệu cá nhân được thu thập, sử dụng và lưu trữ.

Chi tiết

Mô tả gốc của tác giả

Apply GDPR-compliant engineering practices across your codebase. Use this skill whenever you are designing APIs, writing data models, building authentication flows, implementing logging, handling user data, writing retention/deletion jobs, designing cloud infrastructure, or reviewing pull requests for privacy compliance. Trigger this skill for any task involving personal data, user accounts, cooki

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7215
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự