dpia-generation

dpia-generation is a skill for Claude Code from uk-agents/uk-legal-plugins. It costs 121 tokens per session (4,809 once invoked), scanned A, original, Apache-2.0.

A guided workflow for writing a Data Protection Impact Assessment (DPIA), a document that identifies and reduces privacy risks in a new feature or data-processing activity under UK GDPR.

In plain words
What is it for?
Use it to assess features such as location sharing, check UK GDPR requirements, prepare questions for technical teams, and produce a review-ready DPIA.
Why use it?
It helps teams decide whether a DPIA is required and records high-risk issues, consultations, safeguards, owners, and remaining risks in a consistent format.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the privacy-legal-uk plugin — 3 skills shipped together

Good fit Use it to assess features such as location sharing, check UK GDPR requirements, prepare questions for technical teams, and produce a review-ready DPIA.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/uk-agents/uk-legal-plugins/dpia-generation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add uk-agents/uk-legal-plugins --skill dpia-generation
Clone the repo
git clone --depth 1 https://github.com/uk-agents/uk-legal-plugins

Made for: Claude Code.

Or install privacy-legal-uk, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dpia-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/uk-agents/uk-legal-plugins/dpia-generation/github.svg)](https://agentmods.dev/skills/uk-agents/uk-legal-plugins/dpia-generation)
Your own site
<a href="https://agentmods.dev/skills/uk-agents/uk-legal-plugins/dpia-generation"><img src="https://agentmods.dev/badge/skills/uk-agents/uk-legal-plugins/dpia-generation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dpia-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/uk-agents/uk-legal-plugins/dpia-generation"><img src="https://agentmods.dev/badge/skills/uk-agents/uk-legal-plugins/dpia-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00121 $0.04809
Opus 5 $0.00060 $0.02405
Sonnet 5 $0.00024 $0.00962
Haiku 4.5 $0.00012 $0.00481

Measured 8d ago against content hash b28ffbf9591a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dpia-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

privacy-legal-uk/skills/dpia-generation/SKILL.md · 342 lines

How it starts

The opening of the file, as written. The whole thing — 342 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/dpia-generation

  1. Load ~/.claude/plugins/config/uk-legal-plugins/privacy-legal-uk/CLAUDE.md → DPIA house style (trigger, structure, depth, sign-off, DPO consultation requirement).
  2. Run the workflow below.
  3. Check: is a DPIA actually needed? (House trigger + Art.35(3) mandatory triggers + ICO high-risk list — cite primary sources via uk-legal MCP where available, verify currency.)
  4. Intake: ask the product/technical team questions. Can pull from PRD or design doc if provided.
  5. Write DPIA in house format following ICO template structure. Include privacy notice consistency check.
  6. Output with conditions list, named owners, DPO consultation prompt, and Art.36 prior-consultation flag where residual high risk remains.
/privacy-legal-uk:dpia-generation "Location sharing feature"
/privacy-legal-uk:dpia-generation
PRD: [link or paste]

UK GDPR Art.35 DPIA Generation

Matter context

Matter context. Check ## Matter workspaces in the practice-level CLAUDE.md. If Enabled is (the default for in-house users), skip the rest of this paragraph. If enabled and there is no active matter, ask: "Which matter is this for? Run /privacy-legal-uk:matter-workspace switch <slug> or say practice-level." Write outputs to the matter folder.


Destination check

Before producing output, check where it's going. If the user has named a destination (a channel, a distribution list, a counterparty), ask whether it's inside the privilege circle. See canonical ## Shared guardrails → Destination check in the plugin CLAUDE.md.

Special note on DPIAs: A DPIA is not automatically privileged. Where a DPIA is mandatory under Art.35(3) and a prior ICO consultation (Art.36) occurs, the DPIA becomes part of the supervisory record. Under UK GDPR Art.58(1), the ICO may request the DPIA as part of its investigative powers. A privilege claim over a DPIA will only stand where litigation privilege conditions are met (litigation in reasonable contemplation at the time the document was created). Do not assume a DPIA is protected from ICO scrutiny.

Read the full file on GitHub · 342 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 342 lines · 121 tokens per session scan A b28ffbf9591a

Subscribe to this mod's changes

dpia-generation is a skill published in the GitHub repository uk-agents/uk-legal-plugins (9 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 121 tokens to every session and 4,809 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

brand-safety-compliance

Scans outbound copy or creator-submitted content for 6 compliance red lines — medical/efficacy, exaggeration/absolute, beauty-permanence, financial/income, fake-scarcity, fake-rapport — and returns a block/warn verdict with fix suggestions. Use when the user asks to check, scan, review, or vet copy before sending, or…

crevideo/crevideo-reach · 139 tokens

postgres

Use this skill for any PostgreSQL database work — table design, indexing, data types, constraints, extensions (pgvector, PostGIS, TimescaleDB), search, and migrations. Trigger when user asks to: Design or modify PostgreSQL tables, schemas, or data models Choose data types, constraints, indexes, or partitioning…

timescale/pg-aiguide · 197 tokens

employment-compliance

Covers the employment rules that carry real penalties — exempt and non-exempt classification, overtime and hours, employee versus contractor status, work authorization and recordkeeping, accommodation requests, and the notices and retention obligations that go with them. Use this to classify a role, review a…

cbrock84/headcount · 87 tokens

revenue-recognition

Determines when and how revenue is recognized — performance obligations, contract terms that change the answer, and the deal structures that create accounting problems. Use this to work out how a contract should be recognized, review a non-standard deal before it is signed, understand deferred revenue, or spot terms…

cbrock84/headcount · 69 tokens

privacy-and-data-protection

Assesses and improves how personal data is collected, used, shared, and retained — data mapping, lawful basis, consent, processor agreements, subject rights, and breach obligations. Use this before launching anything that handles personal data, when adding a vendor that will process it, when a data subject request…

cbrock84/headcount · 86 tokens

benefits-and-leave

Designs and runs employee benefits and leave — health and retirement plans, leave policy, cost and renewal, and the administration that keeps them compliant. Use this to design or review a benefits package, prepare for a renewal, write leave policy, handle a leave request, or decide what benefits are worth their cost.

cbrock84/headcount · 68 tokens