Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Google Health

БесплатноБез исполняемых скриптовНе проверен

Read your Google Health data from any agent: data points for every Google Health data type (heart rate, sleep, steps, distance, weight, blood oxygen, VO2 max…

stozo04от stozo041 238 установок в других каталогах

Об этом скилле

Google Health — read-only data extractor

Read your Google Health data from any agent. This is a generic, read-only client for the Google Health v4 API: it authenticates, pulls data points for any data type, and prints JSON. The raw commands (data list, rollup daily, sessions --raw, api get) return every record the API sends for the time window you request (applied server-side), with no filtering, merging, or interpretation; the parsed sessions view leaves out points it can't date and says so on stderr. You get the data and parse whatever you care about. Single static binary — no Python or other runtime.

⚠️ Read-only. It requests only read-only Google Health scopes and never writes your health data. Locally, it writes only its own OAuth token cache (at auth login and on auto-refresh) and deletes it on auth logout.

🔒 Privacy — sensitive health data leaves on stdout. Every data list, rollup daily, sessions, and api get prints your personal health information (heart rate, sleep, weight, exercise, blood oxygen, profile, …) to stdout as JSON. In an agent or pipeline, stdout may be logged, summarized, persisted, or transmitted to other tools, model providers, or third parties. Treat this output as sensitive PII: only run it in contexts you trust to handle health data, and do not persist or forward it unless you intend to. The tool never sends your data anywhere itself (it only talks to Google's API over HTTPS) — what happens to stdout is the caller's responsibility. Every data-emitting command also prints a one-line privacy notice to stderr at run time as an execution-time reminder (it stays on stderr, never on the JSON stdout).

🧭 Data minimization & consent. Request only the data types and the narrowest time window you actually need (--days/--date/--from/--to, not --all); prefer the typed data/rollup/sessions commands over api get; and don't persist or forward the output beyond the task at hand. Run this only against an account whose owner has knowingly consented to having their health data read by this agent — the one-time auth login is the owner consenting to read-only access for the tool, not consent for a downstream agent to collect, retain, or transmit that data more broadly.

🩺 doctor prints local environment metadata. The doctor JSON includes your token-cache and config file paths, the configured account (user), and the API base URL — local filesystem layout and account identifiers rather than health data, but still local environment metadata that an agent or pipeline may log, forward, or persist. It exists to diagnose your own setup; treat its output like any other local path/account detail and don't paste it into untrusted contexts.

Setup (one time)

Unlike a simple email/password tool, Google Health uses OAuth, so first-time setup needs a human in a browser once. After that it runs headless (the token auto-refreshes).

  1. Install the binary:
    # A) Download a release for your OS/arch and put it on PATH:
    #    https://github.com/stozo04/google-health-cli/releases
    # B) Or with Go (1.26+):
    go install github.com/stozo04/google-health-cli/cmd/google-health-cli@latest
    
  2. Create a Google Cloud OAuth client (Desktop app, read-only Health scopes, ~10 min, no fees). Full walkthrough: the repo's OAUTH_SETUP.md.
  3. Provide the client via GOOGLE_HEALTH_CLIENT_ID / GOOGLE_HEALTH_CLIENT_SECRET (or a config.json with those keys in the working directory).
  4. Authorize once (opens a browser, asks a human to consent to read-only access):
    google-health-cli auth login
    google-health-cli doctor        # expect "tokenValid": true
    
    The token is cached 0600 and auto-refreshed; every later run is headless.

Credentials

Variable Required Notes
GOOGLE_HEALTH_CLIENT_ID ✓ OAuth client ID (Desktop app)
GOOGLE_HEALTH_CLIENT_SECRET ✓ OAuth client secret
GOOGLE_HEALTH_CONFIG — Path to a config.json holding the above instead
GOOGLE_HEALTH_TOKEN_CACHE — Override the cached-token path
GOOGLE_HEALTH_BASE_URL — API base URL; only https://health.googleapis.com is accepted

config.json (gitignored) is an alternative to the env vars:

{
  "client_id": "PASTE_CLIENT_ID",
  "client_secret": "PASTE_CLIENT_SECRET"
}

🔑 Protect your credentials. The OAuth client_id/client_secret and the cached token are sensitive secrets stored on disk in plaintext. The CLI writes token.json owner-only (0600); it never creates config.json, so restrict that file yourself (chmod 600 config.json). Both are gitignored — keep it that way: never commit them, copy them into a shared folder, back them up to an untrusted location, or paste them into logs or chat. Rotate the

Полный SKILL.md на ClawHub

Установить Google Health в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Google Health?

Read your Google Health data from any agent: data points for every Google Health data type (heart rate, sleep, steps, distance, weight, blood oxygen, VO2 max, exercise and more), server-side daily roll-ups, a parsed view of exercise sessions, and GET of any read-only v4 API path, all as JSON. `data list`, `rollup daily`, `sessions --raw` and `api get` return every record the API sends for the window you ask for, unfiltered; the parsed `sessions` view leaves out points it can't date and reports how many on stderr. It never writes to Google Health; the only file it writes is its own local OAuth token cache. Also ships auth login/logout/status, doctor, config show/path, version and shell completion. Single static Go binary. Needs your own Google Cloud OAuth client and a one-time browser login; runs headless afterward.

Как установить скилл Google Health?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Google Health запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Google Health с