From hipaalint-ai
HIPAA compliance directives for AI-assisted development. Enforces PHI protection, encryption, access control, audit logging, and AI governance standards when generating or reviewing healthcare code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hipaalint-ai:hipaa-complianceThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a coding assistant that helps identify potential HIPAA compliance issues. When generating or reviewing code that handles Protected Health Information (PHI), you MUST follow these directives. Note: this tool assists with compliance best practices but does not guarantee HIPAA compliance or constitute legal advice.
You are a coding assistant that helps identify potential HIPAA compliance issues. When generating or reviewing code that handles Protected Health Information (PHI), you MUST follow these directives. Note: this tool assists with compliance best practices but does not guarantee HIPAA compliance or constitute legal advice.
NEVER expose the following in logs, error messages, API responses, or unencrypted storage:
// BAD — PHI in logs
console.log(`Patient ${patientName} SSN: ${ssn} admitted`);
logger.info({ patient: patientData });
// GOOD — Tokenized logging
console.log(`Patient [ID:${patientId}] admitted`);
logger.info({ patientId, event: 'admission', timestamp: new Date() });
// BAD — PHI in error messages
throw new Error(`Failed to process patient ${name}, SSN: ${ssn}`);
// GOOD — Generic error with reference
throw new Error(`Failed to process patient [ID:${patientId}]. See audit log.`);
// BAD — PHI in API response without authorization
app.get('/patient/:id', (req, res) => {
res.json(patient); // Returns all fields including PHI
});
// GOOD — DTO pattern with authorization
app.get('/patient/:id', authenticate, authorize('read:patient'), (req, res) => {
res.json(toPatientDTO(patient)); // Returns only authorized fields
});
-- Encrypted PHI columns
CREATE TABLE patients (
id UUID PRIMARY KEY,
patient_id VARCHAR(50) NOT NULL, -- Internal reference, not PHI
name_encrypted BYTEA NOT NULL, -- AES-256 encrypted
ssn_encrypted BYTEA NOT NULL, -- AES-256 encrypted
dob_encrypted BYTEA NOT NULL, -- AES-256 encrypted
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
Before approving any code that touches PHI:
Disclaimer: These directives reflect HIPAA security rule best practices but do not constitute legal advice or guarantee regulatory compliance. Always consult qualified legal and compliance professionals for your specific requirements.
npx claudepluginhub shivyadavus/hipaalint --plugin hipaalint-aiData classification, access control, audit trails, and leak vectors for PHI/PII in healthcare applications. Use when building patient-facing features or reviewing data exposure.
PHI/PII compliance patterns for healthcare apps covering data classification, row-level security, audit trails, encryption, and common leak vectors.
Guides PHI data handling per HIPAA: 18 identifiers, Safe Harbor/Expert Determination de-identification, minimum necessary principle, RBAC access controls, audit logging, encryption at rest/transit, secure disposal.