Skip to content

Local SQLite query tool for Apple Health data with Markdown, JSON, FHIR R4, and ASCII output.

CCM score
69 of 100
skills.sh installs
399
GitHub stars
416
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers vitals, activity, sleep, workouts, and mobility metrics drawn from a local Apple Health SQLite database
  • Includes health_query.py for daily, weekly, sleep, vitals, activity, and workout reports plus custom SQL
  • Provides SQL templates in references/schema.md and LOINC-coded FHIR R4 Observation bundles via fhir_mappings.md
  • Designed for analyzing personal fitness and sleep patterns or exporting health records in standard healthcare formats

Install

$ npx -y skills add glebis/claude-skills --skill health-data -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Apple Health Data Query Skill

Query and analyze health data from the local SQLite database containing 6.3M+ records across 43 health metrics.

Database Location

~/data/health.db

Query Methods

1. Python Script (Recommended for Common Queries)

Use scripts/health_query.py for pre-built queries with automatic formatting:

# Daily summary
python ~/.claude/skills/health-data/scripts/health_query.py --format markdown daily --date 2025-11-29

# Weekly trends
python ~/.claude/skills/health-data/scripts/health_query.py --format json weekly --weeks 4

# Sleep analysis
python ~/.claude/skills/health-data/scripts/health_query.py --format fhir sleep --days 7

# Latest vitals
python ~/.claude/skills/health-data/scripts/health_query.py vitals

# Activity rings
python ~/.claude/skills/health-data/scripts/health_query.py --format json activity --days 30

# Workout history
python ~/.claude/skills/health-data/scripts/health_query.py workouts --days 30 --type Running

# Custom SQL
python ~/.claude/skills/health-data/scripts/health_query.py --format json query "SELECT * FROM workouts LIMIT 5"

Output formats: markdown, json, fhir, ascii

Details

Repository
github.com/glebis/claude-skills
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

How do I query Apple Health data with the health-data skill?

The health-data skill queries a local Apple Health SQLite database at ~/data/health.db covering vitals, activity, sleep and workouts. It can run pre-built queries through its health_query.py script or direct SQL, and returns Markdown, JSON, FHIR R4 or ASCII output.

How do I install the health-data skill?

Run npx -y skills add glebis/claude-skills --skill health-data -y in a project to install the health-data skill. After that, the health-data skill lets the agent analyze health metrics, generate health reports and export data in standard formats.

Can the health-data skill export Apple Health data as FHIR?

Yes, the health-data skill can output FHIR R4 bundles with Observation resources using LOINC codes. Its health_query.py script accepts the fhir format for sleep and other queries, and its references/fhir_mappings.md file lists the code mappings.

More from glebis/claude-skills

All 22

Similar to Health Data

More Data Science & Analytics