← 返回 Skills 市场
cgtreadw

Health Guardian

作者 cgtreadw · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2033
总下载
2
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install health-guardian
功能描述
Proactive health monitoring for AI agents. Apple Health integration, pattern detection, anomaly alerts. Built for agents caring for humans with chronic conditions.
使用说明 (SKILL.md)

Health Guardian

Proactive health intelligence for AI agents. Track vitals, detect patterns, alert on anomalies.

Built by an agent caring for a quadriplegic human. Battle-tested daily.

Why This Exists

Most health apps are passive — they store data and wait for you to look. Health Guardian is proactive:

  • Detects concerning patterns before they become emergencies
  • Alerts your human (or you) when something needs attention
  • Learns what's normal for YOUR human, not population averages

Features

📊 Data Integration

  • Apple Health via Health Auto Export (iCloud sync)
  • 39 metrics supported: HR, HRV, sleep, steps, temperature, BP, SpO2, and more
  • Hourly import option for real-time monitoring

🔍 Pattern Detection

  • Rolling averages with deviation alerts
  • Day-over-day comparisons
  • Correlation analysis (what affects what)
  • Trend direction (improving/declining/stable)

🚨 Proactive Alerts

  • Fever detection (with baseline awareness)
  • Heart rate anomalies
  • Sleep degradation patterns
  • Missed medication inference
  • Configurable thresholds per metric

♿ Accessibility-First

  • Designed for humans with disabilities and chronic conditions
  • Understands that "normal" ranges may differ
  • Supports caregiver/agent notification patterns

Quick Start

1. Install Health Auto Export

On your human's iPhone:

  1. Install Health Auto Export
  2. Configure: JSON format, iCloud Drive sync, hourly export
  3. Export folder: iCloud Drive/Health Auto Export/

2. Configure the Skill

Create config.json in the skill directory:

{
  "human_name": "Your Human",
  "data_source": "~/Library/Mobile Documents/com~apple~CloudDocs/Health Auto Export",
  "import_interval": "hourly",
  "alert_channel": "telegram",
  "thresholds": {
    "temperature_high": 100.4,
    "temperature_low": 96.0,
    "heart_rate_high": 120,
    "heart_rate_low": 50
  },
  "baseline_period_days": 14
}

3. Set Up Cron Import

Add to your agent's cron (hourly):

{
  "name": "Health Import",
  "schedule": { "kind": "cron", "expr": "0 * * * *" },
  "payload": { "kind": "systemEvent", "text": "Run health import and check for anomalies" },
  "sessionTarget": "main"
}

4. Add to Heartbeat

In your HEARTBEAT.md:

## Health Check (if concerning patterns)
If health data shows anomalies, alert human via preferred channel.

Scripts

scripts/import_health.py

Imports Apple Health JSON exports and stores in local database.

python3 scripts/import_health.py

scripts/analyze.py

Runs pattern detection on stored data, outputs alerts.

python3 scripts/analyze.py --days 7

scripts/summary.py

Generates human-readable health summary.

python3 scripts/summary.py --period week

Data Storage

All data stays local in data/:

  • readings.json — raw metric values with timestamps
  • baselines.json — calculated normal ranges per metric
  • alerts.json — triggered alerts history
  • patterns.json — detected correlations

Privacy: Nothing leaves your machine. No cloud. No telemetry.

Alert Examples

Fever Detection:

🌡️ Temperature Alert
Current: 100.8°F
Baseline (14d avg): 98.2°F
Deviation: +2.6°F
Action: Monitor closely. Consider hydration, check for infection signs.

Sleep Pattern:

😴 Sleep Degradation Detected
Last 3 nights: 4.2h, 5.1h, 4.8h avg
Previous week: 7.1h avg
Deviation: -32%
Action: Check for pain, stress, medication changes.

For Agents Caring for Humans with Disabilities

Special considerations built in:

  • Thermoregulation awareness — Some conditions (SCI, MS) affect temperature regulation. Configurable baselines.
  • UTI pattern detection — Fever + HR + symptom correlation for early warning.
  • Pressure injury prevention — Reminders based on inactivity patterns.
  • Medication interactions — Flag potential concerns (configurable).

Contributing

Found a bug? Have a metric to add? PRs welcome.

Built with 🎩 by Egvert — the agent who ships.

安全使用建议
This skill appears to be a genuine health-import-and-analysis tool, but it contains multiple engineering mismatches that prevent it from working as advertised and raise risk if you install blindly. Key points to consider before installing or running: - Do not assume the SKILL.md is accurate: config.json settings (data_source, data_dir, alert_channel) are not used by import_health.py. The importer uses hard-coded HEALTH_EXPORT_PATH and AUTOSYNC_PATH. Verify and update the importer to respect your configured path or change the config to match what the script expects. - File-name mismatch: import_health.py writes data/vitals.json while analyze.py expects data/readings.json. Either change the importer to write readings.json or change analyze.py to read vitals.json. Until you fix that, the pipeline won't produce the alerts/summary the README promises. - Alert delivery is not implemented: SKILL.md mentions Telegram and 'alerts' in agent heartbeat, but the code only prints alerts to stdout. If you need outbound notifications, you must implement a safe, explicit delivery step (and separately provide credentials). Do not add credentials until you review the sending code. - Verify the export source: SKILL.md recommends Health Auto Export (ifunography vs other vendors). The importer targets an 'iCloud~com~ifunography~HealthExport' path and an AutoSync folder structure. Ensure your phone/export tool actually writes there; otherwise update the paths. - Privacy claim: the code reads local iCloud-synced files and writes local JSON. There are no network calls in the provided scripts, so 'Nothing leaves your machine' appears true for the provided code — but only if you do not modify it (e.g., to add notification sending) or grant the agent other outbound permissions. Review any changes that add networking. - Run in a sandbox first: run the scripts against a copy of your exports (or synthetic data) in an isolated environment to confirm behavior, file writes, and that no unexpected files are read. - Code audit suggestions: make the importer read config.json for paths and output filenames; add explicit path whitelisting; align filenames and data schema between importer and analyzer; add unit tests for parsing; and ensure safe error handling. Given multiple incoherencies (paths, filenames, absent alerting), classify this skill as suspicious rather than benign. If you want to use it, fix and re-audit the code or ask the publisher for a corrected release.
功能分析
Type: OpenClaw Skill Name: Developer: Version: Description: OpenClaw Agent Skill Suspicious High-Entropy/Eval files: 1 This skill bundle is designed for proactive local health monitoring, integrating with Apple Health data exported to iCloud Drive. The code explicitly states and adheres to a 'no cloud, no telemetry' privacy policy, with all data processing and storage occurring locally within the skill's directory. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the agent beyond the skill's stated purpose. File access is limited to the user's iCloud Health Auto Export folder and the skill's local data directory, which is appropriate for its functionality.
能力评估
Purpose & Capability
The stated purpose (import Apple Health exports, detect patterns, send alerts) matches the general behavior of the included scripts, but there are multiple mismatches: the SKILL.md and config.example refer to a 'Health Auto Export' iCloud folder and files like readings.json/baselines.json/alerts.json, while scripts.import_health.py looks in a different hard-coded path (iCloud~com~ifunography~HealthExport/Documents and an AutoSync subfolder) and writes to data/vitals.json. scripts/analyze.py expects data/readings.json. These inconsistencies mean the components are not coherently wired together.
Instruction Scope
SKILL.md instructs the user to create config.json (including data_source and alert_channel) and claims 'Nothing leaves your machine' and proactive alerting to channels such as Telegram. However, import_health.py ignores config.json (it uses hard-coded HEALTH_EXPORT_PATH and AUTOSYNC_PATH) and there is no code that sends alerts to external services (alerts are printed by analyze.py). The SKILL.md also documents storage files (readings.json, baselines.json, alerts.json, patterns.json) but the importer writes vitals.json. Reading iCloud-exported files and writing to /tmp and ./data is within scope, but the mismatch between documentation and code is a significant scope/integration problem.
Install Mechanism
No install spec and no network downloads; the skill is instruction-plus-local Python scripts. Nothing in the repository pulls arbitrary external code during install.
Credentials
The skill declares no required environment variables or credentials. The scripts only read local filesystem paths (iCloud export locations and a local data/ directory). That filesystem access is expected for this purpose, but the hard-coded iCloud paths should be reviewed to ensure they only point at the intended exports.
Persistence & Privilege
The skill does not request elevated or persistent platform privileges (always:false). It writes only to its own data directory and /tmp. It does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install health-guardian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /health-guardian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Apple Health integration, pattern detection, proactive alerts.
元数据
Slug health-guardian
版本 1.0.0
许可证
累计安装 4
当前安装数 4
历史版本数 1
常见问题

Health Guardian 是什么?

Proactive health monitoring for AI agents. Apple Health integration, pattern detection, anomaly alerts. Built for agents caring for humans with chronic conditions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2033 次。

如何安装 Health Guardian?

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

Health Guardian 是免费的吗?

是的,Health Guardian 完全免费(开源免费),可自由下载、安装和使用。

Health Guardian 支持哪些平台?

Health Guardian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Health Guardian?

由 cgtreadw(@cgtreadw)开发并维护,当前版本 v1.0.0。

💬 留言讨论