/qa-compliance:hipaa-test-patternsfrom qa-compliance
Provides HIPAA Security Rule test patterns for products handling PHI: administrative, physical, and technical safeguards including access control, audit logs, integrity, and transmission security.
Ships in qa-compliance. 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.
Reference catalog of test patterns by HIPAA Security Rule section
(45 CFR §164). Pair with audit-trail-test-author
for §164.312(b) audit-log requirements. Anchors:
hhs.gov/hipaa and NIST SP 800-66.
Per HHS, PHI = individually identifiable health information + created/received/maintained/transmitted by a covered entity. The 18 HIPAA identifiers per §164.514(b)(2) (Safe Harbor):
1. Name
2. Geographic subdivisions smaller than state (ZIP codes need restrictions)
3. All elements of dates (except year) for dates directly related to an individual
4. Telephone numbers
5. Vehicle identifiers + license plates
6. Fax numbers
7. Device identifiers + serial numbers
8. Email addresses
9. Web URLs
10. SSN
11. IP addresses
12. Medical record numbers
13. Biometric identifiers (fingerprints, voiceprints)
14. Health plan beneficiary numbers
15. Full-face photos + comparable images
16. Account numbers
17. Any other unique identifying number / characteristic / code
18. Certificate / license numbers
Test fixtures for HIPAA-scope systems MUST avoid these 18
identifiers (or use synthetic-pii-generator in the qa-test-data
plugin to generate safe substitutes).
synthetic-pii-generator.audit-trail-test-author.Full per-section patterns live in references/security-rule-test-patterns.md, covering administrative safeguards (§164.308 workforce access management, workforce training), physical safeguards (§164.310 device + media disposal), technical safeguards (§164.312 access control, audit controls, integrity, transmission security), the §164.502(b) minimum-necessary standard, and §164.504(e) BAA-scope boundaries. Each entry is a copy-ready pytest-style test keyed to its CFR section.
A billing clerk's role is added to the scheduling service. The team runs the §164.502(b) minimum-necessary pattern against /patient/123/billing-summary with the billing-clerk token. The response asserts amount_due and insurance_provider are present and that clinical_notes, medications, and genetic_test_results are absent. The negative assertion fails: the summary serializer eager-loads the full patient record, leaking medications. The team narrows the serializer to billing fields, re-runs, and the test passes, proving the role sees only the minimum-necessary PHI, with the read logged via the §164.312(b) audit pattern.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Real PHI in test fixtures | HIPAA violation in tests | synthetic-pii-generator + de-identified data |
| Audit log without tamper-evidence | Logs can be modified post-incident | Hash-chain or signed-batch log integrity (§164.312(b)) |
| Role-based access without minimum-necessary check | Over-broad access; minimum-necessary violation | Per-PHI-type test (Step §164.502(b)) |
| Skip BAA scope tests | Vendor accesses PHI outside agreement | Step §164.504(e) scope test |
| Allow plaintext HTTP for PHI even in dev | Production drift; eventual leak | Always enforce HTTPS (Step §164.312(e)) |
gdpr-test-patterns - sister
privacy-pattern catalog (CCPA/CPRA in its references/ccpa.md)audit-trail-test-author -
§164.312(b) audit log requirementssynthetic-pii-generator - cross-plugin: safe PHI fixture generationWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub testland/qa --plugin qa-compliance6 skills in this plugin
/audit-trail-test-authorUse when audit logs need tests for HIPAA, PCI DSS, SOC 2, GDPR or another framework: the required events (logins, privilege changes, data access, admin actions, exports), structured log format, tamper-evident hash chains, immutability and retention, and replaying logs for forensics./compliance-coverage-scoringUse when a named framework (GDPR, CCPA, SOC 2, HIPAA, PCI DSS, ISO 27001) and existing evidence need a per-criterion readiness score before an audit, assessor visit or regulator inquiry. Marks each criterion met, partial or not met, records approved exclusions and never claims ready with a gap./gdpr-test-patternsUse when a product processing EU or California personal data needs GDPR or CCPA/CPRA readiness tests: data subject access, erasure, portability and objection, consent and withdrawal, data residency, 72-hour breach notice, data minimization, and CCPA rights including Global Privacy Control./pci-dss-control-test-authorUse whenever tests must prove payment card handling meets PCI DSS v4.0: no stored or logged CVV, full card number (PAN), track data or PIN, card data only over strong TLS, cardholder data environment boundaries and segmentation, key management, SAQ level, scope reduction with hosted fields./soc2-evidence-collectorUse when preparing for a SOC 2 Type II audit or any audit that needs evidence packages from automated tests: per-criterion artifacts (CC1-CC9 and optional categories), collection from CI, audit and access logs and change records, Vanta, Drata or Secureframe formats, and observation-period sampling.2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job