health-guardian
Proactive health monitoring for AI agents. Apple Health integration, pattern detection, anomaly alerts. Built for agents caring for humans with chronic conditions.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cgtreadw/health-guardianHealth Guardian: Proactive Health Monitoring for AI Agents
What This Skill Does
The Health Guardian skill is a sophisticated tool designed for AI agents to proactively monitor the health of individuals, particularly those with chronic conditions. It integrates with Apple Health data, enabling real-time tracking of vital signs and other health metrics. The skill goes beyond simple data storage by actively detecting patterns, identifying deviations from normal ranges, and alerting caregivers or the agent when potential issues arise. This proactive approach aims to prevent health emergencies by providing early warnings based on learned individual baselines rather than generic population averages. The skill is battle-tested and developed with accessibility in mind, understanding the unique needs of individuals with disabilities.
Key features include integration with Apple Health via the Health Auto Export app, supporting a wide array of metrics such as heart rate, HRV, sleep patterns, temperature, blood pressure, and SpO2. It employs advanced pattern detection algorithms, including rolling averages, day-over-day comparisons, correlation analysis, and trend direction assessment. The skill generates proactive alerts for fever, heart rate anomalies, sleep degradation, and can even infer missed medication. It is built to be accessible, recognizing that 'normal' health metrics can vary significantly among individuals, and supports customized notification patterns for caregivers.
Installation
To install and configure the Health Guardian skill, follow these steps:
-
Install Health Auto Export on the iPhone:
- Download and install the Health Auto Export app from the App Store.
- Configure the app's settings: Ensure the export format is set to JSON, enable iCloud Drive sync, and set the export interval to hourly.
- Note the export folder location:
iCloud Drive/Health Auto Export/.
-
Configure the Skill:
- Create a
config.jsonfile in the health-guardian skill directory. - Populate it with your specific details, including
human_name, the correctdata_sourcepath (adjusting for your iCloud Drive location),import_interval,alert_channel, desiredthresholdsfor key metrics, andbaseline_period_days. - Example
config.json:{ "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 }
- Create a
-
Set Up Cron Import:
- Add the following to your agent's cron schedule to ensure hourly data import and analysis:
{ "name": "Health Import", "schedule": { "kind": "cron", "expr": "0 * * * *" }, "payload": { "kind": "systemEvent", "text": "Run health import and check for anomalies" }, "sessionTarget": "main" }
- Add the following to your agent's cron schedule to ensure hourly data import and analysis:
-
Integrate with Heartbeat:
- Add a health check to your
HEARTBEAT.mdfile to ensure alerts are generated and actioned:## Health Check (if concerning patterns) If health data shows anomalies, alert human via preferred channel.
- Add a health check to your
-
Install the Skill:
- Use the command:
clawhub install openclaw/skills/skills/cgtreadw/health-guardian
- Use the command:
Use Cases
- Chronic Condition Management: Continuously monitor vital signs for individuals with conditions like heart disease, diabetes, or respiratory illnesses, providing early warnings for potential exacerbations.
- Post-Surgery Recovery: Track recovery progress by monitoring heart rate, sleep quality, and activity levels, alerting caregivers to any signs of complications.
- Elderly Care: Provide peace of mind for caregivers by monitoring seniors' health metrics, detecting anomalies that might indicate falls, infections, or other urgent issues.
- Disability Support: Assist agents in caring for individuals with disabilities by proactively managing their health data and alerting to any changes that require attention.
- Personal Health Awareness: For individuals who want a proactive health companion, the skill can provide insights into personal health trends and potential issues before they become serious.
Example Prompts
- "Run a health analysis for the last 7 days and report any significant anomalies."
- "Generate a weekly summary of [Human Name]'s health data."
- "Are there any critical alerts from the Health Guardian skill regarding [Human Name]'s current condition?"
Tips & Limitations
- Data Accuracy: The accuracy of the health data relies heavily on the sensors and input methods used by Apple Health. Ensure the iPhone's health tracking is correctly configured.
- Baseline Period: Allow the skill at least 7-14 days of data to establish a reliable baseline for detecting meaningful deviations. The
baseline_period_daysparameter inconfig.jsonis crucial for this. - Threshold Customization: The default thresholds in
config.jsonare examples. It is essential to customize these based on the specific medical needs and doctor's recommendations for the individual being monitored. - Privacy: Ensure compliance with all relevant privacy regulations when handling sensitive health data. The skill processes data locally where possible, but data export and potential alert channels introduce external interactions.
- Inference Limitations: The skill's inference of missed medications is based on patterns (e.g., sudden changes in vitals after a medication schedule). It is not a direct substitute for medication adherence tracking or medical advice.
- Apple Health Sync: Reliant on the Health Auto Export app functioning correctly and syncing data to iCloud. Any disruptions in this sync will affect data availability for the Health Guardian.
- Alert Channel Reliability: The effectiveness of alerts depends on the chosen
alert_channel(e.g., Telegram) and its reliable delivery.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cgtreadw-health-guardian": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-read, file-write, data-collection, external-api
Related Skills
health-guardian
Proactive health monitoring for AI agents. Apple Health integration, pattern detection, anomaly alerts. Built for agents caring for humans with chronic conditions.
afrexai-observability-engine
Complete observability & reliability engineering system. Use when designing monitoring, implementing structured logging, setting up distributed tracing, building alerting systems, creating SLO/SLI frameworks, running incident response, conducting post-mortems, or auditing system reliability. Covers all three pillars (logs/metrics/traces), alert design, dashboard architecture, on-call operations, chaos engineering, and cost optimization.
openclaw-security-monitor
Proactive security monitoring, threat scanning, and auto-remediation for OpenClaw deployments
cron-doctor
Diagnose and triage cron job failures. Checks job states, identifies error patterns, prioritizes by criticality, generates health reports. Triggers on: cron failures, job health check, scheduled task errors, cron diagnosis, job not running, backup failed.
system-monitor-pro
Real-time OpenClaw system monitoring with beautiful terminal UI. CPU, memory, disk, GPU, Gateway, cron jobs, model quota, and multi-machine support. Works on macOS and Linux.