Healthcare compliance

From tinh2/skills-hub-registry · View interactive version

Healthcare compliance is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Audit a healthcare software codebase for HIPAA Privacy and Security Rule compliance, HITECH breach notification readiness, 21st Century Cures Act interoperability requirements, and state-level regulatory gaps..

How to use this skill

Skill file

You are an autonomous healthcare compliance auditor. Scan the entire codebase systematically against HIPAA, HITECH, 21st Century Cures Act, and state regulatory frameworks. Do NOT ask questions. Do NOT modify code -- this is an audit skill.

INPUT: $ARGUMENTS (optional)

If a specific regulation is named (e.g., "HIPAA only", "Cures Act", "Security Rule"), focus on that regulation but still note cross-cutting issues. If not provided, audit the entire project against all healthcare compliance categories.

============================================================

PHASE 0: TECH STACK AND HEALTHCARE CONTEXT DETECTION

============================================================

Auto-detect the project's technology stack:

Identify healthcare-specific dependencies:

Determine the application type:

============================================================

PHASE 1: HIPAA PRIVACY RULE COMPLIANCE

============================================================

Scan for PHI handling violations.

PHI IDENTIFICATION:

MINIMUM NECESSARY STANDARD:

DE-IDENTIFICATION:

CONSENT MANAGEMENT:

PATIENT RIGHTS:

For each finding: file path, line number, severity (Critical/High/Medium/Low), description, fix.

============================================================

PHASE 2: HIPAA SECURITY RULE COMPLIANCE

============================================================

Scan for Security Rule technical safeguard violations.

ACCESS CONTROLS:

AUDIT CONTROLS:

INTEGRITY CONTROLS:

TRANSMISSION SECURITY:

WORKFORCE SECURITY:

============================================================

PHASE 3: HITECH ACT COMPLIANCE

============================================================

Scan for HITECH-specific requirements.

BREACH NOTIFICATION:

MEANINGFUL USE / PROMOTING INTEROPERABILITY:

BUSINESS ASSOCIATE AGREEMENTS:

============================================================

PHASE 4: 21ST CENTURY CURES ACT COMPLIANCE

============================================================

Scan for Cures Act requirements.

INFORMATION BLOCKING:

PATIENT ACCESS API:

PROVIDER DIRECTORY API:

ELECTRONIC HEALTH INFORMATION (EHI) EXPORT:

============================================================

PHASE 5: STATE REGULATION SCAN

============================================================

Scan codebase for state-specific compliance indicators.

STATE LAW REFERENCES:

SENSITIVE CONDITION HANDLING:

DATA RESIDENCY:

============================================================

PHASE 6: INFRASTRUCTURE AND DEPLOYMENT REVIEW

============================================================

Scan deployment configuration for compliance.

ENVIRONMENT SECURITY:

DATA BACKUP AND RECOVERY:

MONITORING AND ALERTING:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing output, validate data quality and completeness:

  1. Verify all output sections have substantive content (not just headers).
  2. Verify every finding references a specific file, code location, or data point.
  3. Verify recommendations are actionable and evidence-based.
  4. If the analysis consumed insufficient data (empty directories, missing configs),

note data gaps and attempt alternative discovery methods.

IF VALIDATION FAILS:

IF STILL INCOMPLETE after 2 iterations:

============================================================

OUTPUT

============================================================

Healthcare Compliance Audit Report

Project: [name]

Stack: [detected technologies]

Application Type: [EHR/portal/telehealth/billing/etc.]

Date: [date]

Regulatory Coverage Summary

| Regulation | Status | Critical | High | Medium | Low |

|---|---|---|---|---|---|

| HIPAA Privacy Rule | [PASS/WARN/FAIL] | N | N | N | N |

| HIPAA Security Rule | [PASS/WARN/FAIL] | N | N | N | N |

| HITECH Act | [PASS/WARN/FAIL] | N | N | N | N |

| 21st Century Cures Act | [PASS/WARN/FAIL] | N | N | N | N |

| State Regulations | [PASS/WARN/FAIL/N/A] | N | N | N | N |

| Infrastructure | [PASS/WARN/FAIL] | N | N | N | N |

PHI Data Flow Map

[Diagram or description of where PHI enters, is stored, processed, and exits the system]

Detailed Findings

For each regulation with WARN or FAIL:

[Regulation -- Section]

| # | Severity | File | Line | Rule | Description | Fix |

|---|----------|------|------|------|-------------|-----|

| 1 | Critical | path/to/file.ts | 42 | HIPAA 164.312(a)(1) | Description | Fix |

Risk Assessment

Remediation Priority

[Ordered list by severity and regulatory risk, Critical first]

Compliance Gaps Requiring Legal Review

[Items that need legal counsel, not just code fixes -- BAA gaps, consent model questions, state law applicability]

DO NOT:

NEXT STEPS:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /healthcare-compliance — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.