run-dpia

run-dpia is a command for Claude Code from lexbeam-software/eu-ai-governance-plugin. It costs 24 tokens per session (448 once invoked), scanned A, original, Apache-2.0.

A workflow for completing a Data Protection Impact Assessment (DPIA), a documented review of privacy risks required for some personal-data processing under GDPR Article 35.

In plain words
What is it for?
It is for documenting data flows, legal basis, necessity, people-centred risks, controls, DPO advice, and any remaining high-risk processing, with a separate EU AI Act review where needed.
Why use it?
It organizes the facts, legal questions, risks, safeguards, evidence, and follow-up decisions needed to assess an AI system’s data protection impact.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the eu-ai-governance plugin — 6 skills, 6 commands, 1 MCP server shipped together

Good fit It is for documenting data flows, legal basis, necessity, people-centred risks, controls, DPO advice, and any remaining high-risk processing, with a separate EU AI Act review where needed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/lexbeam-software/eu-ai-governance-plugin/run-dpia
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.

Clone the repo
git clone --depth 1 https://github.com/lexbeam-software/eu-ai-governance-plugin

Made for: Claude Code.

Or install eu-ai-governance, the plugin that ships this one along with the rest of its 6 skills, 6 commands, 1 MCP server.

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 run-dpia

README.md
[![agentmods](https://agentmods.dev/badge/commands/lexbeam-software/eu-ai-governance-plugin/run-dpia.svg)](https://agentmods.dev/commands/lexbeam-software/eu-ai-governance-plugin/run-dpia)
Your own site
<a href="https://agentmods.dev/commands/lexbeam-software/eu-ai-governance-plugin/run-dpia"><img src="https://agentmods.dev/badge/commands/lexbeam-software/eu-ai-governance-plugin/run-dpia.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 448 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.00024 $0.00448
Opus 5 $0.00012 $0.00224
Sonnet 5 $0.00005 $0.00090
Haiku 4.5 $0.00002 $0.00045

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

Security

Grade A, and why

run-dpia 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 7d 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.

commands/run-dpia.md · 26 lines

What it actually says

/eu-ai-governance:run-dpia

Use the dpia-ai skill. This workflow supports the controller; it does not provide legal advice or certify the processing.

Workflow

  1. Establish controller, processors, purpose, affected persons, geography, data, model and system flow, recipients, transfers, retention, automated effects, and existing controls. If decisive facts are missing, issue a provisional decision and identify them instead of inventing or withholding the available analysis.
  2. Determine and document the Article 35 trigger. Label supervisory-authority and EDPB/WP29 criteria as guidance rather than statutory text.
  3. Describe the processing and data flows at system-version level.
  4. Assess necessity, proportionality, legal basis, data minimisation, accuracy, transparency, rights, Article 22 where relevant, alternatives, and processor controls.
  5. Build a people-centred risk register with inherent risk, measures, owner, evidence, due date, test method, and residual risk.
  6. If a DPO is designated, seek and record the DPO’s advice under Article 35(2). Do not require DPO approval as a universal GDPR rule.
  7. If high residual risk remains without mitigating measures, route to Article 36 prior consultation before processing.
  8. Assess Article 27 FRIA scope separately using the ai-act-classification skill and legal source protocol. Cross-reference overlap; do not treat one assessment as automatically replacing the other.

Output

Produce a versioned DPIA with administrative details, trigger decision, processing and data-flow description, necessity and proportionality, risk register, measures, residual-risk decision, consultation record, controller decision record, review triggers, evidence index, and source note. Keep DPO advice separate from the controller decision.

With --lang de, use idiomatic German, exact GDPR and EU AI Act citations, and explicit controller/DPO role separation.

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. 7d ago First seen · 26 lines · 24 tokens per session scan A c06a810a4985

Subscribe to this mod's changes

run-dpia is a command published in the GitHub repository lexbeam-software/eu-ai-governance-plugin (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 448 once invoked, about $0.0001 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-08-31.