Langsung ke konten
Skillpedia
Keamanan40k Β· #7215

gdpr-compliant

Fungsinya

Tool ini membantu memastikan kode dan desain sistem Anda mengikuti aturan perlindungan data (seperti GDPR). Tool ini berfokus pada pengumpulan, penyimpanan, dan pembukaan data seminimal mungkin untuk melindungi privasi pengguna.

Kapan dipakai

  • βœ“Saat membuat fitur baru yang menangani data pengguna.
  • βœ“Saat meninjau kode untuk memastikan kode aman dan menjaga privasi.
  • βœ“Saat merencanakan bagaimana data akan disimpan dan berapa lama disimpan.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/gdpr-compliant/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara memastikan saya hanya mengumpulkan data yang benar-benar penting untuk fitur baru ini?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Tool ini memeriksa apakah Anda mengikuti prinsip-prinsip seperti mengumpulkan data lebih sedikit, menyimpan lebih sedikit, membuka lebih sedikit, dan menyimpannya dalam waktu lebih singkat. Tool ini juga menyarankan praktik perlindungan data, seperti enkripsi dan anonimisasi.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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.

…

Pertanyaan umum

Apa itu GDPR?

GDPR adalah undang-undang Eropa yang melindungi privasi dan data pribadi warga Uni Eropa.

Apa arti 'Privacy by Design'?

Artinya memikirkan privasi sejak awal pengembangan produk atau layanan, bukan sebagai hal yang dipikirkan belakangan.

Apa itu RoPA?

RoPA adalah singkatan dari 'Record of Processing Activities', yaitu dokumen yang mencatat bagaimana data pribadi dikumpulkan, digunakan, dan disimpan.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
40k
Peringkat
#7215
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa