Gdpr compliant

From mouadja02/skills · View interactive version

Gdpr compliant is an AI agent skill from the GitHub repository mouadja02/skills. 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 f

How to use this skill

Skill file

Attribution: Sourced from github/awesome-copilot by GitHub Community, licensed MIT. Modified for this collection.

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/:


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

MUST NOT


3. Data Minimization

MUST

MUST NOT


4. Purpose Limitation

MUST

MUST NOT


5. Storage Limitation & Retention

MUST

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

MUST NOT


6. API Design Rules

MUST

SHOULD

MUST NOT


7. Logging Rules

MUST

SHOULD


8. Error Handling

MUST

MUST NOT


9. Encryption (summary — see `references/security.md` for full detail)

| Scope | Minimum standard |

|---|---|

| Standard personal data | AES-256 disk/volume encryption |

| Sensitive data (health, financial, biometric) | AES-256 column-level + envelope encryption via KMS |

| In transit | TLS 1.2+ (prefer 1.3); HSTS enforced |

| Keys | HSM-backed KMS; rotate DEKs annually |

MUST NOT allow TLS 1.0/1.1, null cipher suites, or hardcoded encryption keys.


10. Password Hashing

MUST

MUST NOT


11. Secrets Management

MUST

.gitignore MUST include: .env, .env.*, *.pem, *.key, *.pfx, *.p12, secrets/

MUST NOT


12. Anonymization & Pseudonymization (summary — see `references/security.md`)

MUST NOT call data "anonymized" if re-identification is possible through linkage attacks.


13. Testing with Fake Data

MUST


14. Anti-Patterns

| Anti-pattern | Correct approach |

|---|---|

| PII in URLs | Opaque UUIDs as public identifiers |

| Logging full request bodies | Log structured event metadata only |

| "Keep forever" schema | TTL defined at design time |

| Production data in dev/test | Synthetic data + scrubbing pipeline |

| Shared credentials across teams | Individual accounts + RBAC |

| Hardcoded secrets | KMS + secret manager |

| Access-Control-Allow-Origin: * on auth APIs | Explicit CORS allowlist |

| Storing consent with profile data | Dedicated consent store |

| PII in GET query params | POST body or authenticated session |

| Sequential integer IDs in public URLs | UUIDs |

| "Anonymized" data with quasi-identifiers | Apply k-anonymity, test linkage resistance |

| Mixing backup regions outside EEA | Explicit region lockdown on backup jobs |


15. PR Review Checklist

Data model

API

Logging

Infrastructure

Secrets & CI/CD

Retention & erasure

User rights & governance


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

Every byte of personal data you do not collect is a byte you cannot lose,

cannot breach, and cannot be held liable for.


*Inspired by CNIL developer GDPR guidance, GDPR Articles 5, 25, 32, 33, 35,

ENISA, OWASP, and NIST engineering best practices.*

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.