New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Code-level HIPAA guardrails for PHI in a recovery app: audit logging, sanitization, and session rules.

skills.sh installs
116
GitHub stars
274
last updated
Jun 3, 2026
View on GitHub

What it does

  • Covers PHI classification for check-ins, journals, chats, profiles, and emergency contacts, plus which analytics data is exempt
  • Includes audit helpers in src/lib/hipaa/audit.ts (logPHIAccess, logPHIModification, logSecurityEvent, logAdminAction) and a break-glass access flow
  • Enforces 15-minute idle and 8-hour absolute session limits, 5-attempt login lockout, and auto-redaction of content and credential fields
  • Designed for developers writing code that touches user health data in health or recovery apps

Install

$ npx -y skills add erichowens/some_claude_skills --skill hipaa-compliance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

HIPAA Compliance for Recovery Coach

This skill helps you maintain HIPAA compliance when developing features that handle Protected Health Information (PHI).

What is PHI in This Application?

Data TypePHI StatusHandling
Check-in mood/cravingsPHIAudit all access
Journal entriesPHIAudit all access
Chat conversationsPHIAudit all access
User profile (name, email)PHIAudit modifications
Sobriety datePHIAudit access
Emergency contactsPHIAudit access
Usage analytics (aggregated)NOT PHINo audit needed
Page views (no content)NOT PHINo audit needed

Audit Logging Requirements

When to Log

Always log these operations:

  • Viewing any PHI (check-ins, journal, messages)
  • Creating/updating/deleting PHI
  • Exporting user data
  • Admin access to user information
  • Failed authentication attempts
  • Security events (rate limiting, unauthorized access)

How to Log

Use the audit logging utilities in src/lib/hipaa/audit.ts:

import {
  logPHIAccess,
  logPHIModification,
  logSecurityEvent,
  logAdminAction
} from '@/lib/hipaa/audit';

Details

Repository
github.com/erichowens/some_claude_skills
First seen
Jun 3, 2026

More from erichowens/some_claude_skills

All 69

Similar to Hipaa Compliance