[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70G5RNW03GSF2B9QHHA0K1Y":3,"skill-same:01M70G5RNW03GSF2B9QHHA0K1Y":77},{"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":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":6,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M70G5RNW03GSF2B9QHHA0K1Y","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.","mdnaimul22\u002Fhuman-skills","mdnaimul22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F64520358?v=4","01M70FH95MH2H796Q01TYSFZ03","Naimul","01M70FH96798CQR4YHA13F17GA",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fhealthcare-phi-compliance\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000037","律师与法务",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"phi","compliance","healthcare phi compliance","healthcare","patterns","data","storage","tagging","audit","browser","common","logs","code","when","access","information","patient","implementing","compliance patterns","pii","2026-11-10 10:12:30",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":52,"description":7},{"origin":53,"version":54},"Health1 Super Speciality Hospitals — contributed by Dr. Keyur Patel","1.0.0","main","74715deacdc69119d739f38916f8ee4f0f979ebf","skills\u002Fstorage\u002Faffaan-m_ECC\u002Fhealthcare-phi-compliance",0,"https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills","https:\u002F\u002Fgithub.com\u002Fmdnaimul22","AI Agents Workflows Automation | Specializing in Python, FastAPI, MCP Agents & Custom ERP.","2026-11-11 21:16:57",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add mdnaimul22\u002Fhuman-skills --skill healthcare-phi-compliance",{"tool":69,"command":70},"bunx","bunx skills add mdnaimul22\u002Fhuman-skills --skill healthcare-phi-compliance",{"tool":72,"command":73},"pnpm","pnpm dlx skills add mdnaimul22\u002Fhuman-skills --skill healthcare-phi-compliance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fhealthcare-phi-compliance\u002FSKILL.md",true,[],[78,86,94,101,108,115],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":85},"01M767791C1KRP2ZRW2Z73VZ5Q","system-lifecycle-designer","Universal architectural methodology for designing granular, atomic, and sub-atomic lifecycles and end-to-end workflows for single functionality integrations across any domain (daemons, batch jobs, request transactions, resource pools). Provides patterns for deterministic identity, pre-commit validation, differential reconciliation, sticky leasing, state machines, transactional persistence, and closed-loop feedback.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fmy_skills\u002Fsystem-lifecycle-designer\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":93},"01M748ABPN5F1FANHH6HKZQMXT","style-sampling","Make a new episode in a proven video style - Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime - on the person's topic. Use for \"an episode of\", \"in the style of\", \"sample this style\", 「用这个风格做一集」. One video to copy is reverse-any-video.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fheygen-com_hyperframes\u002Fstyle-sampling\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":93},"01M748A59V04PKW4HA0XQ81FGP","reverse-any-video","Rebuild any video file as an editable HyperFrames project - motion graphics, talking heads, live action or AI-generated footage - checked against the original frame by frame. Use to reverse, recreate, remake, replicate or copy a video, or 「复刻这个视频」「照着这个视频做一个」.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Fheygen-com_hyperframes\u002Freverse-any-video\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":93},"01M7487T50P55CSXMWXZ0G9KRG","typescript-patterns","TypeScript patterns for strict, type-safe, maintainable code in modern TypeScript and JavaScript applications. Covers strict compiler configuration, type design, narrowing, discriminated unions, generics, async and error handling, module boundaries, dependency hygiene, and type-level testing. Use when writing or reviewing TypeScript or JavaScript code.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Ftypescript-patterns\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":93},"01M7487ERZRGPC5NJ75077Y238","test-collaboration","Inventory and govern a project's test assets. Connect requirements, business rules, risks, bugs, and cross-boundary contracts to stable TEST-IDs and executable evidence in the repository's existing test registry or TESTS.md. Use for test inventory, test gap analysis, unit\u002Fintegration\u002Fcontract\u002FE2E\u002Fsmoke classification, bug-to-test regression protection, consumer\u002Fprovider contract testing, test-necessity review, and pre-delivery evidence review.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Ftest-collaboration\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":93},"01M748721J3GKR2WS6K0QWFC35","story-lifecycle","Manage a file-based epic → story → sprint development loop without requiring an external project management tool. Creates and tracks epics, breaks them into user stories, assigns them to sprints, and drives implementation story by story. Use when starting a new feature initiative or when the team has no Jira\u002FLinear\u002FTaiga but needs structured delivery tracking.","https:\u002F\u002Fgithub.com\u002Fmdnaimul22\u002Fhuman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fstorage\u002Faffaan-m_ECC\u002Fstory-lifecycle\u002FSKILL.md",[],[]]