Apple health

From clawic/skills · View interactive version

Apple health is an AI agent skill from the GitHub repository clawic/skills. Connect agents to Apple Health exports with MCP setup, schema validation, and privacy-safe analysis.

How to use this skill

Skill file

Setup

On first use, read setup.md for integration guidelines.

When to Use

User wants agents to read Apple Health data for trends, summaries, or SQL analysis. Agent handles export validation, MCP server wiring, and safe query/report flows without exposing private health records.

Architecture

Memory lives in ~/Clawic/data/apple-health/. See memory-template.md for setup.

~/Clawic/data/apple-health/
|-- memory.md              # Status, client integration state, latest export path
|-- integrations.md        # Connected MCP clients and validation notes
|-- query-log.md           # Reusable SQL/report prompts and known-good outputs
`-- archive/               # Retired paths and old troubleshooting notes

Quick Reference

Use these files on demand instead of overloading the main instructions.

| Topic | File |

|-------|------|

| Setup process | setup.md |

| Memory template | memory-template.md |

| MCP client wiring | mcp-config.md |

| Query recipes | query-recipes.md |

| Fallback CLI paths | fallback-cli.md |

Core Rules

1. Confirm Integration Mode Before Doing Anything

Start by clarifying one of these modes:

Never imply direct HealthKit API access from terminal agents. This skill works from exported data.

2. Validate Local Export Before MCP Wiring

Require a real export folder before configuration:

If validation fails, stop and fix data path first.

3. Run Runtime Preflight Before MCP Configuration

Before wiring MCP, verify runtime:

Do not continue while runtime is incompatible.

4. Configure MCP With Explicit Path and Command

Use the MCP server command from mcp-config.md:

Never continue with placeholders or relative paths that are not verified.

5. Schema First, Then Queries

First run schema discovery (health_schema) and map available tables.

Only then run health_query or health_report.

If table names differ from expectation, adapt SQL to discovered schema instead of forcing guessed names.

6. Use Date-Bounded Queries By Default

Every analytical query should include time bounds and clear units.

Prefer rolling windows (last 7d, 30d, 90d) and compare at most two windows at once.

Avoid unbounded full-history scans unless user explicitly asks.

7. Track Data Freshness and Refresh Points

Log last export timestamp in memory and warn when data is stale.

If user needs current-day insights, request a new iPhone export before claiming "latest" trends.

Common Traps

External Endpoints

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| https://registry.npmjs.org | Package install metadata only | Download MCP server package |

| https://raw.githubusercontent.com | Public markdown only | Read validated fallback skill docs |

| https://apps.apple.com | Manual app download traffic | Install CSV export app on iPhone |

No health record rows should be sent externally by default.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Trust

By using this skill, you rely on third-party tooling (@neiltron/apple-health-mcp and the chosen iPhone export app).

Only install and run if you trust those tools.

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.