healthsync
Queries Apple Health data stored in a local SQLite database. Use this skill to read heart rate, steps, SpO2, VO2 Max, sleep, workouts, resting heart rate, HRV, blood pressure, active/basal energy, body metrics, mobility, running metrics, mindful sessions, wrist temperature, and more. Can query via the healthsync CLI or directly via SQLite. Read-only — never write to the database.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bro3886/healthsynchealthsync — Apple Health Data Query Skill
Installing healthsync
# macOS and Linux (recommended)
curl -fsSL https://healthsync.sidv.dev/install | bash
# Or via Go
go install github.com/BRO3886/healthsync@latest
After installing the binary, parse your Apple Health export:
# Export from Health app → profile picture → Export All Health Data
healthsync parse ~/Downloads/export.zip
Install this skill into your agent:
# Claude Code or Codex
healthsync skills install
# OpenClaw
healthsync skills install --agent openclaw
Query Apple Health export data stored in a local SQLite database. This skill is read-only — never INSERT, UPDATE, DELETE, or DROP anything.
Important Constraints
- READ ONLY — You must NEVER write to the database. No INSERT, UPDATE, DELETE, DROP, ALTER, or any write operations.
- Two query methods: CLI (
healthsync query) or direct SQLite (sqlite3 ~/.healthsync/healthsync.db) - Prefer CLI for simple queries. Use direct SQLite for complex aggregations, joins, or custom SQL.
Database Location
Default: ~/.healthsync/healthsync.db
Quick Start
# Recent heart rate readings
healthsync query heart-rate --limit 10
# Steps in a date range
healthsync query steps --from 2024-01-01 --to 2024-06-30 --limit 100
# Deduplicated daily step totals
healthsync query steps --total --from 2024-01-01
# Deduplicated daily active energy totals
healthsync query active-energy --total --from 2024-01-01
# Workouts as JSON
healthsync query workouts --format json --limit 20
# Sleep data as CSV
healthsync query sleep --format csv --limit 50
# Resting heart rate trend
healthsync query resting-heart-rate --limit 30
# HRV readings
healthsync query hrv --limit 30
# Blood pressure
healthsync query blood-pressure --limit 20
# Body weight trend
healthsync query body-mass --limit 30
# Direct SQLite for aggregations
sqlite3 ~/.healthsync/healthsync.db "SELECT date(start_date) as day, SUM(value) as total_steps FROM steps GROUP BY day ORDER BY day DESC LIMIT 7"
# Average resting heart rate per week
sqlite3 ~/.healthsync/healthsync.db "SELECT strftime('%Y-W%W', start_date) as week, ROUND(AVG(value),1) as avg_rhr FROM resting_heart_rate GROUP BY week ORDER BY week DESC LIMIT 12"
CLI Reference
healthsync query <table>
| Flag | Description | Default |
|---|---|---|
--from | Filter records from this date (inclusive) | — |
--to | Filter records to this date (inclusive) | — |
--limit | Maximum records to return | 50 |
--format | Output format: table, json, csv | table |
--total | Deduplicated daily totals (steps, active-energy, basal-energy only) | false |
--db | Override database path | ~/.healthsync/healthsync.db |
Available Tables
Cardiac
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bro3886-healthsync": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
rem
Manages macOS Reminders from the terminal using the rem CLI. Creates, lists, updates, completes, deletes, searches, and exports reminders and lists. Supports natural language due dates, filtering, import/export, and multiple output formats. Use when the user wants to interact with Apple Reminders via command line, automate reminder workflows, or build scripts around macOS Reminders.
cal-cli
Manages macOS Calendar events and calendars from the terminal using the ical CLI. Full CRUD for both events and calendars. Supports natural language dates, recurrence rules, alerts, interactive mode, import/export (JSON/CSV/ICS), and multiple output formats. Use when the user wants to interact with Apple Calendar via command line, automate calendar workflows, or build scripts around macOS Calendar.
gtasks-cli
Manage Google Tasks from the command line - view, create, update, delete tasks and task lists. Use when the user asks to interact with Google Tasks, manage to-do items, create task lists, mark tasks complete, or check their Google Tasks.