← 返回 Skills 市场
reffwu

Apple Health → OpenClaw

作者 Ruifu Wu · GitHub ↗ · v2.0.0 · MIT-0
darwinlinuxwin32 ⚠ suspicious
62
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install health-to-openclaw
功能描述
Sync Apple Health data from iPhone to OpenClaw. One QR code scan — no manual setup. Works on Mac, Linux, and VPS.
使用说明 (SKILL.md)

Apple Health Sync

Companion iOS app: Health Sync for OpenClaw — install from the App Store or sideload the IPA.


Setup (first time)

When the user asks to set up, connect their iPhone, or pair their phone, run:

python3 {baseDir}/scripts/setup.py

This script:

  1. Reads your OpenClaw gateway token automatically
  2. Detects your machine's accessible IP (LAN or public)
  3. Starts the gateway in LAN mode if needed
  4. Prints a QR code in the terminal

Tell the user:

打开 Health Sync for OpenClaw App,点击「扫码自动配置」,扫描上方的 QR 码即可完成配置。

After scanning, the app is fully configured — no manual URL or token entry needed.

If the QR code is too big for the terminal

The script also prints the raw JSON. Tell the user they can manually enter it, or run with --compact for a smaller QR:

python3 {baseDir}/scripts/setup.py --compact

If OpenClaw is on a VPS / remote server

The script auto-detects VPS vs local and picks the right IP automatically.

If the detected IP is wrong, or you have a domain name, pass it explicitly:

python3 {baseDir}/scripts/setup.py --host \x3Cyour-public-ip-or-domain>

The script will also check if port 18789 is reachable and print firewall instructions if not:

# Linux iptables
sudo iptables -A INPUT -p tcp --dport 18789 -j ACCEPT

# Ubuntu ufw
sudo ufw allow 18789/tcp

# Oracle Cloud: Console → VCN → Security List → Add Ingress Rule TCP 18789

Auto-trigger: incoming health data

Activate automatically when a message starts with 🍎 Apple Health 数据更新.

Do NOT ask for confirmation — just ingest and acknowledge in one line.

python3 {baseDir}/scripts/ingest.py \x3C\x3C 'EOF'
[paste full message here]
EOF

Reply format (one line only):

✅ 已存储 N 条 [类型] 数据(时间)


User health queries

Activate when the user asks about steps, heart rate, sleep, weight, HRV, calories, workouts, SpO2, etc.

# Specific type
python3 {baseDir}/scripts/query.py --type stepCount --period today

# Summary
python3 {baseDir}/scripts/query.py --summary --period week

# Database status
python3 {baseDir}/scripts/query.py --status

Type mappings:

用户说 --type
步数/步 stepCount
心率 heartRate
HRV heartRateVariabilitySDNN
血氧 oxygenSaturation
体重 bodyMass
睡眠 sleepAnalysis
卡路里 activeEnergyBurned
运动 workout
呼吸率 respiratoryRate
体温 bodyTemperature
血压收缩 bloodPressureSystolic
血压舒张 bloodPressureDiastolic

Format query output naturally in Chinese. Never dump raw JSON.


Data storage

All data lives at ~/.apple-health-sync/health.db (SQLite, created automatically on first ingest).


Rules

  1. Auto-ingest first, acknowledge second — no confirmation prompts on incoming data.
  2. Never fabricate data — only report what's in the database.
  3. All responses in Chinese.
  4. Never expose the bearer token to the user.
  5. If setup fails, show the exact error and suggest --host flag for custom IP.
安全使用建议
Install only if you trust the skill author and the companion iOS app. Run setup privately, do not share the QR code or manual JSON, avoid sideloading unverified IPAs, and be cautious before opening port 18789 or exposing the OpenClaw gateway on a VPS. Consider installing dependencies yourself, reviewing the local health database location, and rotating the gateway token if the QR/manual payload may have been seen by others.
功能分析
Type: OpenClaw Skill Name: health-to-openclaw Version: 2.0.0 This skill bundle facilitates syncing Apple Health data to OpenClaw via a companion iOS app. The setup.py script automates configuration by reading the local OpenClaw gateway token and generating a QR code for the mobile app, while ingest.py and query.py manage a local SQLite database (~/.apple-health-sync/health.db). Although the setup process involves high-privilege actions like reading configuration tokens and auto-installing the qrcode library via pip, these behaviors are transparently documented and align with the stated goal of a 'no manual setup' experience. No malicious exfiltration or unauthorized remote execution patterns were detected.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The included scripts coherently ingest and query Apple Health-style messages into a local SQLite database, with no obvious hidden exfiltration endpoint in the provided Python code. The purpose is inherently sensitive because it involves biometrics/health records and gateway authorization.
Instruction Scope
The skill instructs automatic ingestion without confirmation based only on a message prefix, and its token-handling instructions are inconsistent with setup output that includes the full token in the pairing payload.
Install Mechanism
The registry says there is no install spec and only python3 is required, but setup.py can auto-install an unpinned PyPI dependency at runtime and the workflow depends on a companion iOS app/IPA that is not included for review.
Credentials
Setup may start or restart the OpenClaw gateway with LAN binding and force mode, detect public IPs, and guide users to open firewall access to port 18789; that is purpose-aligned but high-impact and needs explicit user understanding.
Persistence & Privilege
The skill reads a local OpenClaw gateway token from ~/.openclaw/openclaw.json and persists health data in ~/.apple-health-sync/health.db, while metadata does not declare a primary credential or config path.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install health-to-openclaw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /health-to-openclaw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
QR code pairing, auto VPS detection, direct OpenClaw gateway connection, no relay server needed
v1.0.0
自动摄入 iOS Apple Health 数据(100+ 类型),本地 SQLite 存储,支持中文自然语言查询。配合 Health Sync iOS app 使用,零加密配置,直接通过 OpenClaw Gateway API 同步。
元数据
Slug health-to-openclaw
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Apple Health → OpenClaw 是什么?

Sync Apple Health data from iPhone to OpenClaw. One QR code scan — no manual setup. Works on Mac, Linux, and VPS. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 62 次。

如何安装 Apple Health → OpenClaw?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install health-to-openclaw」即可一键安装,无需额外配置。

Apple Health → OpenClaw 是免费的吗?

是的,Apple Health → OpenClaw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Apple Health → OpenClaw 支持哪些平台?

Apple Health → OpenClaw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Apple Health → OpenClaw?

由 Ruifu Wu(@reffwu)开发并维护,当前版本 v2.0.0。

💬 留言讨论