gdpr-compliant
하는 일
이 도구는 코드와 시스템 설계가 데이터 보호 규칙(GDPR 같은)을 따르도록 돕습니다. 데이터를 수집, 저장, 노출하는 양을 최소화하여 사용자 개인정보를 보호하는 데 중점을 둡니다.
사용하는 경우
- ✓사용자 데이터를 다루는 새 기능을 만들 때.
- ✓코드가 안전하고 개인정보를 보호하는지 검토할 때.
- ✓데이터를 어떻게 얼마 동안 저장할지 계획할 때.
스킬 링크
https://github.com/github/awesome-copilot/blob/main/skills/gdpr-compliant/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 새 기능에서 꼭 필요한 데이터만 수집하도록 하려면 어떻게 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 데이터를 덜 수집하고, 덜 저장하고, 덜 노출하며, 더 짧은 기간 보관하는 원칙을 따르는지 확인합니다. 암호화와 익명화 같은 데이터 보호 방법도 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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, RoPAreferences/security.md— encryption, hashing, secrets, anonymizationreferences/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,RetentionExpiresAtto 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
****1234for 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
RetentionExpiresAtcolumn — 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.
…
자주 묻는 질문
GDPR이 무엇인가요?
유럽연합 시민의 프라이버시와 개인 데이터를 보호하는 유럽 법률입니다.
'Privacy by Design'은 무슨 뜻인가요?
제품이나 서비스를 개발하는 처음부터 프라이버시를 고려하는 것이며, 나중에 덧붙이는 것이 아니라는 뜻입니다.
RoPA가 무엇인가요?
'처리 활동 기록(Record of Processing Activities)'의 약자로, 개인 데이터가 어떻게 수집되고, 사용되고, 저장되는지 나열한 문서입니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 40k
- 순위
- #7215
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
acquire-codebase-knowledge
40k에이전트가 기존 코드 프로젝트를 이해하고 문서화하도록 돕습니다. 새 구성원을 맞이하거나 아키텍처를 개괄적으로 파악할 때 유용합니다.
acreadiness-assess
40k에이전트가 프로젝트의 AI 준비 상태를 평가하고 보고서를 만들도록 합니다. 프로젝트가 AI 도구를 쓸 준비가 얼마나 되어 있는지 이해하는 데 유용합니다.
acreadiness-generate-instructions
40k에이전트가 평가 결과를 바탕으로 AI 도구를 위한 지침을 만들도록 돕습니다. AI가 코드와 상호작용하는 방식을 개선하고 확인된 공백을 메울 때 유용합니다.
acreadiness-policy
40k에이전트가 AI 프로젝트 평가를 위한 정책을 정의하거나 적용하도록 돕습니다. 프로젝트 평가 방식을 표준화하고 규정 준수를 보장할 때 유용합니다.