/arckit:dpia <project ID or processing activity, e.g. '001', 'biometric tracking'>from ArcKit
Generates a UK GDPR Article 35 Data Protection Impact Assessment (DPIA) by reading project data models, architecture principles, requirements, and external policies, then producing a structured compliance document.
Ships in ArcKit. Installing the plugin adds it to Claude Code.
You are helping an enterprise architect generate a Data Protection Impact Assessment (DPIA) following UK GDPR Article 35 requirements and ICO guidance.
A DPIA is a legal requirement under UK GDPR Article 35 for processing that is likely to result in a high risk to individuals' rights and freedoms. It systematically assesses privacy risks, evaluates necessity and proportionality, and identifies mitigations.
$ARGUMENTS
Note: The ArcKit Project Context hook has already detected all projects, artifacts, external documents, and global policies. Use that context below — no need to scan directories manually.
MANDATORY (warn if missing):
/arckit:data-model first — a DPIA requires a data model to identify personal data processingRECOMMENDED (read if available, note if missing):
OPTIONAL (read if available, skip silently):
external/ files) — extract previous DPIA findings, data processing agreements, lawful basis assessments, data flow diagrams000-global/policies/) — extract organizational privacy policy, data retention schedule, data classification schemeprojects/000-global/external/ — extract enterprise data protection standards, privacy impact templates, cross-project DPIA benchmarksprojects/{project-dir}/external/ and re-run, or skip."${CLAUDE_PLUGIN_ROOT}/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents and populate the "External References" section in the template.Before generating the DPIA, use the AskUserQuestion tool to gather the assessment scope. Skip if the user has already specified scope in their arguments.
Gathering rules — the one-message interview in ${CLAUDE_PLUGIN_ROOT}/references/interview-pattern.md:
Question 1 — header: Scope, multiSelect: false
"What is the scope of this Data Protection Impact Assessment?"
Question 2 — header: Consultation, multiSelect: false
"How should data subject consultation be approached?"
Apply the user's selections: the scope determines which data model entities and processing activities to assess. The consultation approach is documented in Section 3 (Consultation) of the DPIA.
Identify the target project from the hook context. If the user specifies a project that doesn't exist yet, create a new project:
projects/*/ directories and find the highest NNN-* number (or start at 001 if none exist)002)projects/{NNN}-{slug}/README.md with the project name, ID, and date — the Write tool will create all parent directories automaticallyprojects/{NNN}-{slug}/external/README.md with a note to place external reference documents herePROJECT_ID = the 3-digit number, PROJECT_PATH = the new directory pathRead all documents listed in Step 0 above. Use the extracted information for auto-population of the DPIA template.
Read the DPIA template:
Read the template (with user override support):
.arckit/templates-custom/dpia-template.md exists in the project root, then .arckit/templates/dpia-template.md${CLAUDE_PLUGIN_ROOT}/templates/dpia-template.md (default)${CLAUDE_PLUGIN_ROOT}/templates/_partials/RENDERING.md and resolve the <!-- DOC-CONTROL-HEADER --> marker in the template before writing. Do not hand-write the Document Control table: the partial RENDERING.md selects is the only source of the 14 standard fields and of the classification ladder.Tip: Users can customize templates with
/arckit:customize dpia
This template has 16 major sections. Its screening checklist covers the three Article 35(3) cases, the ICO's list of processing likely to result in high risk (published under Article 35(4)), and the nine screening criteria from the European DPIA guidelines (Article 29 Working Party WP248, endorsed by the EDPB) that the ICO cites. The nine criteria are not the ICO's own.
Based on the data model analysis, screen in three passes, in this order.
A. Article 35(3) cases (a DPIA is always required):
B. The ICO's list of processing likely to result in high risk:
C. The nine criteria from the European DPIA guidelines (the detection rules in the right-hand column are ArcKit heuristics; confirm each one against the evidence):
| # | Criterion | Scoring Logic |
|---|---|---|
| 1 | Evaluation or scoring | YES if: AI/ML features mentioned, profiling/scoring in requirements |
| 2 | Automated decision-making | YES if: Automated decisions with legal/significant effect in requirements |
| 3 | Systematic monitoring | YES if: Continuous tracking, surveillance, monitoring in requirements |
| 4 | Sensitive data | YES if: ANY special category data (Article 9) in data model |
| 5 | Large scale | YES if: >5000 data subjects mentioned OR "national" scope OR "all citizens" |
| 6 | Matching datasets | YES if: Multiple data sources/integrations in data flows |
| 7 | Vulnerable subjects | YES if: Children, elderly, disabled, patients identified in stakeholders |
| 8 | Innovative technology | YES if: AI/ML, blockchain, biometrics, new tech mentioned |
| 9 | Prevents rights exercise | YES if: No mechanism for SAR/deletion/portability in data model |
DPIA Decision Rules (apply the first that matches):
Show the screening results to the user:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 DPIA Screening Results (Article 35(3), ICO list, nine criteria)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Article 35(3) cases: none detected
ICO list of high-risk processing: none detected
Nine criteria (European DPIA guidelines):
[X] Criterion 4: Sensitive data (Special category data found: Health, Ethnicity)
[X] Criterion 7: Vulnerable subjects (Children identified in stakeholders)
[ ] Criterion 1: Evaluation/scoring (Not detected)
... [continue for all 9 criteria]
**Screening Score**: 2/9 criteria met
**Decision**: ✅ DPIA REQUIRED under UK GDPR Article 35 (two criteria met)
Proceeding to generate full DPIA...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If the screening shows DPIA NOT REQUIRED, ask the user if they want to proceed anyway (they may want to conduct a DPIA for good practice or to demonstrate accountability).
CRITICAL: Use the Write tool to create the DPIA document. DPIAs are typically 3,000-10,000 words and will exceed the 32K token output limit if you try to output the full document in the chat.
Generate the DPIA by:
Detect version: follow ${CLAUDE_PLUGIN_ROOT}/references/version-detection.md for ARC-{PROJECT_ID}-DPIA-v*.md in the project directory, comparing against the current data model and requirements. For a DPIA:
Auto-populate Document Control:
ARC-{PROJECT_ID}-DPIA-v{VERSION} (e.g., ARC-001-DPIA-v1.0)Section 1: Need for DPIA:
Section 2: Description of Processing:
Section 3: Consultation:
Section 4: Necessity and Proportionality:
Section 5: Risk Assessment:
Section 6: Mitigations:
Section 7: ICO Consultation:
If any residual risks remain HIGH after mitigations, flag for ICO prior consultation:
⚠️ ICO Prior Consultation Required:
- Risk DPIA-003 (Unauthorized profiling of children) remains HIGH after mitigations
- Consult the ICO before processing starts: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/accountability-and-governance/data-protection-impact-assessments-dpias/do-we-need-to-consult-the-ico/
The ICO gives written advice; it does not approve a DPIA. It aims to respond within eight weeks, extendable to 14 weeks in complex cases. Its response may say the processing can go ahead, advise further mitigation, issue an official warning, or limit or ban the processing. Record the outcome in Section 7 in those terms, never as an ICO approval
Section 8: Sign-off and Approval:
Section 9: Review and Monitoring:
Section 10: Traceability:
Section 11: Data Subject Rights:
Section 12: International Transfers:
Section 13: Children's Data:
Section 14: AI/Algorithmic Processing:
Section 15: Summary and Action Plan:
Before writing the file, read ${CLAUDE_PLUGIN_ROOT}/references/quality-checklist.md and verify all Common Checks plus the DPIA per-type checks pass. Fix any failures before proceeding.
Write the complete DPIA document to:
projects/{project_id}/ARC-{PROJECT_ID}-DPIA-v${VERSION}.md
Ask the user:
📊 DPIA generated with [N] risks identified.
Would you like to add DPIA risks to the project risk register?
This will create/update: projects/{project_id}/ARC-*-RISK-*.md
[Y/N]
If YES:
projects/{project_id}/ARC-*-RISK-*.md (or create from template if it doesn't exist)IMPORTANT: Do NOT output the full DPIA document to the chat (it's too large). Instead, show a concise summary:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ DPIA Generated Successfully
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📄 Document: projects/{project_id}/ARC-{PROJECT_ID}-DPIA-v{VERSION}.md
📋 Document ID: {document_id}
📅 Assessment Date: {date}
🔒 Classification: OFFICIAL-SENSITIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Assessment Summary
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**DPIA Screening**: {Article 35(3) case or ICO-listed processing, if any}; {N}/9 criteria met → {DPIA REQUIRED / DPIA RECOMMENDED / DPIA NOT REQUIRED}
**Processing Overview**:
- Data Subjects: {list data subject categories}
- Personal Data: {N} entities with PII
- Special Category Data: {YES/NO} ({categories if yes})
- Lawful Basis: {primary Article 6 basis}
- Retention Period: {typical retention}
**Risk Assessment**:
- Total Risks Identified: {N}
- 🔴 High: {N} (requires immediate action)
- 🟠 Medium: {N} (requires mitigation)
- 🟢 Low: {N} (accepted)
**Key Risks**:
1. DPIA-001: {risk description} - {severity}
2. DPIA-002: {risk description} - {severity}
3. DPIA-003: {risk description} - {severity}
**Mitigations Proposed**: {N} technical, organizational, and procedural controls
**ICO Prior Consultation**: {REQUIRED / NOT REQUIRED}
{If required: List residual high risks that trigger consultation}
**Data Subject Rights**:
- ✅ Implemented: {list rights with mechanisms}
- ❌ Not Implemented: {list rights needing implementation}
**Next Steps**:
1. Review and approve DPIA (Data Controller, DPO, SRO signatures)
2. {If ICO consultation needed: Contact ICO before processing}
3. Implement recommended mitigations
4. Review the DPIA whenever the risk changes (UK GDPR Article 35(11)), and at least every 12 months (ArcKit's default)
5. {If children's data: Implement age verification and parental consent}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔗 Traceability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
**Source Artifacts**:
- ✅ Data Model: projects/{project_id}/ARC-*-DATA-*.md
- ✅ Requirements: projects/{project_id}/ARC-*-REQ-*.md
- ✅ Stakeholders: projects/{project_id}/ARC-*-STKE-*.md
- ✅ Architecture Principles: projects/000-global/ARC-000-PRIN-*.md
**Related Artifacts**:
- Risk Register: projects/{project_id}/ARC-*-RISK-*.md ({added/updated})
- Secure by Design: projects/{project_id}/ARC-*-SECD-*.md
- {If AI: AI Playbook: projects/{project_id}/ARC-*-AIPB-*.md}
- {If AI: ATRS: projects/{project_id}/ARC-*-ATRS-*.md}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 References
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- UK GDPR Article 35: https://www.legislation.gov.uk/eur/2016/679/article/35
- ICO DPIA Guidance: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/accountability-and-governance/data-protection-impact-assessments-dpias/what-is-a-dpia/
- ICO When do we need to do a DPIA?: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/accountability-and-governance/data-protection-impact-assessments-dpias/when-do-we-need-to-do-a-dpia/
- ICO Prior Consultation: https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/accountability-and-governance/data-protection-impact-assessments-dpias/do-we-need-to-consult-the-ico/
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Legal Requirement: A DPIA is mandatory under UK GDPR Article 35 when processing is likely to result in high risk to individuals. Failure to conduct a DPIA when required can result in ICO enforcement action. The ICO says its DPIA guidance is under review because of changes made by the Data (Use and Access) Act 2025: check the ICO pages before relying on a detail.
Use Write Tool: DPIAs are large documents (typically 3,000-10,000 words). You MUST use the Write tool to create the file. Do NOT output the full DPIA in the chat.
Risk Assessment Focus: DPIA risks focus on impact on individuals (privacy harm, discrimination, physical harm, financial loss, reputational damage), NOT organizational risks. This is different from the risk register.
Screening is Critical: Always perform the Step 4 screening first (Article 35(3) cases, the ICO's list, then the nine criteria from the European DPIA guidelines). If the screening shows DPIA not required, don't generate a full DPIA unless the user explicitly requests it.
Data Model Dependency: A DPIA cannot be generated without a data model. The data model is the source of truth for what personal data is being processed.
Bidirectional Risk Links: DPIA risks should be added to the risk register (with "Data Protection" category), and existing privacy risks in the risk register should be referenced in the DPIA.
Mitigation Sources: Extract security controls from the Secure by Design assessment as DPIA mitigations. This creates traceability from risks → mitigations → security controls.
ICO Consultation Threshold: If ANY residual risk remains HIGH after mitigations, ICO prior consultation is required before processing can begin (UK GDPR Article 36). The ICO responds with written advice, not an approval.
Children's Data: If processing children's data, the DPIA must include additional assessment of age verification, parental consent, best interests, and child-friendly privacy notices.
AI/ML Systems: If the system uses AI/ML for profiling, automated decision-making, or algorithmic processing, integrate with /arckit:ai-playbook assessment and link to ATRS record.
Classification: DPIAs contain sensitive information about data protection risks and vulnerabilities. Always classify as OFFICIAL-SENSITIVE at minimum.
Review Cycle: UK GDPR Article 35(11) requires a review at least when the risk represented by the processing changes. The 12-month periodic review is ArcKit's default, not a legal requirement. Review and update the DPIA when:
< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emojiprojects/{project_id}/ARC-{PROJECT_ID}-DPIA-v${VERSION}.md/arckit:dpia Generate DPIA for NHS appointment booking system
/arckit:dpia Create data protection impact assessment for HMRC chatbot handling taxpayer queries
/arckit:dpia Assess DPIA necessity for Windows 11 deployment (employee data only)
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
76 commands in this plugin
/adrUser InputDocument architectural decisions with options analysis and traceability/ai-playbookUser InputAssess UK Government AI Playbook compliance for responsible AI deployment/analyzeUser InputPerform comprehensive governance quality analysis across architecture artifacts (requirements, principles, designs, assessments)/archifyArcKit: Interactive Diagram RenderingRender governed artefacts as interactive, self-contained HTML diagrams via Archify, or Wardley Maps via ArcKit's built-in renderer/atrsUser InputGenerate Algorithmic Transparency Recording Standard (ATRS) record for AI/algorithmic tools/aws-researchAWS ResearchResearch AWS services and architecture patterns using AWS Knowledge MCP for authoritative guidance2 plugins ship this exact command · first indexed Oct 30, 2026
npx claudepluginhub tractorjuice/arckit-claude --plugin arckitOther plugins' commands for the same job