← 返回
未分类 中文

apple-health-skills

Use this skill when the user asks for Apple Health summaries, trends, alerts, or check-ins from the local collector. Validate collector connectivity over HTT...
当用户请求 Apple Health 摘要、趋势、提醒或本地收集器的签到时使用此技能。验证收集器在 HTTP 上的连通性。
ajde0606
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 283
下载
💾 0
安装
1
版本
#latest

概述

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. (Optional health check) Verify collector is reachable when user reports stale/missing data:
    • curl -fsS http://:8443/healthz
    • if TLS is enabled: curl -fsS https://:8443/healthz
  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
  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.
  4. Summarize with numbers and timestamps, then give practical next steps.
  5. 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, window_hours
  • quantity.[] entries with {ts, value, unit, source, device}
  • sleep[] entries with {start_ts, end_ts, category, source, device}

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

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, max_bpm
  • events[] — individual readings with ts, value (BPM), session_id, seq, device_id, source_device_name

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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 21:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,137
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,764
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,690