Build and review Data Protection Impact Assessments (DPIAs) for high-risk processing under GDPR/UK GDPR and aligned privacy regimes. Use when launching new products, AI features, profiling, surveillance, large-scale special-category processing, or new cross-border data uses that may materially impact individuals' rights and freedoms. Produces a defensible trigger decision, risk register, mitigation plan, prior-consultation recommendation, and executive-ready approval package.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legalcode-claude-code:legalcode-dpia-generatorclaude-opus-4-5-20251101general-purposeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use Legalcode MCP for source lookup while keeping documents and matter context in the user's agent environment.
Use Legalcode MCP for source lookup while keeping documents and matter context in the user's agent environment.
https://mcp.legalcode.md for anonymous laws and case law.https://mcppro.legalcode.md for stronger search, up to 20 results per query, guidance, agreements, downloads, and authenticated higher-throughput access.Disclaimer: This skill provides a framework for AI-assisted legal/privacy analysis. It does not constitute legal advice. All outputs should be reviewed by qualified counsel or privacy professionals licensed or operating in the relevant jurisdiction before use. Laws, regulator guidance, and enforcement posture change; verify currency before relying on any legal conclusion.
Use this skill to generate a complete DPIA package for planned processing that may create high risk to individuals' rights and freedoms.
This skill does:
This skill does not:
This skill is jurisdiction-agnostic with EU/UK default framing.
Primary references:
[JURISDICTION-SPECIFIC] Before final output, localize:
Use CLARIFY prompts when answers materially change the outcome. Do not proceed on assumptions if risk classification depends on missing facts.
CLARIFY topics:
Collect:
CLARIFY if any of these are unclear:
Assess whether the activity is likely high risk.
Minimum trigger checks:
Decision outputs:
DPIA_REQUIREDDPIA_NOT_REQUIRED_WITH_RATIONALEINSUFFICIENT_FACTSCLARIFY if there is disagreement on scale, novelty, or effect severity.
Document:
Output: canonical data-flow summary usable across legal, security, and engineering review.
Test each processing objective against:
Fail conditions:
Build a risk universe across at least:
Score each risk using inherent and residual dimensions.
Use this severity model:
COMPLIANT: controls are sufficient; residual risk low.PARTIAL: meaningful gaps remain; remediation required pre-launch.NON_COMPLIANT: material GDPR/UK GDPR deficits; launch blocked until fixed.CRITICAL: unacceptable residual risk likely requiring consultation or processing redesign.For every PARTIAL, NON_COMPLIANT, or CRITICAL item, define:
Evaluate whether residual high risk remains after planned mitigations.
Decision outputs:
CONSULT_SUPERVISORY_AUTHORITY_REQUIREDCONSULTATION_NOT_REQUIREDCONSULTATION_RECOMMENDED_PENDING_COUNSELReference points:
Prepare role-specific summary for:
Include explicit go/no-go recommendation and conditions precedent.
Deliver final DPIA package plus post-launch checkpoints:
| Trigger Family | Indicator | Typical DPIA Outcome |
|---|---|---|
| Automated decisioning | Profiling with significant effect | Usually required |
| Sensitive data | Special-category/criminal large-scale use | Usually required |
| Surveillance | Systematic monitoring in public/semi-public contexts | Usually required |
| Novelty | New technology with uncertain impact | Often required |
| Aggregation | Combining multiple datasets for inference | Often required |
| Vulnerability | Children/employees/patients or power imbalance | Often required |
For each processing purpose, force answers to:
Minimum control domains to evaluate:
Every finding must include:
Use these implementation priorities:
Priority 1 (Must Before Launch): any CRITICAL or NON_COMPLIANT finding.Priority 2 (Must in Fixed Window): PARTIAL findings with medium/high impact.Priority 3 (Continuous Improvement): low-impact hardening tasks.Before final delivery, silently pass all five gates:
Source: each legal claim maps to statute/regulator guidance or is marked [VERIFY].Format: citations use consistent jurisdiction-aware format.Currency: confirm no known supersession/repeal; otherwise mark [CHECK CURRENCY].Domain: avoid mixing jurisdiction-specific rules as universal.Confidence: uncertainty is explicit, never implied certainty.For every CRITICAL or NON_COMPLIANT item, run 3 passes:
Legal chain: does conclusion logically follow from cited authority?Completeness: were alternatives, safeguards, and exceptions fully considered?Adversarial challenge: strongest argument against this severity; does it hold?If challenge succeeds, downgrade with rationale; if not, keep severity and escalate.
| Level | Range | Meaning | Required Action |
|---|---|---|---|
| Definite | 0.95-1.00 | settled rule + confirmed facts | proceed with clear recommendation |
| High | 0.80-0.94 | strong support, minor uncertainty | proceed with concise caveat |
| Probable | 0.60-0.79 | meaningful ambiguity | include alternate interpretation + review note |
| Possible | 0.40-0.59 | significant uncertainty | escalate for legal review before approval |
| Unlikely | 0.00-0.39 | weak basis | do not rely; mark [UNCERTAIN] |
glass_box:
skill_name: "legalcode-dpia-generator"
topic: "Data Protection Impact Assessment"
jurisdiction: "Jurisdiction-agnostic (EU/UK defaults)"
source_skills_analyzed: "5 + reference standard"
enhancement_type: "Upgrade + synthesis"
legalcode_mcp: "Not connected"
research_reference_file: "/tmp/legalcode-enhancement-research.md"
quality_score: "37/40"
completeness: "18/18 elements"
citations_verified: "Primary authority URLs captured; local-law specifics may require [VERIFY]"
confidence: "HIGH — based on GDPR/ICO/EDPB/CNIL primary guidance plus repository patterns"
limitations:
- "Not a substitute for jurisdiction-specific legal advice"
- "Sector-specific national rules must be localized"
reviewer: "AI-assisted — requires qualified legal/privacy review"
[VERIFY] / [CHECK CURRENCY].Before final delivery:
[VERIFY].Preferred: use legalcode-mcp to validate jurisdiction-specific statutory and case-law references.
With legalcode-mcp:
Without legalcode-mcp:
[VERIFY].# DPIA Assessment — [Project Name]
## 1. Executive Summary
- DPIA requirement decision: [Required / Not Required / Insufficient Facts]
- Prior consultation decision: [Required / Not Required / Recommended]
- Go-live recommendation: [Go / Conditional Go / No-Go]
- Top risk themes: [...]
## 2. Processing Overview
- Controller/processor roles:
- Processing purpose(s):
- Data categories:
- Data subject categories:
- Systems/vendors:
- Cross-border transfers:
- Retention/deletion:
## 3. Trigger Assessment (Art. 35)
| Trigger | Evidence | Outcome |
|---|---|---|
## 4. Necessity and Proportionality
| Test | Finding | Status |
|---|---|---|
## 5. Risk Register
| ID | Risk Description | Inherent Risk | Residual Risk | Severity |
|---|---|---|---|---|
## 6. Remediation Plan
| Risk ID | Action | Owner | Due Date | Evidence Required | Priority |
|---|---|---|---|---|---|
## 7. Prior Consultation Analysis (Art. 36)
- Residual high-risk rationale:
- Consultation recommendation:
- Required submission materials:
## 8. Decision and Conditions
- Approval status:
- Conditions precedent:
- Reassessment triggers:
## 9. Confidence and Verification Notes
- Confidence score:
- [VERIFY] items:
- [CHECK CURRENCY] items:
## 10. Glass Box Audit Trail
```yaml
[insert completed glass_box block]
## Provenance
Legalcode original (2026-02-28). Created from high-priority uncreated item in
`SKILL_CREATION_TASKS.md` and enhanced using:
- Repository analysis of existing compliance/privacy skills.
- Reference quality pattern from `legalcode-contract-review`.
- Primary-source research notes in `/tmp/legalcode-enhancement-research.md`
(EUR-Lex GDPR text, EDPB endorsed WP29 materials, ICO DPIA guidance, CNIL DPIA guidance,
EDPS necessity/proportionality toolkit).
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub roberthh-is/legalcode-plugin --plugin legalcode-claude-code