[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F05RYJAWHR9A2S2VFQHNHG":3,"skill-same:01M7F05RYJAWHR9A2S2VFQHNHG":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7F05RYJAWHR9A2S2VFQHNHG","healthcare-phi-compliance",null,"Protected Health Information (PHI) and PII compliance patterns for healthcare applications: data classification, row-level access control, tamper-proof audit trails, schema tagging, and common leak vectors such as logs, URLs, and browser storage. Use when code touches patient or clinician data, when implementing HIPAA or GDPR access controls, or when auditing a healthcare system for data exposure.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fecc\u002Fhealthcare-phi-compliance\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: healthcare-phi-compliance\ndescription: \"Protected Health Information (PHI) and PII compliance patterns for healthcare applications: data classification, row-level access control, tamper-proof audit trails, schema tagging, and common leak vectors such as logs, URLs, and browser storage. Use when code touches patient or clinician data, when implementing HIPAA or GDPR access controls, or when auditing a healthcare system for data exposure.\"\nmetadata:\n  version: \"1.0.0\"\n  origin: Health1 Super Speciality Hospitals — contributed by Dr. Keyur Patel\n---\n\n# Healthcare PHI\u002FPII Compliance Patterns\n\nPatterns for protecting patient data, clinician data, and financial data in healthcare applications. Applicable to HIPAA (US), DISHA (India), GDPR (EU), and general healthcare data protection.\n\n## When to Use\n\n- Building any feature that touches patient records\n- Implementing access control or authentication for clinical systems\n- Designing database schemas for healthcare data\n- Building APIs that return patient or clinician data\n- Implementing audit trails or logging\n- Reviewing code for data exposure vulnerabilities\n- Setting up Row-Level Security (RLS) for multi-tenant healthcare systems\n\n## How It Works\n\nHealthcare data protection operates on three layers: **classification** (what is sensitive), **access control** (who can see it), and **audit** (who did see it).\n\n### Data Classification\n\n**PHI (Protected Health Information)** — any data that can identify a patient AND relates to their health: patient name, date of birth, address, phone, email, national ID numbers (SSN, Aadhaar, NHS number), medical record numbers, diagnoses, medications, lab results, imaging, insurance policy and claim details, appointment and admission records, or any combination of the above.\n\n**PII (Non-patient-sensitive data)** in healthcare systems: clinician\u002Fstaff personal details, doctor fee structures and payout amounts, employee salary and bank details, vendor payment information.\n\n### Access Control: Row-Level Security\n\n```sql\nALTER TABLE patients ENABLE ROW LEVEL SECURITY;\n\n-- Scope access by facility\nCREATE POLICY \"staff_read_own_facility\"\n  ON patients FOR SELECT TO authenticated\n  USING (facility_id IN (\n    SELECT facility_id FROM staff_assignments\n    WHERE user_id = auth.uid() AND role IN ('doctor','nurse','lab_tech','admin')\n  ));\n\n-- Audit log: insert-only (tamper-proof)\nCREATE POLICY \"audit_insert_only\" ON audit_log FOR INSERT\n  TO authenticated WITH CHECK (user_id = auth.uid());\nCREATE POLICY \"audit_no_modify\" ON audit_log FOR UPDATE USING (false);\nCREATE POLICY \"audit_no_delete\" ON audit_log FOR DELETE USING (false);\n```\n\n### Audit Trail\n\nEvery PHI access or modification must be logged:\n\n```typescript\ninterface AuditEntry {\n  timestamp: string;\n  user_id: string;\n  patient_id: string;\n  action: 'create' | 'read' | 'update' | 'delete' | 'print' | 'export';\n  resource_type: string;\n  resource_id: string;\n  changes?: { before: object; after: object };\n  ip_address: string;\n  session_id: string;\n}\n```\n\n### Common Leak Vectors\n\n**Error messages:** Never include patient-identifying data in error messages thrown to the client. Log details server-side only.\n\n**Console output:** Never log full patient objects. Use opaque internal record IDs (UUIDs) — not medical record numbers, national IDs, or names.\n\n**URL parameters:** Never put patient-identifying data in query strings or path segments that could appear in logs or browser history. Use opaque UUIDs only.\n\n**Browser storage:** Never store PHI in localStorage or sessionStorage. Keep PHI in memory only, fetch on demand.\n\n**Service role keys:** Never use the service_role key in client-side code. Always use the anon\u002Fpublishable key and let RLS enforce access.\n\n**Logs and monitoring:** Never log full patient records. Use opaque record IDs only (not medical record numbers). Sanitize stack traces before sending to error tracking services.\n\n### Database Schema Tagging\n\nMark PHI\u002FPII columns at the schema level:\n\n```sql\nCOMMENT ON COLUMN patients.name IS 'PHI: patient_name';\nCOMMENT ON COLUMN patients.dob IS 'PHI: date_of_birth';\nCOMMENT ON COLUMN patients.aadhaar IS 'PHI: national_id';\nCOMMENT ON COLUMN doctor_payouts.amount IS 'PII: financial';\n```\n\n### Deployment Checklist\n\nBefore every deployment:\n- No PHI in error messages or stack traces\n- No PHI in console.log\u002Fconsole.error\n- No PHI in URL parameters\n- No PHI in browser storage\n- No service_role key in client code\n- RLS enabled on all PHI\u002FPII tables\n- Audit trail for all data modifications\n- Session timeout configured\n- API authentication on all PHI endpoints\n- Cross-facility data isolation verified\n\n## Examples\n\n### Example 1: Safe vs Unsafe Error Handling\n\n```typescript\n\u002F\u002F BAD — leaks PHI in error\nthrow new Error(`Patient ${patient.name} not found in ${patient.facility}`);\n\n\u002F\u002F GOOD — generic error, details logged server-side with opaque IDs only\nlogger.error('Patient lookup failed', { recordId: patient.id, facilityId });\nthrow new Error('Record not found');\n```\n\n### Example 2: RLS Policy for Multi-Facility Isolation\n\n```sql\n-- Doctor at Facility A cannot see Facility B patients\nCREATE POLICY \"facility_isolation\"\n  ON patients FOR SELECT TO authenticated\n  USING (facility_id IN (\n    SELECT facility_id FROM staff_assignments WHERE user_id = auth.uid()\n  ));\n\n-- Test: login as doctor-facility-a, query facility-b patients\n-- Expected: 0 rows returned\n```\n\n### Example 3: Safe Logging\n\n```typescript\n\u002F\u002F BAD — logs identifiable patient data\nconsole.log('Processing patient:', patient);\n\n\u002F\u002F GOOD — logs only opaque internal record ID\nconsole.log('Processing record:', patient.id);\n\u002F\u002F Note: even patient.id should be an opaque UUID, not a medical record number\n```\n","# Healthcare PHI\u002FPII Compliance Patterns\n\nPatterns for protecting patient data, clinician data, and financial data in healthcare applications. Applicable to HIPAA (US), DISHA (India), GDPR (EU), and general healthcare data protection.\n\n## When to Use\n\n- Building any feature that touches patient records\n- Implementing access control or authentication for clinical systems\n- Designing database schemas for healthcare data\n- Building APIs that return patient or clinician data\n- Implementing audit trails or logging\n- Reviewing code for data exposure vulnerabilities\n- Setting up Row-Level Security (RLS) for multi-tenant healthcare systems\n\n## How It Works\n\nHealthcare data protection operates on three layers: **classification** (what is sensitive), **access control** (who can see it), and **audit** (who did see it).\n\n### Data Classification\n\n**PHI (Protected Health Information)** — any data that can identify a patient AND relates to their health: patient name, date of birth, address, phone, email, national ID numbers (SSN, Aadhaar, NHS number), medical record numbers, diagnoses, medications, lab results, imaging, insurance policy and claim details, appointment and admission records, or any combination of the above.\n\n**PII (Non-patient-sensitive data)** in healthcare systems: clinician\u002Fstaff personal details, doctor fee structures and payout amounts, employee salary and bank details, vendor payment information.\n\n### Access Control: Row-Level Security\n\n```sql\nALTER TABLE patients ENABLE ROW LEVEL SECURITY;\n\n-- Scope access by facility\nCREATE POLICY \"staff_read_own_facility\"\n  ON patients FOR SELECT TO authenticated\n  USING (facility_id IN (\n    SELECT facility_id FROM staff_assignments\n    WHERE user_id = auth.uid() AND role IN ('doctor','nurse','lab_tech','admin')\n  ));\n\n-- Audit log: insert-only (tamper-proof)\nCREATE POLICY \"audit_insert_only\" ON audit_log FOR INSERT\n  TO authenticated WITH CHECK (user_id = auth.uid());\nCREATE POLICY \"audit_no_modify\" ON audit_log FOR UPDATE USING (false);\nCREATE POLICY \"audit_no_delete\" ON audit_log FOR DELETE USING (false);\n```\n\n### Audit Trail\n\nEvery PHI access or modification must be logged:\n\n```typescript\ninterface AuditEntry {\n  timestamp: string;\n  user_id: string;\n  patient_id: string;\n  action: 'create' | 'read' | 'update' | 'delete' | 'print' | 'export';\n  resource_type: string;\n  resource_id: string;\n  changes?: { before: object; after: object };\n  ip_address: string;\n  session_id: string;\n}\n```\n\n### Common Leak Vectors\n\n**Error messages:** Never include patient-identifying data in error messages thrown to the client. Log details server-side only.\n\n**Console output:** Never log full patient objects. Use opaque internal record IDs (UUIDs) — not medical record numbers, national IDs, or names.\n\n**URL parameters:** Never put patient-identifying data in query strings or path segments that could appear in logs or browser history. Use opaque UUIDs only.\n\n**Browser storage:** Never store PHI in localStorage or sessionStorage. Keep PHI in memory only, fetch on demand.\n\n**Service role keys:** Never use the service_role key in client-side code. Always use the anon\u002Fpublishable key and let RLS enforce access.\n\n**Logs and monitoring:** Never log full patient records. Use opaque record IDs only (not medical record numbers). Sanitize stack traces before sending to error tracking services.\n\n### Database Schema Tagging\n\nMark PHI\u002FPII columns at the schema level:\n\n```sql\nCOMMENT ON COLUMN patients.name IS 'PHI: patient_name';\nCOMMENT ON COLUMN patients.dob IS 'PHI: date_of_birth';\nCOMMENT ON COLUMN patients.aadhaar IS 'PHI: national_id';\nCOMMENT ON COLUMN doctor_payouts.amount IS 'PII: financial';\n```\n\n### Deployment Checklist\n\nBefore every deployment:\n- No PHI in error messages or stack traces\n- No PHI in console.log\u002Fconsole.error\n- No PHI in URL parameters\n- No PHI in browser storage\n- No service_role key in client code\n- RLS enabled on all PHI\u002FPII tables\n- Audit trail for all data modifications\n- Session timeout configured\n- API authentication on all PHI endpoints\n- Cross-facility data isolation verified\n\n## Examples\n\n### Example 1: Safe vs Unsafe Error Handling\n\n```typescript\n\u002F\u002F BAD — leaks PHI in error\nthrow new Error(`Patient ${patient.name} not found in ${patient.facility}`);\n\n\u002F\u002F GOOD — generic error, details logged server-side with opaque IDs only\nlogger.error('Patient lookup failed', { recordId: patient.id, facilityId });\nthrow new Error('Record not found');\n```\n\n### Example 2: RLS Policy for Multi-Facility Isolation\n\n```sql\n-- Doctor at Facility A cannot see Facility B patients\nCREATE POLICY \"facility_isolation\"\n  ON patients FOR SELECT TO authenticated\n  USING (facility_id IN (\n    SELECT facility_id FROM staff_assignments WHERE user_id = auth.uid()\n  ));\n\n-- Test: login as doctor-facility-a, query facility-b patients\n-- Expected: 0 rows returned\n```\n\n### Example 3: Safe Logging\n\n```typescript\n\u002F\u002F BAD — logs identifiable patient data\nconsole.log('Processing patient:', patient);\n\n\u002F\u002F GOOD — logs only opaque internal record ID\nconsole.log('Processing record:', patient.id);\n\u002F\u002F Note: even patient.id should be an opaque UUID, not a medical record number\n```\n",{"name":5,"metadata":24,"description":7},{"origin":25,"version":26},"Health1 Super Speciality Hospitals — contributed by Dr. Keyur Patel","1.0.0","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fecc\u002Fhealthcare-phi-compliance","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill healthcare-phi-compliance",{"tool":39,"command":40},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill healthcare-phi-compliance",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill healthcare-phi-compliance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fecc\u002Fhealthcare-phi-compliance\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]