agentleFS
JayRHaJayRHa/AgentSkills/gdpr-data-mapper/SKILL.md

gdpr-data-mapper

Skill11 starsChanged 6 months agoMITView on GitHub

Maps how personal data flows through a system and produces GDPR artifacts — a Record of Processing Activities (RoPA), lawful-basis analysis, retention schedule, and data-subject-rights readiness — for each processing activity. Use this skill when the user asks to "map our data", "create a RoPA / Article 30 record", "do a GDPR data mapping", "figure out our lawful basis", "build a retention schedule", "prepare for a DSAR / data subject request", or assess privacy/personal-data handling. Not legal advice — produces a structured draft for review by counsel/DPO.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    One purpose = one activity: Don't lump unrelated processing together.

    line 52
  2. Distinctive:

    No documented path for erasure/portability, discovered only when a DSAR arrives.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GDPR Data Mapper

Overview

Produce a clear, auditable map of personal-data processing and the core GDPR artifacts that depend on it. Output is a structured draft to be reviewed by a DPO or counsel — this skill does not give legal advice.

Keywords: GDPR, data mapping, RoPA, Article 30, record of processing, lawful basis, consent, legitimate interest, retention schedule, data subject rights, DSAR, data minimization, special category data, processor, controller, cross-border transfer, DPIA.

Workflow

  1. Inventory processing activities. List each distinct purpose for which personal data is used (e.g. "account management", "marketing emails", "fraud detection"). One activity per purpose.
  2. For each activity, capture the RoPA fields (see templates/ropa-template.md): controller/processor role, purpose, data categories, data subjects, recipients, retention, transfers, and security measures.
  3. Classify the data. Flag special category data (health, biometrics, religion, etc., Art. 9) and children's data — these need stronger justification. Apply data minimization: challenge every field ("why do we hold this?").
  4. Determine the lawful basis for each activity using the decision guide in references/lawful-basis-guide.md. Exactly one of the six bases per purpose; document the reasoning. For legitimate interest, note that a balancing test (LIA) is required.
  5. Set retention. Define a concrete retention period and trigger per data category (see references/retention-and-rights.md). "Indefinite" is not acceptable.
  6. Map data-subject rights readiness. For each activity, note how access, erasure, rectification, portability, restriction, and objection would be fulfilled — and any blockers (e.g. data in backups, third parties).
  7. Flag transfers and DPIA triggers. Note any transfers outside the EEA (and the safeguard: adequacy decision, SCCs) and whether the activity likely needs a DPIA (large-scale, special category, systematic monitoring).
  8. Summarize risks and gaps — missing basis, over-retention, undocumented processors, no DSAR path.

Decision Aids

QuestionWhere
Which lawful basis applies?references/lawful-basis-guide.md
How long can we keep this?references/retention-and-rights.md
What goes in the record?templates/ropa-template.md
Does this need a DPIA?Large-scale + (special category OR systematic monitoring OR new tech) → likely yes

Worked Example (one activity)

FieldValue
ActivityMarketing newsletter
RoleController
PurposeSend product updates to subscribers
Data categoriesName, email, open/click events
Data subjectsNewsletter subscribers
Lawful basisConsent (Art. 6(1)(a)) — opt-in checkbox, logged
RecipientsEmail service provider (processor, DPA signed)
RetentionUntil unsubscribe + 30 days, then deleted
TransfersESP in US — SCCs in place
RightsUnsubscribe link (objection); export on request (portability)

Best Practices

  • One purpose = one activity. Don't lump unrelated processing together.
  • Minimize first. The cheapest compliance is data you never collected.
  • Exactly one lawful basis per purpose, documented — you can't switch later to dodge a request.
  • Concrete retention periods with triggers, never "as long as needed".
  • Treat backups and third parties explicitly in rights fulfillment.
  • Keep the RoPA living — update it when a new tool or purpose appears.

Common Pitfalls

  • Using consent when you can't truly offer a free choice (use another basis).
  • Treating legitimate interest as a catch-all without a balancing test.
  • Forgetting processors (analytics, email, CRM) in the recipients list.
  • Indefinite retention or no deletion trigger.
  • Missing special category flags, which demand an Art. 9 condition on top of the Art. 6 basis.
  • No documented path for erasure/portability, discovered only when a DSAR arrives.

This is a drafting aid, not legal advice. Have a DPO or qualified counsel review the output.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.