Queries a local SQLite database with 6.3M+ Apple Health records going back to 2015. You get pre-built commands for daily summaries, weekly trends, sleep analysis, and workout history, plus direct SQL access when you need custom queries. Output formats include Markdown tables, JSON, FHIR R4 bundles with LOINC codes, and ASCII charts for terminal work. The Python script handles common cases well, but you'll want the SQL templates for anything interesting like circadian heart rate patterns or sleep stage analysis. Covers 43 metric types from vitals to mobility data. Most useful if you already export Apple Health and want to slice the data without writing export parsers from scratch.

skills.sh installs
398
GitHub stars
412
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/glebis/claude-skills
Categories
Backend & APIs, Databases
First seen
Jun 3, 2026

More from glebis/claude-skills

All 22
1bradautomates avataryoutube-researchbradautomates/head-of-contentResearch high-performing YouTube videos in a niche using TubeLab's outlier detection API. Identifies outlier videos, analyzes top 3 relevant videos with AI, and394skills.sh installs
2davila7 avatarobsidian-basesdavila7/claude-code-templatesCreate and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of no394skills.sh installs
3secondsky avatarmcp-managementsecondsky/claude-skillsManage MCP servers - discover, analyze, execute tools/prompts/resources. Use for MCP integrations, capability discovery, tool filtering, programmatic execution,393skills.sh installs
4ykdojo avatarreddit-fetchykdojo/claude-code-tipsFetch content from Reddit via its JSON API using a browser session (DuckDuckGo-hop unlock). Use when accessing Reddit URLs, researching topics on Reddit, or whe392skills.sh installs
5zzci avatarpma-webzzci/skillsFrontend implementation guide for PMA-managed React + Vite SPA and internal-tool frontend projects. Covers required quality gates, file-based type-safe routing 391skills.sh installs
6bobmatnyc avatarvuebobmatnyc/claude-mpm-skillsVue 3 - Progressive JavaScript framework with Composition API, reactivity system, single-file components, Vite integration, TypeScript support390skills.sh installs