apple-health-csv

Query Apple Health data exported as CSV files from iOS apps like Simple Health Export or Health Auto Export. Supports 30+ health metrics including heart rate, steps, sleep analysis, blood oxygen, workouts, body measurements, and more. Fully local — no cloud services, no API keys, no third-party data sharing. Use when users ask about their health data, fitness trends, sleep patterns, or want a daily health summary.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "apple-health-csv" with this command: npx skills add lanyasheng/apple-health-csv

Apple Health CSV Skill

Query Apple Health data from CSV exports. Works with any iOS app that exports HealthKit data as CSV (Simple Health Export, Health Auto Export, etc.).

Setup

  1. Export health data from your iPhone using an app like Simple Health Export (free)
  2. Transfer the CSV files to your Mac (via AirDrop, iCloud, or USB)
  3. Place them in the skill data directory:
# Default location (auto-detected)
~/.openclaw/workspace-butler/health-data/

# Or specify a custom path
export HEALTH_DATA_DIR="/path/to/your/csv/files"

Usage

# List available health metrics
python3 scripts/health_query.py list

# Get a comprehensive daily health summary
python3 scripts/health_query.py summary

# Query a specific metric (last 7 days by default)
python3 scripts/health_query.py query HeartRate
python3 scripts/health_query.py query StepCount --days 14
python3 scripts/health_query.py query SleepAnalysis --days 7
python3 scripts/health_query.py query OxygenSaturation --days 30

# JSON output for programmatic use
python3 scripts/health_query.py query HeartRate --days 7 --json
python3 scripts/health_query.py summary --json

Supported Metrics

CategoryMetrics
HeartHeartRate, RestingHeartRate, WalkingHeartRateAverage, HeartRateVariabilitySDNN
ActivityStepCount, ActiveEnergyBurned, BasalEnergyBurned, AppleExerciseTime, AppleStandTime, FlightsClimbed
DistanceDistanceWalkingRunning, DistanceCycling, DistanceSwimming
VitalsOxygenSaturation, RespiratoryRate, BodyTemperature
SleepSleepAnalysis (with stage breakdown: REM/Core/Deep/Awake)
BodyBodyMass, BodyFatPercentage, BodyMassIndex, Height, LeanBodyMass
WalkingWalkingSpeed, WalkingStepLength, WalkingAsymmetryPercentage, WalkingDoubleSupportPercentage
AudioEnvironmentalAudioExposure, HeadphoneAudioExposure
PerformanceVO2Max, SixMinuteWalkTestDistance, AppleWalkingSteadiness
OtherDietaryWater, AppleSleepingWristTemperature

Tips for Agents

  1. Start with summary to get a quick overview of today's health
  2. Use --json flag when you need structured data for analysis
  3. Sleep data is grouped by night (cross-midnight sessions handled correctly)
  4. Blood oxygen values are auto-converted from 0-1 decimal to percentage
  5. Cumulative metrics (steps, calories, exercise time) show daily totals
  6. Rate metrics (heart rate, SpO2) show daily averages with min/max range

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Fitbit Tracker

Personal Fitbit integration for daily health tracking with adaptive sleep and activity reporting

Registry SourceRecently Updated
General

Ollama Load Balancer

Ollama load balancer for Llama, Qwen, DeepSeek, and Mistral inference across multiple machines. Load balancing with auto-discovery via mDNS, health checks, q...

Registry SourceRecently Updated
General

Google Merchant Center

Google Merchant Center integration. Manage Accounts. Use when the user wants to interact with Google Merchant Center data.

Registry SourceRecently Updated
General

Twitter/X All-in-One — Search, Monitor & Publish Text & Media Posts

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts, likes/unlike...

Registry SourceRecently Updated