healthflow-data-refresh
CommunityRefresh health data safely and consistently.
Software Engineering#caching#ETL#health data#json round-trip#httpx fetcher#seed fallback#atomic database writes
Authorsaikamara59
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It standardizes how real public health datasets are fetched, cached, validated, and loaded into healthflow_data.db so updates don’t break the platform or silently corrupt cached results.
Core Features & Use Cases
- Layered fetch → cache → seed fallback: Implements a reliable ladder that logs degraded states and falls back to SEED_X when downloads fail.
- Deterministic fetcher contract: Enforces that download_x returns None on any failure (no raising), guards missing env tokens, and uses controlled httpx timeouts.
- Cache correctness for JSON round-trips: Prevents tuple/set semantic bugs by explicitly handling rehydrated list/tuple/set behavior after cache load.
- Atomic database builds: Writes via a temporary SQLite path and final os.replace to avoid partial-update corruption.
Quick Start
Ask the AI to review a new public-data fetcher you added to scripts/refresh_data.py and verify it follows the SEED, download_x, cache TTL, fallback, JSON round-trip, and atomic build rules.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: healthflow-data-refresh Download link: https://github.com/saikamara59/health-insurance-agent/archive/main.zip#healthflow-data-refresh Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.