Gdpr

From tinh2/skills-hub-registry · View interactive version

Gdpr is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. GDPR and CCPA/CPRA privacy compliance audit for codebases. Inventories PII fields (email, phone, SSN, IP, device ID, geolocation, biometrics, behavioral data), maps data collection points (forms, APIs, cookies, analytics, error tracking), audits consent mechanisms (cookie banners, opt-in.

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Scan, assess, and report compliance gaps.

TARGET:

$ARGUMENTS

If no arguments provided, perform a full GDPR/CCPA compliance assessment of the project in the current working directory.

============================================================

PHASE 0: TECH STACK DETECTION

============================================================

Auto-detect the project stack to determine where data flows:

Record all detected integrations — each represents a potential data processing path.

============================================================

PHASE 1: PII FIELD IDENTIFICATION

============================================================

Scan ALL data models, schemas, and database definitions for PII fields:

DIRECT IDENTIFIERS (high sensitivity):

INDIRECT IDENTIFIERS (medium sensitivity):

BEHAVIORAL DATA (lower sensitivity, still regulated):

For each PII field found, record:

============================================================

PHASE 2: DATA COLLECTION POINTS

============================================================

Identify every point where user data enters the system:

FORMS AND UI:

API ENDPOINTS:

IMPLICIT COLLECTION:

For each collection point:

============================================================

PHASE 3: CONSENT MECHANISMS

============================================================

Check for proper consent handling:

COOKIE CONSENT:

DATA PROCESSING CONSENT:

PRIVACY POLICY:

TERMS OF SERVICE:

============================================================

PHASE 4: DATA SUBJECT RIGHTS

============================================================

Check implementation of required data subject rights:

RIGHT TO ACCESS (Article 15 / CCPA Right to Know):

RIGHT TO ERASURE (Article 17 / CCPA Right to Delete):

RIGHT TO RECTIFICATION (Article 16):

RIGHT TO PORTABILITY (Article 20):

RIGHT TO OBJECT (Article 21 / CCPA Right to Opt-Out):

============================================================

PHASE 5: THIRD-PARTY DATA SHARING

============================================================

Identify all third-party services that receive user data:

ANALYTICS:

ADVERTISING:

INTEGRATIONS:

For each third party:

============================================================

PHASE 6: DATA RETENTION

============================================================

Check data retention practices:

Flag any data that appears to be stored indefinitely without justification.

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing the security analysis, validate thoroughness:

  1. Verify every category in the audit was actually checked (not skipped).
  2. Verify every finding has a specific file:line location.
  3. Verify severity ratings are justified by impact assessment.
  4. Verify no false positives by re-reading flagged code in context.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

GDPR/CCPA Compliance Report

Project: [name]

Stack: [detected technologies]

Assessment Date: [date]

Compliance Summary

| Area | Status | Findings |

|------|--------|----------|

| PII Identification | [PASS/PARTIAL/FAIL] | N fields found |

| Consent Mechanisms | [PASS/PARTIAL/FAIL] | N gaps |

| Data Subject Rights | [PASS/PARTIAL/FAIL] | N missing |

| Third-Party Sharing | [PASS/PARTIAL/FAIL] | N services |

| Data Retention | [PASS/PARTIAL/FAIL] | N issues |

| Privacy Policy | [PASS/PARTIAL/FAIL] | N gaps |

PII Inventory

| Field | Model/Table | Encrypted | Retention | Purpose |

|-------|-------------|-----------|-----------|---------|

| email | users | No | Indefinite | Authentication |

Missing Data Subject Rights

| Right | Status | Implementation Guidance |

|-------|--------|------------------------|

| Access/Export | [Implemented/Missing] | Build GET /api/user/export endpoint |

| Erasure/Delete | [Implemented/Missing] | Build DELETE /api/user with cascade |

| Rectification | [Implemented/Missing] | Ensure profile edit covers all PII |

| Portability | [Implemented/Missing] | Add JSON/CSV export option |

| Object/Opt-Out | [Implemented/Missing] | Add marketing preference toggle |

Third-Party Data Flows

| Service | Data Shared | DPA | Consent | Disclosed |

|---------|------------|-----|---------|-----------|

| Google Analytics | IP, pages, events | ? | No banner | No |

Compliance Checklist

Remediation Priority

[Ordered list: Critical gaps first, then CCPA-specific, then best practices]

============================================================

NEXT STEPS

============================================================

After reviewing the compliance report:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /gdpr — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

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.