healthflow-security

Enforce PHI redaction, tenant scoping, and audit logging in HealthFlow code reviews.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/saikamara59/health-insurance-agent --skill healthflow-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: healthflow-security
Source: https://github.com/saikamara59/health-insurance-agent/tree/main/.claude/skills/healthflow-security
Command: npx skills add https://github.com/saikamara59/health-insurance-agent --skill healthflow-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HealthFlow security guidance prevents accidental PHI leakage, bypassing redaction, broken tenant isolation, and unsafe logging when developers change authentication, LLM agents, database models, or configuration.

Core Features & Use Cases

  • PHI-safe agent prompting: Enforces building prompts only via the PromptInput dataclass boundary so redaction happens automatically before any LLM call.
  • Tenant isolation by infrastructure: Ensures PHI queries are always scoped by broker_id through SQLAlchemy listeners, and documents the correct patterns for cross-broker access with audit reasons.
  • Automatic PHI audit logging: Defines which tables are audited, enforces listener ordering, and instructs how to query audit logs safely.
  • Auth, secrets, and crypto guardrails: Specifies fail-loud environment variables, refresh-token rotation/replay handling, encryption-at-rest key versioning, and safe plaintext migration windows.
  • Operational rules for external services: Covers RxNav’s non-PHI posture while treating broker search behavior as sensitive and preventing query or identifier leakage.

Quick Start

Use the healthflow-security skill when reviewing a change that touches healthflow/auth, healthflow/agents (LLM calls), PHI fields in healthflow/database/models.py, env/config, the seed script, or anything that could log request bodies.

Frequently Asked Questions about healthflow-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent PHI leakage when building LLM agent prompts in a healthcare application?

Preventing PHI leakage in LLM agent prompts requires routing all inputs through a strict dataclass boundary like PromptInput, which automatically redacts sensitive fields before the LLM call executes.

What is the safest way to enforce tenant isolation for PHI database queries?

Enforcing tenant isolation for PHI queries requires applying infrastructure-level scoping via SQLAlchemy listeners that automatically filter all records by broker_id, preventing cross-tenant data access.

How do I manage AES-GCM encryption-at-rest key rotation safely?

Safe AES-GCM encryption-at-rest key rotation requires maintaining strict key versioning rules and establishing safe plaintext migration windows to prevent data loss during the transition process.

Does this security guidance cover audit logging for cross-broker operations?

Yes, security guidance for audit logging covers cross-broker operations by enforcing automatic PHI audit log creation, correct SQLAlchemy listener ordering, and requiring documented audit reasons for access.

Why do I need fail-loud environment variable validation for healthcare secrets management?

Fail-loud environment variable validation is needed for healthcare secrets management because it immediately halts application startup if required secrets are missing, preventing silent insecure configurations.

What is the best way to handle refresh-token rotation and replay attacks in health auth systems?

Handling refresh-token rotation and replay attacks in health auth systems requires implementing strict rotation rules and replay detection mechanisms to invalidate stolen tokens immediately.