/sdlc-documentation:22-ai-agent-hipaa-control-packfrom sdlc-documentation
Maps PHI-touching AI agents to HIPAA Security Rule safeguards, minimum-necessary access, BAA duties, evidence, testing, and breach handling. Use ISO 27001 or SOC 2 packs for those frameworks.
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_Agent_Feature_PRD_Spec.md, Action_Catalogue_Spec.md (with phi_touch metadata), AI_Agent_Architecture_Spec.md, AI_Agent_SLO_Doc.md, AI_Agent_Runbook.md, AI_Agent_Eval_Spec.md, AI_Agent_Red_Team_Test_Plan.md, AI_Agent_Responsible_AI_Addendum.md, AI_Agent_ADR_Catalogue.md, AI_Agent_Compliance_Policy_Pack.md, AI_Agent_BAA_Addendum.md, AI Data Flow and DPIA, existing BAA with covered entity (if any). | 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 |
|---|---|---|
| A control is applicable but evidence or test procedure is absent | Record a gap; do not claim control effectiveness | Unsupported assurance |
| Control, owner, evidence, sampling, and test all align | Mark the row ready for independent assessment | Framework checkbox compliance |
not assessed and never convert it into a pass.| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| AI Agent HIPAA Security Rule Control Pack | Accountable reviewer, control owner, auditor, or release authority | Every PHI-touching feature shall have a Security Rule treatment per standard and implementation specification (required/addressable). Clinical PHI agents shall be admin-only with no autonomous L1+ external-write tools touching PHI. Every audit control row shall reference the hash-chain action audit log. BAA addendum language shall be cited. |
| 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 Agent HIPAA Security Rule Control Pack 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 a control is applicable but evidence or test procedure is absent, record a gap; do not claim control effectiveness. Record the evidence and result in the validation record; this avoids unsupported assurance.
The HIPAA Security Rule (45 CFR §164.302–§164.318) is the auditable control framework for PHI confidentiality, integrity, and availability. For an agentic SaaS, the rule's "workforce" concept extends to the agent service principal; the audit-control standard maps onto the agent action audit log; the integrity standard maps onto hash-chain or WORM; and the technical access-control standard maps onto per-tenant scope at the dispatcher.
The defining policy decision for clinical PHI agents is admin-only: a clinical PHI agent shall not act autonomously on external systems containing PHI. Every irreversible external-write tool touching PHI shall be gated by a named clinician approval event. This is the operationalisation of §164.312(a)(1) (Access Control) and §164.312(b) (Audit Controls) for agent systems handling clinical PHI.
| Attribute | Value |
|---|---|
| Inputs | Agent PRD, Action Catalogue (with phi_touch), Agent Architecture, Agent SLO, Agent Runbook, Agent Eval, Agent Red-Team, Responsible-AI Addendum, ADR Catalogue, Policy Pack, BAA Addendum, AI Data Flow + DPIA, existing BAA |
| Output | AI_Agent_HIPAA_Control_Pack.md + hipaa-controls/*.md + HIPAA_PHI_Touch_Classification.md |
| Standards | 45 CFR §164.302–§164.318; HHS OCR audit protocol; HITRUST CSF (cross-link); NIST 800-66 Rev. 2 |
| Class | Definition | Allowed autonomy |
|---|---|---|
none | Agent feature does not access PHI; covered-entity tenant uses for non-clinical workflows | L0–L3 per parent policy |
limited | Agent reads PHI but does not write; outputs are summaries, drafts, classifications | L0, L1 with human approval per call |
clinical | Agent reads PHI and produces clinical-decision-relevant output, or writes back to a clinical system | L0 only with admin role; L1 only with named clinician approval; no L2+; no autonomous external-write |
Record the classification in HIPAA_PHI_Touch_Classification.md and reflect it in the action catalogue's phi_touch metadata field.
| Standard | Implementation spec | Agent treatment |
|---|---|---|
| §164.308(a)(1) Security management process | Risk analysis (R); risk management (R); sanction policy (R); IS activity review (R) | Agent risk register; agent activity review = daily irreversible-action audit-log review |
| §164.308(a)(2) Assigned security responsibility | (R) | AI Lead + Security Officer named in policy pack |
| §164.308(a)(3) Workforce security | Authorisation (A); termination (A) | Agent service principal provisioning and deprovisioning; per-tenant scope |
| §164.308(a)(4) Information access management | Access authorisation (A); access establishment and modification (A); isolating clearinghouse functions (R) | Tool allow-list per service principal; per-tenant scope at dispatcher; quarterly review |
| §164.308(a)(5) Security awareness and training | (A; security reminders, malware, login monitoring, password) | Agent on-call training; tool-output poisoning awareness training |
| §164.308(a)(6) Security incident procedures | (R) | Agent incident playbooks; HHS notification path for PHI incidents |
| §164.308(a)(7) Contingency plan | Data backup (R); disaster recovery (R); emergency mode (R); testing (A); criticality analysis (A) | Kill-switch operations; replay-a-run drill; agent-task quarantine |
| §164.308(a)(8) Evaluation | (R) | Annual HIPAA evaluation including agent controls |
| §164.308(b)(1) BAA | (R) | BAA addendum for agent processing; model provider BAA where required |
Inherited from parent if no dedicated agent infrastructure. Cite inheritance.
| Standard | Implementation spec | Agent treatment |
|---|---|---|
| §164.312(a)(1) Access control | Unique user ID (R); emergency access (R); automatic logoff (A); encryption/decryption (A) | Unique agent service-principal ID; emergency operator access via kill-switch console; automatic session expiry on the operator console; tool-call payload encryption in transit and at rest |
| §164.312(b) Audit controls | (R) | Action audit log per Responsible-AI Addendum retention; hash-chain integrity; daily review |
| §164.312(c)(1) Integrity | Mechanism to authenticate ePHI (A) | Hash-chain audit log; signed approval events; reproduce-script preservation |
| §164.312(d) Person or entity authentication | (R) | Approver identity verified at the approval moment; signed event |
| §164.312(e)(1) Transmission security | Integrity controls (A); encryption (A) | TLS 1.2+ enforced; signed claim on tenant identity to provider |
| Standard | Agent treatment |
|---|---|
| §164.316(a) Policies and procedures | Compliance Policy Pack signed and reviewed annually |
| §164.316(b)(1) Documentation | All agent control documents retained 6 years from creation or last effective date |
The minimum-necessary rule (§164.502(b)) applies to the agent service principal:
26-ai-agent-baa-and-data-processing-language).AI_Agent_HIPAA_Control_Pack.md sections: 1) PHI Touch Classification per Feature, 2) Admin-Only Constraint Statement, 3) Administrative Safeguards (§164.308), 4) Physical Safeguards (§164.310), 5) Technical Safeguards (§164.312), 6) Policies and Documentation (§164.316), 7) Minimum-Necessary Application, 8) BAA Implications, 9) Breach Notification Procedure, 10) Evidence and Audit Procedure, 11) Cross-Refs, 12) Sign-off Ledger.
logic.prompt, README.md, references/ai-agent-hipaa-control-matrix-template.md.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