DATA-PHI
We earn commissions when you shop through the links below.
Identify and handle PHI in software to enforce minimum necessary use, encryption, access control, and retention/deletion policies.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install meddev-skills-data-phiManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-data-phi/SKILL.md
Instructions
Protected Health Information Handling
Purpose
Identify and handle PHI in software to enforce minimum necessary use, encryption, access control, and retention/deletion policies.
When to Apply
- Any feature storing/transmitting patient data.
- Logs, telemetry, backups, analytics, and interoperability.
Requirements (testable)
- PHI Identification: Classify data elements; mark PHI/PII; document flows. Rationale: scope controls.
- Minimum Necessary: Limit fields collected/stored/transmitted; justify PHI fields. Rationale: privacy by design.
- Encryption: Encrypt PHI in transit (TLS 1.3) and at rest; keys protected. Rationale: confidentiality.
- Access Control: Enforce authz for PHI access; role/need-to-know; audit accesses. Rationale: accountability.
- Logging/Sanitization: Avoid PHI in logs; if required, mask or tokenize. Rationale: reduce leakage.
- Retention/Deletion: Define retention; implement deletion or de-ID on expiry; verify. Rationale: compliance.
- Data Export/Interoperability: Apply same controls to exports; ensure standards-based fields are properly scoped. Rationale: consistent protection.
Recommended Practices
- Use data flow diagrams marking PHI.
- Apply structured logging with explicit allowlists.
- Tokenize identifiers where possible; separate identity from clinical data.
- Encrypt backups and ensure access controls on storage buckets.
Patterns
Sanitized logging:
// REQ-PHI-LOG-01; TEST-PHI-04
log_info("evt=device_connect id=%s", anonymized_id(dev_id));
Retention check (pseudo):
# REQ-PHI-RET-02; TEST-PHI-06
delete_records_older_than(days=365)
Data classification entry:
field: patient_name
phi: true
justification: required for clinician display
Anti-Patterns (risks)
- Dumping raw PHI to logs -> risk: breach.
- Transmitting PHI over plaintext or weak TLS -> risk: exposure.
- No retention/deletion -> risk: excessive data and regulatory noncompliance.
- Broad access without RBAC -> risk: unauthorized disclosure.
Verification Checklist
- PHI fields identified and documented in data flows.
- Minimum necessary enforced; unnecessary fields removed.
- PHI encrypted in transit and at rest; keys protected.
- Access control and auditing applied to PHI access.
- Logs/telemetry sanitized; no raw PHI unless justified and protected.
- Retention/deletion implemented and verified; backups included.
- Exports/interoperability apply same protections.
Traceability
REQ-PHI-###to testsTEST-PHI-###; link to security requirements and privacy policies.
References
- HIPAA Security/Privacy Rules (US).
- EU GDPR principles; data minimization/retention.
- FDA cybersecurity guidance (PHI protection).
Changelog
- 1.0.0 (2026-01-04): Initial PHI handling skill with classification, minimization, encryption, and retention.
Audit History
- 2026-01-04: Audit performed. Verified:
- HIPAA Security/Privacy Rule references appropriate
- EU GDPR data minimization/retention principles correctly noted
- PHI handling patterns align with industry best practices
Security
Reviews (0)
Related skills
Browse all →More from Medical Device Skills
View source →More Data skills
Browse category →Frequently asked questions about DATA-PHI
What does the DATA-PHI skill do?
Identify and handle PHI in software to enforce minimum necessary use, encryption, access control, and retention/deletion policies. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the DATA-PHI skill?
Run `npx @skills-hub-ai/cli install meddev-skills-data-phi` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-data-phi/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does DATA-PHI work with?
DATA-PHI runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the DATA-PHI skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use DATA-PHI after installing it?
In Claude Code, type `/meddev-skills-data-phi` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the DATA-PHI skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.