返回顶部
a

apple-health-query苹果健康查询

Use this skill when the user asks for Apple Health summaries, trends, alerts, or check-ins from the local collector. Validate collector connectivity over HTTP and fetch fresh data with shell commands before giving coaching-style guidance.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
69
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

apple-health-query

Apple Health Query Skill

Use this skill to analyze Apple Health data already synced into local SQLite by the collector.

Tools to use

  • - Shell tool: run scripts/query_health.py to pull fresh JSON data.
  • HTTP tool: optionally verify collector availability with /healthz before troubleshooting missing data.

Workflow

  1. 1. (Optional health check) Verify collector is reachable when user reports stale/missing data:
- curl -fsS http://<collector-host>:8443/healthz - if TLS is enabled: curl -fsS https://<collector-host>:8443/healthz
  1. 2. Query the local database via shell (preferred default):
- python scripts/query_health.py --window-hours 24 --sleep-nights 7 --types heart_rate,glucose,sleep_stage
  1. 3. Adjust parameters to user intent:
- Short check-in: --window-hours 1 - Daily review: --window-hours 24 --sleep-nights 7 - Alert follow-up: keep --types narrow to requested metrics.
  1. 4. Summarize with numbers and timestamps, then give practical next steps.
  2. Always include safety framing: informational only, not medical advice; suggest clinician contact for extreme/persistent readings.

Output expectations

Base your answer on the returned JSON fields:

  • - generated_at, user_id, INLINECODE10
  • INLINECODE11 entries with INLINECODE12
  • INLINECODE13 entries with INLINECODE14

Response style guardrails

  • - Cite the exact time window used (for example: “last 24 hours” and “last 7 nights”).
  • Highlight notable thresholds carefully (e.g., glucose outside typical 70–180 mg/dL range).
  • Tie suggestions to observed values; avoid generic advice.
  • Never hardcode user IDs or DB paths—scripts/query_health.py already reads .env.

Live Heart Rate

The collector stores real-time BLE heart rate events from Wahoo HR straps (and compatible sensors) in the live_events table. Use this for workout monitoring, recent-activity check-ins, or comparing live readings against resting baseline.

Tools to use

  • - Shell tool: run scripts/query_live_hr.py to pull live HR events and per-session summaries.

Workflow

  1. 1. Query recent live HR events (default: last 60 minutes):
- python scripts/query_live_hr.py --window-minutes 60
  1. 2. Narrow to the last workout or a specific timeframe:
- python scripts/query_live_hr.py --window-minutes 120
  1. 3. Filter to a specific session (use a session UUID from a previous query):
- python scripts/query_live_hr.py --session-id <uuid> --window-minutes 180
  1. 4. Filter to a specific device (useful when multiple sensors are paired):
- INLINECODE22

Output fields

Base your answer on the returned JSON:

  • - summary — aggregate stats for the queried window:
- count — total event count - latest_bpm, min_bpm, max_bpm, avg_bpm, median_bpm, stddev_bpm - latest_zone — heart rate zone: resting (<60), normal (60–99), elevated (100–139), high (≥140)
  • - sessions[] — per-session breakdown with session_id, event_count, start_ts, end_ts, device_name, avg_bpm, min_bpm, INLINECODE44
  • INLINECODE45 — individual readings with ts, value (BPM), session_id, seq, device_id, INLINECODE51

Guidance

  • - Workout summary: report avg_bpm, max_bpm, and duration (start_tsend_ts of the session).
  • Zone coaching: map latest_zone to practical advice (e.g., elevated zone during recovery warrants attention).
  • Unusual readings: flag sustained HR >150 or <40 bpm; recommend clinician contact if persistent.
  • Data freshness: if count is 0, the sensor may not be paired or the session may not have started — advise the user to open the Live HR screen on their iPhone.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 apple-health-skills-1775928853 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 apple-health-skills-1775928853 技能

通过命令行安装

skillhub install apple-health-skills-1775928853

下载

⬇ 下载 apple-health-query v1.0.0(免费)

文件大小: 11.6 KB | 发布时间: 2026-4-12 09:01

v1.0.0 最新 2026-4-12 09:01
apple-health-query skill v1.0.0

- Initial release with support for querying Apple Health data collected locally via shell and HTTP tools.
- Summarizes key health metrics (heart rate, glucose, sleep) from recent time windows, with coaching-style guidance and safety framing.
- Provides special workflows and summaries for live Bluetooth heart rate data, including workout and recovery monitoring.
- Clear output guardrails to ensure contextualized, user-specific advice, always emphasizing non-medical guidance and clinician contact for extreme/persistent values.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部