/sdlc-documentation:16-ai-data-flow-and-dpiafrom sdlc-documentation
Maps AI data flows and assesses privacy necessity, lawful basis, risks, controls, residual risk, and consultation triggers for DPIA compliance.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Artefact | Source or provider | Required? | Missing-input behaviour |
|---|---|---|---|
| Target sources: AI_Feature_PRD_Spec.md, AI_Data_And_Knowledge_Base_Spec.md, DPA, sub-processor list, Multi_Tenancy_Architecture_Spec.md, base DPIA (if exists). | Project owner, approved workspace artefacts, or accountable control owner | Yes | Stop dependent claims; list the missing item, owner, and consequence. For review checks, record not assessed. |
| Scope, audience, baseline/version, and accountable decision owner | Requester or project context | Yes | Ask for or record the gap; do not infer authority or scope. |
Default to read-only. Read and search access to the supplied artefacts are required. Editing is limited to an explicitly authorised requested draft or project files. Execute validation only when authorised; publishing, signature, certification, production mutation, destructive action, spending, and risk acceptance require explicit authority.
When files, tools, network, rendering, fonts, execution, or evidence are unavailable, return the narrowest useful qualified draft or finding set. Name every unavailable check and its consequence; an unassessed check is never a pass. Preserve evidence already gathered and provide the exact next verification step.
| Condition | Action | Failure or risk avoided |
|---|---|---|
| Lawful basis, jurisdiction, data flow, or legal owner is unverified | Stop publication or signature and request legal/privacy review | Invalid privacy or contract claim |
| Residual high risk remains after controls | Escalate to the accountable authority; do not self-certify | Unauthorised risk acceptance |
not assessed and never convert it into a pass.| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| AI Data-Flow and DPIA | Accountable reviewer, control owner, auditor, or release authority | Every data flow shall name source, sink, classification, transfer mechanism, training-exclusion verdict, retention. Every processor shall have a contract reference. |
| Gap and decision record | Accountable owner and downstream reviewer | Every gap has status, impact, owner, next action, and no unsupported pass or approval. |
| Evidence | Contents | Acceptance condition |
|---|---|---|
| AI Data-Flow and DPIA evidence record | Source identifiers, scope/version, decisions, checks, exceptions, and approval state | A reviewer can reproduce each material conclusion from named sources. |
| Validation record | Check, result (pass, fail, or not assessed), evidence location, date, and actor | No required check is omitted or silently treated as passed. |
28-anti-ai-slop during authoring and 29-ai-slop-audit at major checkpoints and release.not assessed, state impact, and block dependent claims.adequate, secure, or user-friendly. Fix: Replace each with an observable criterion, threshold, and evidence source.Example: if lawful basis, jurisdiction, data flow, or legal owner is unverified, stop publication or signature and request legal/privacy review. Record the evidence and result in the validation record; this avoids invalid privacy or contract claim.
For each AI feature trace every data flow:
For each flow capture: source, sink, data classes, classification, transfer mechanism (TLS + signed claim), training-exclusion verdict, retention.
Draw the diagram per references/ai-data-flow-diagram-conventions.md. Tenant boundary, organisation boundary, jurisdiction boundary, processor boundary. Use distinct symbols for personal data, sensitive personal data, and aggregate / anonymised.
Augment the base DPIA (if exists) or write standalone. Sections:
For features requiring consent (regulated regions, generative features, high-risk), state where and how consent is captured, the lawful-basis fallback, and the revocation flow.
Per provider: contract clause reference, technical endpoint flag, audit cadence, audit date.
EU -> US: Adequacy Decision (DPF) or SCCs + transfer impact assessment + supplementary measures. Kenya: data-residency commitment + DPA s.49. Nigeria: NDP Act 2023 Schedule. South Africa: POPIA s.72.
Augment the base risk register:
AI_Data_Flow_And_DPIA.md sections: 1) Data Flow Inventory, 2) Data-Flow Diagram, 3) AI DPIA (full Art. 35 form), 4) Consent Capture, 5) Training-Data Exclusion Evidence, 6) Cross-Border Transfer Mechanism, 7) AI-Specific Risk Register, 8) Sign-off Ledger.
When agent features are present, the data-flow inventory shall additionally capture:
These additions support SOC 2 P3, ISO/IEC 27001 A.5.34, and HIPAA §164.502 evidence rows in the agent compliance evidence pack (09-governance-compliance/25-ai-agent-evidence-pack-spec).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job