Xpersona
C

ClawHealth Garmin

CLAWHUB · Unverified

Lightweight Garmin Connect skill that uses the clawhealth Python package to sync health data into local SQLite and expose JSON-friendly commands for OpenClaw.

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17c28xz5g5xyfsd33j7eap9ts83fzj2:clawhealth-garmin
  1. Install using `clawhub skill install s17c28xz5g5xyfsd33j7eap9ts83fzj2:clawhealth-garmin` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/ernestyu/clawhealth-garmin before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ernestyu-clawhealth-garmin/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

148,074 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: clawhealth-garmin
description: Lightweight Garmin Connect skill that uses the clawhealth Python package to sync health data into local SQLite and expose JSON-friendly commands for OpenClaw.
version: 0.1.8
metadata: {"openclaw":{"homepage":"https://github.com/ernestyu/clawhealth","tags":["health","garmin","sqlite","cli"],"requires":{"bins":["python3"],"anyBins":["python"],"env":["CLAWHEALTH_GARMIN_USERNAME","CLAWHEALTH_GARMIN_PASSWORD_FILE","CLAWHEALTH_DB","CLAWHEALTH_CONFIG_DIR"],"primaryEnv":"CLAWHEALTH_GARMIN_PASSWORD_FILE"},"install":[{"id":"clawhealth_pip","kind":"shell","label":"Install clawhealth from PyPI into a local .venv","script":"set -e && cd {baseDir} && python bootstrap_deps.py"}]}}
---

# clawhealth-garmin (OpenClaw Skill)

Sync your Garmin Connect health data into a local SQLite database
and expose it as structured JSON for OpenClaw agents.

Your agent can then query things like:

- "How did I sleep yesterday?"
- "What is my HRV trend this week?"
- "Am I overtraining?"

This is a **thin wrapper skill** around the published `clawhealth`
Python package / CLI; it no longer fetches source code itself.

## What It Does

- Login with username/password (MFA supported)
- Sync daily health summaries into SQLite (stage 1)
- Fetch HRV + training metrics via separate commands (stage 2)
- Fetch sleep stages + sleep score (stage 2)
- Fetch body composition (stage 2)
- Fetch activity lists and full activity details (stage 2)
- Fetch menstrual day view and calendar range if supported by garminconnect (experimental)
- Provide `--json` outputs for agent workflows
- Persist raw JSON payloads for later analysis

## Prerequisites

- Python 3.10+
- Network access to Garmin Connect
- Garmin account (may require MFA)

If you run OpenClaw in Docker, you may prefer a prepatched image that already
includes the required Python dependencies:

- `ernestyu/openclaw-patched`

## Setup

1) Create `{baseDir}/.env` (see `{baseDir}/ENV_EXAMPLE.md`).

Recommended: use `CLAWHEALTH_GARMIN_PASSWORD_FILE` (password file) rather than
`CLAWHEALTH_GARMIN_PASSWORD` (plaintext env var).

Note: relative paths in env vars (like `./garmin_pass.txt`) are resolved relative
to the skill directory by `run_clawhealth.py`.

2) Install the `clawhealth` package into a local `.venv` (if needed):

```bash
python {baseDir}/bootstrap_deps.py
```

3) Run the skill entrypoint via OpenClaw, which will invoke `run_clawhealth.py`.

See `README.md` / `README_zh.md` in this directory and the root repo for
more details.

README.md

# clawhealth-garmin

Sync Garmin Connect health data into a local SQLite database and expose it as JSON for OpenClaw / AI agents.

---

## TL;DR

- Pull health data from Garmin → store it in local SQLite
- Expose JSON commands → usable by OpenClaw / AI agents
- Install via ClawHub
- The main thing users need to do is complete Garmin login setup

---

## What is this?

`clawhealth-garmin` is an OpenClaw skill that turns your Garmin health data into:

- queryable data (SQLite)
- callable JSON interfaces
- context that AI agents can use

For example, your agent can answer questions like:

- “How did I sleep yesterday?”
- “What is my HRV trend this week?”
- “Am I overtraining?”

---

## Key Features

- Garmin login with MFA support
- Daily health data sync into SQLite
- HRV / sleep / training metrics / body composition
- Activity data (list + details)
- JSON output for agent / automation workflows
- Raw data persistence for later analysis

---

## Installation (ClawHub)

Install this skill inside your OpenClaw environment:

```bash
clawhub install clawhealth-garmin
````

After installation, the skill is copied into your workspace and will be loaded automatically in a new OpenClaw session.

---

## How this skill works

This is a **thin wrapper skill**:

* it does not include the full `clawhealth` source code
* it fetches the required `src/clawhealth` from GitHub at runtime
* it may install Python dependencies when needed

Why this design:

* keep the skill package small
* keep the main source code in the main repository
* separate skill publishing from source iteration

---

## Before first use: Garmin login setup

After ClawHub installation, the main thing the user still needs to do is:

1. configure Garmin username
2. configure Garmin password or password file
3. complete one MFA login flow

---

## Recommended setup: password file

It is recommended to use a password file instead of storing the password directly in an environment variable.

Create `.env` in the skill directory:

```text
CLAWHEALTH_GARMIN_USERNAME=you@example.com
CLAWHEALTH_GARMIN_PASSWORD_FILE=./garmin_pass.txt
```

Then create the password file:

```bash
echo "YOUR_PASSWORD" > garmin_pass.txt
chmod 600 garmin_pass.txt
```

Notes:

* `CLAWHEALTH_GARMIN_PASSWORD_FILE` is the recommended option
* plaintext password env vars are supported, but not recommended
* relative paths are resolved relative to the skill directory

If you really want to use plaintext env vars, you can also use:

```text
CLAWHEALTH_GARMIN_USERNAME=you@example.com
CLAWHEALTH_GARMIN_PASSWORD=YOUR_PASSWORD
```

but this is not the preferred setup.

---

## How should Docker users configure it?

If your OpenClaw is running inside Docker, you can create `.env` and the password file inside the container.

Example:

```bash
docker exec -it openclaw bash -c '
cd ~/.openclaw/workspace/skills/clawhealth-garmin &&
printf "CLAWHEALTH_GARMIN_USERNAME=you@example.com\nCLAWHEALTH_GARMIN_PASSWORD_FILE=./garmin_pass.txt\n" > .en

_meta.json

{
  "ownerId": "kn7f439esjxya9bqqh2ywkgk8h832dfx",
  "slug": "clawhealth-garmin",
  "version": "0.1.8",
  "publishedAt": 1775639342661
}

PUBLISH.md

# Release Checklist

## 0. Confirm manifest.yaml

This skill is distributed with a manifest for ClawHub publishing.
Update version and metadata before release:

```bash
type {baseDir}/manifest.yaml
```

## 0.1 Verify source fetch (optional)
```bash
python {baseDir}/fetch_src.py --help
```

## 1. Prerequisites
- OpenClaw installed
- Python 3.10+
- Optional: network access to install Python deps (unless using a prepatched image)

## 2. Validate
```bash
python {baseDir}/validate_skill.py
```

## 3. Minimal Tests
```bash
python {baseDir}/test_minimal.py
```

## 4. Optional Integration Test (real account)
```bash
python {baseDir}/test_integration_optional.py
```

## 5. Bootstrap Dependencies (if needed)
```bash
python {baseDir}/bootstrap_deps.py
```

## 6. Release Notes
Use `RELEASE_TEMPLATE.md` at repo root.

## 7. Optional: Package the skill folder
If you want a single artifact for distribution, zip this folder (`{baseDir}/`) and share the zip.

README_zh.md

# clawhealth-garmin

将 Garmin Connect 健康数据同步到本地 SQLite,并以 JSON 接口提供给 OpenClaw / AI Agent 使用。

---

## TL;DR

- 从 Garmin 拉取健康数据 → 存入本地 SQLite
- 提供 JSON 命令 → 可被 OpenClaw / AI Agent 调用
- 通过 ClawHub 安装后即可使用
- 首次使用时,重点是完成 Garmin 登录配置

---

## 这是什么?

`clawhealth-garmin` 是一个 OpenClaw skill,用于把你的 Garmin 健康数据转化为:

- 可查询的数据(SQLite)
- 可调用的 JSON 接口
- 可被 AI Agent 使用的上下文

例如,你的 Agent 可以问:

- “我昨天睡得怎么样?”
- “最近一周 HRV 有什么趋势?”
- “我是不是训练过度了?”

---

## 核心能力

- Garmin 登录(支持 MFA)
- 每日健康数据同步(SQLite)
- HRV / 睡眠 / 训练指标 / 体成分
- 活动数据(列表 + 详情)
- JSON 输出(适合 Agent / 自动化)
- 原始数据持久化(便于后续分析)

---

## 安装方式(ClawHub)

在 OpenClaw 环境中安装本 skill:

```bash
clawhub install clawhealth-garmin
````

安装后,skill 会被下载到你的 workspace,新的 OpenClaw 会话会自动加载它。

---

## 这类 skill 的工作方式

这是一个 **轻量封装(thin wrapper)**:

* 不包含完整 `clawhealth` 源码
* 运行时会从 GitHub 拉取所需的 `src/clawhealth`
* 依赖缺失时,可能按需自动安装

这样设计的目的:

* 保持 skill 体积小
* 把主源码集中放在主仓库维护
* 让 skill 发布和源码迭代分离

---

## 首次使用前:先完成 Garmin 登录配置

ClawHub 安装完成后,真正需要用户处理的重点是:

1. 配置 Garmin 用户名
2. 配置 Garmin 密码或密码文件
3. 完成一次 MFA 登录

---

## 推荐配置方式:密码文件

推荐使用密码文件,而不是把密码直接写在环境变量里。

在 skill 目录下创建 `.env`:

```text
CLAWHEALTH_GARMIN_USERNAME=you@example.com
CLAWHEALTH_GARMIN_PASSWORD_FILE=./garmin_pass.txt
```

然后创建密码文件:

```bash
echo "YOUR_PASSWORD" > garmin_pass.txt
chmod 600 garmin_pass.txt
```

说明:

* 推荐使用 `CLAWHEALTH_GARMIN_PASSWORD_FILE`
* 不建议把密码直接写进明文环境变量
* 相对路径会自动按 skill 目录解析

如果你确实想直接写环境变量,也可以使用:

```text
CLAWHEALTH_GARMIN_USERNAME=you@example.com
CLAWHEALTH_GARMIN_PASSWORD=YOUR_PASSWORD
```

但这不是推荐方式。

---

## Docker 用户怎么配置?

如果你的 OpenClaw 跑在 Docker 里,可以直接在容器内写入 `.env` 和密码文件。

示例:

```bash
docker exec -it openclaw bash -c '
cd ~/.openclaw/workspace/skills/clawhealth-garmin &&
printf "CLAWHEALTH_GARMIN_USERNAME=you@example.com\nCLAWHEALTH_GARMIN_PASSWORD_FILE=./garmin_pass.txt\n" > .env &&
printf "YOUR_PASSWORD" > garmin_pass.txt &&
chmod 600 .env garmin_pass.txt &&
echo "配置完成,请回到聊天界面触发登录。"
'
```

如果你的容器名字不是 `openclaw`,请替换成你自己的容器名。

---

## Garmin 登录流程(MFA)

### 第一步:触发登录

```bash
python {baseDir}/run_clawhealth.py garmin login --username you@example.com --json
```

如果返回 `NEED_MFA`,这是正常行为,表示需要继续第二步。

### 第二步:输入验证码

```bash
python {baseDir}/run_clawhealth.py garmin login --mfa-code 123456 --json
```

完成后,Garmin 登录态会保存在本地配置目录中。

---

## 开始同步数据

登录完成后,可以同步一段时间内的数据:

```bash
python {baseDir}/run_clawhealth.py garmin sync --since 2026-03-01 --until 2026-03-03 --json
```

查询某一天的汇总:

```bash
python {baseDir}/run_clawhealth.py daily-summary --date 2026-03-03 --json
```

---

## 常用命令

### 每日摘要

```bash
python {baseDir}/run_clawhealth.py daily-summary --date 2026-03-03 --json
```

### HRV

```bash
python {baseDir}/run_clawhealth.py garmin hrv-dump --date 2026-03-03 --json
```

### 睡眠分期与睡眠评分

```bash
python {baseDir}/run_clawhealth.py garmin sleep-dump --date 2026-03-03 --json
```

### 训练指标

```bash
python {baseDir}/run_clawhealth.py garmin training-metrics --json
```

### 体成分

```bash
python {baseDir}/run_clawhealth.py garmin body-composition --date 2026-03-03 --json
```

### 

Sponsored

Ads related to ClawHealth Garmin and adjacent AI workflows.