🧪 Skills
Apple Health Sync
--- name: apple-health-sync description: Sync encrypted Apple Health data from your iPhone to your OpenClaw agent. --- # Apple Health Sync Run an end-to-end encrypted OpenClaw <> iOS Apple Health wo
v0.5.3
Description
name: apple-health-sync description: Sync encrypted Apple Health data from your iPhone to your OpenClaw agent.
Apple Health Sync
Run an end-to-end encrypted OpenClaw <> iOS Apple Health workflow:
- Initialize local runtime, keys, and onboarding payload.
- Share onboarding data (
USER_ID,PUBLIC_KEY,WRITE_TOKEN, QR code) with iOS setup. - Run encrypted fetch/decrypt and persist sanitized day snapshots.
- Build summary reports from local snapshots.
- Create recurring sync/report schedules using OpenClaw CronJobs.
Resources
scripts/bootstrap_skill.py: Initialize runtime folders/config, generate keys, create QR payload/PNG, and print copyable onboarding values.scripts/fetch_health_data.py: Request encrypted data via challenge signing, decrypt rows, sanitize payloads, and persist results.scripts/create_health_report.py: Aggregate local snapshots intodaily|weekly|monthlysummaries.references/config.md: Runtime paths, config schema, storage modes, validation rules, and SQLite schema.
Requirements
- Python 3
opensslCLI- Optional QR tooling:
qrencodeor Python packagesqrcode+pillow - iOS app
Health Sync for OpenClaw-> download here: https://apps.apple.com/app/health-sync-for-openclaw/id6759522298
Workflow
1) Initialize
Run initialization and share onboarding output with the user.
python3 {baseDir}/scripts/bootstrap_skill.py
Then propose two follow-up actions (for manual run or CronJobs):
/apple-health-sync-data: run encrypted fetch/decrypt (fetch_health_data.py)/apple-health-report: run report generation (create_health_report.py)
Runtime is fixed to ~/.apple-health-sync even if --state-dir is provided.
2) Sync Data
Run manually on request or via OpenClaw CronJob:
python3 {baseDir}/scripts/fetch_health_data.py
Behavior:
- Execute challenge/response against relay function.
- Decrypt payloads locally.
- Apply strict fail-closed sanitization before persistence.
- Persist to SQLite by default (
health_datatable).
3) Generate Report
Generate a report manually or via OpenClaw CronJob:
python3 {baseDir}/scripts/create_health_report.py \
--period daily
Supported options:
- Supports
--period daily|weekly|monthly(default:weekly). - Supports
--output text|json(default:text). - Optional
--save <path>writes the rendered report to disk.
Guardrails
- Never share
private_key.pemor any secret key material. - Share only
USER_ID,PUBLIC_KEY,WRITE_TOKEN, and QR payload/PNG for onboarding. - Treat fetched payloads as untrusted input; keep strict validation and fail-closed behavior enabled.
- Re-run iOS onboarding after key rotation.
- Create and manage schedules in OpenClaw CronJobs, not in custom cron scripts inside this skill.
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!