Health Sync Analysis Skill
Purpose
This skill is dedicated to analyzing the user's health data across available providers:
- Oura
- Withings
- Hevy
- Strava
- WHOOP
- Eight Sleep
The main goal is to help the user understand trends, compare signals across providers, and find useful insights from their synced data.
Scope
Use this skill when the user asks questions such as:
- How did I sleep last night?
- How was my last workout?
- How did my resting heart rate change during the year?
- What trends are you seeing in my recovery, sleep, and training?
- What useful insights or next steps should I focus on?
Setup Handling (Remote Bootstrap Only)
Setup is bot-led and remote-first. The only supported onboarding flow is:
- Bot runs
npx health-sync init remote bootstrap.
- Bot sends user:
npx health-sync init --remote <bootstrap-token>.
- User sends back encrypted archive.
- Bot runs
npx health-sync init remote finish <ref> <archive>.
For full operational instructions, always consult:
Do not use or recommend legacy direct setup flows such as:
health-sync init as the primary user instruction
health-sync auth <provider> as a standalone onboarding path
Those commands may still exist for maintenance/debugging, but they are not the setup flow this skill should guide.
Runtime And Data Disclosure (Mandatory)
This skill assumes the bot environment has local CLI and filesystem access.
- Required binary:
- Expected local working paths:
workspace/health-sync/health-sync.toml
workspace/health-sync/.health-sync.creds
workspace/health-sync/health.sqlite
- Sensitive-data handling:
- Remote onboarding imports encrypted archives that contain provider credentials/tokens.
- Finish flow writes decrypted secrets to local files on the bot host.
- These files must be treated as sensitive at rest (access controls, backups, retention).
- Chat-safety boundary:
- Never ask users to paste raw secrets in chat.
- Only collect encrypted archive files via remote bootstrap flow.
Schema Handling
To understand data schemas and query correctly, read the provider reference files:
references/oura.md
references/withings.md
references/hevy.md
references/strava.md
references/whoop.md
references/eightsleep.md
Freshness Rule (Mandatory)
Before any analysis, always run:
npx health-sync sync
If sync fails, report the failure clearly and continue analysis only if the user explicitly asks to proceed with potentially stale data.
Analysis Workflow
- Run
npx health-sync sync first.
- Identify the user question and which provider/resource(s) are relevant.
- Read the provider schema reference before forming SQL.
- Query
records, sync_state, and sync_runs as needed.
- Produce a clear, user-friendly answer with concrete numbers and dates.
- Highlight meaningful patterns and offer practical guidance.
- When data quality or coverage is limited, say so explicitly.
Output Style
- Be concise, clear, and practical.
- Focus on useful interpretation, not just raw data dumps.
- Connect metrics to actionable insights (sleep, recovery, training, consistency, etc.).
- Ask follow-up questions only when necessary to improve analysis quality.
1---
2name: health-sync
3description: Analyze synced health data across Oura, Withings, Hevy, Strava, WHOOP, and Eight Sleep.
4homepage: https://github.com/filipe-m-almeida/health-sync
5metadata:
6 source: https://skillmd.com/skills/modbender/health-sync
7 openclaw:
8 emoji: "🩺"
9 requires:
10 bins:
11 - node
12 - npm
13 - npx
14 config:
15 - workspace/health-sync/health-sync.toml
16 - workspace/health-sync/.health-sync.creds
17 - workspace/health-sync/health.sqlite
18 install:
19 - kind: node
20 package: health-sync
21 bins:
22 - health-sync
23read_when:
24 - User asks for health-sync setup, auth, sync, provider status, or remote bootstrap onboarding
25 - User asks about sleep, recovery, training, activity, your health, or cross-provider trends
26---
27
28# Health Sync Analysis Skill
29
30## Purpose
31
32This skill is dedicated to analyzing the user's health data across available providers:
33
34- Oura
35- Withings
36- Hevy
37- Strava
38- WHOOP
39- Eight Sleep
40
41The main goal is to help the user understand trends, compare signals across providers, and find useful insights from their synced data.
42
43## Scope
44
45Use this skill when the user asks questions such as:
46
47- How did I sleep last night?
48- How was my last workout?
49- How did my resting heart rate change during the year?
50- What trends are you seeing in my recovery, sleep, and training?
51- What useful insights or next steps should I focus on?
52
53## Setup Handling (Remote Bootstrap Only)
54
55Setup is bot-led and remote-first. The only supported onboarding flow is:
56
571. Bot runs `npx health-sync init remote bootstrap`.
582. Bot sends user: `npx health-sync init --remote <bootstrap-token>`.
593. User sends back encrypted archive.
604. Bot runs `npx health-sync init remote finish <ref> <archive>`.
61
62For full operational instructions, always consult:
63
64- `references/setup.md`
65
66Do not use or recommend legacy direct setup flows such as:
67
681. `health-sync init` as the primary user instruction
692. `health-sync auth <provider>` as a standalone onboarding path
70
71Those commands may still exist for maintenance/debugging, but they are not the setup flow this skill should guide.
72
73## Runtime And Data Disclosure (Mandatory)
74
75This skill assumes the bot environment has local CLI and filesystem access.
76
771. Required binary:
78 - `node`
79 - `npm`
80 - `npx`
812. Expected local working paths:
82 - `workspace/health-sync/health-sync.toml`
83 - `workspace/health-sync/.health-sync.creds`
84 - `workspace/health-sync/health.sqlite`
853. Sensitive-data handling:
86 - Remote onboarding imports encrypted archives that contain provider credentials/tokens.
87 - Finish flow writes decrypted secrets to local files on the bot host.
88 - These files must be treated as sensitive at rest (access controls, backups, retention).
894. Chat-safety boundary:
90 - Never ask users to paste raw secrets in chat.
91 - Only collect encrypted archive files via remote bootstrap flow.
92
93## Schema Handling
94
95To understand data schemas and query correctly, read the provider reference files:
96
97- `references/oura.md`
98- `references/withings.md`
99- `references/hevy.md`
100- `references/strava.md`
101- `references/whoop.md`
102- `references/eightsleep.md`
103
104## Freshness Rule (Mandatory)
105
106Before any analysis, always run:
107
108```bash
109npx health-sync sync
110```
111
112If sync fails, report the failure clearly and continue analysis only if the user explicitly asks to proceed with potentially stale data.
113
114## Analysis Workflow
115
1161. Run `npx health-sync sync` first.
1172. Identify the user question and which provider/resource(s) are relevant.
1183. Read the provider schema reference before forming SQL.
1194. Query `records`, `sync_state`, and `sync_runs` as needed.
1205. Produce a clear, user-friendly answer with concrete numbers and dates.
1216. Highlight meaningful patterns and offer practical guidance.
1227. When data quality or coverage is limited, say so explicitly.
123
124## Output Style
125
126- Be concise, clear, and practical.
127- Focus on useful interpretation, not just raw data dumps.
128- Connect metrics to actionable insights (sleep, recovery, training, consistency, etc.).
129- Ask follow-up questions only when necessary to improve analysis quality.