skills/healthcare-audit-logger/SKILL.md
This skill should be used when the user asks to "generate audit logs", "create HIPAA audit trail", "log healthcare events", "configure audit logging", "track PHI access", "maintain compliance logs", "audit log format", "healthcare event logging", "access control logging", "authentication logging", "HIPAA logging requirements", or mentions HIPAA audit trails, healthcare event logging, compliance logging, PHI access tracking, authentication auditing, or §164.312(b) logging requirements.
npx skillsauth add 1mangesh1/dev-skills healthcare-audit-loggerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive HIPAA audit logging and event tracking skill for AI agents. Generates immutable audit trails for healthcare systems, tracks PHI access, monitors authentication events, and ensures compliance with 45 CFR §164.312(b) audit control requirements.
/healthcare-audit-logger [command] [options]
init <config-file> - Initialize audit logging for a healthcare systemlog <event-type> <details> - Log a healthcare eventlog-access <user> <resource> <action> - Log PHI accesslog-auth <user> <event> <result> - Log authentication eventlog-modification <user> <resource> <change> - Log data modificationpolicy <retention-years> - Set audit log retention policyreport [date-range] - Generate audit reportverify <log-file> - Verify audit log integrityexport <format> <output> - Export audit logs (JSON, CSV, XML)--user <id> - User identifier--resource <path> - Resource being accessed (patient ID, record ID)--action <type> - Action type (read, write, delete, export)--reason <text> - Clinical reason for access--outcome <status> - Success or failure status--timestamp <iso8601> - Event timestamp (default: now)--retention <years> - Log retention period (default: 6 years per HIPAA)Follow this workflow when invoked:
Ask user to specify:
Create logging schema including:
Instrument key points:
Ensure audit logs capture:
| Control | Requirement | Implementation | |---------|-------------|-----------------| | §164.312(b) | Audit Controls | Implement comprehensive logging | | §164.312(b)(2)(i) | User Identification | Log all user access with unique IDs | | §164.312(b)(2)(ii) | Emergency Access Log | Separate tracking for emergency access | | §164.308(a)(3)(ii)(B) | Workforce Security | Track privilege changes and role assignments | | §164.308(a)(5)(ii)(C) | Log-in Monitoring | Log authentication attempts and outcomes | | §164.312(a)(2)(i) | Access Controls | Audit access permissions and changes | | §164.312(c)(2) | Encryption | Log encryption key operations | | §164.314(a)(2)(i) | Partner Agreements | Log external system access |
{
"event_id": "evt_20250207143556_abc123",
"timestamp": "2025-02-07T14:35:56.123Z",
"user_id": "dr_jane_smith",
"user_role": "physician",
"workstation_id": "ws_04_floor2",
"action": "read",
"resource_type": "patient_record",
"resource_id": "pat_98765", // Encrypted in production
"data_accessed": ["demographics", "lab_results", "vitals"],
"clinical_reason": "Patient follow-up appointment",
"access_result": "success",
"duration_ms": 45,
"ip_address": "10.24.5.12", // Masked in logs
"hipaa_rule": "§164.312(b)(2)(i)"
}
development
This skill should be used when the user asks to "scan for PHI", "detect PII", "HIPAA compliance check", "audit for protected health information", "find sensitive healthcare data", "generate HIPAA audit report", "check code for PHI leakage", "scan logs for PHI", "check authentication on PHI endpoints", "scan FHIR resources", "check HL7 messages", or mentions PHI detection, HIPAA compliance, healthcare data privacy, medical record security, logging PHI violations, authentication checks for health data, or healthcare data formats (FHIR, HL7, CDA).
development
This skill should be used when the user asks to "validate FHIR resources", "check HL7 messages", "validate healthcare data format", "parse FHIR", "HL7 v2 messages", "FHIR R5 validation", "CDA documents", "healthcare data interchange", "FHIR resource schema", "HL7 specifications", or mentions FHIR validation, HL7 message parsing, CDA validation, healthcare data format compliance, or Fast Healthcare Interoperability Resources standards.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.