← 返回 Skills 市场
193
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install garmin-connect-cn
功能描述
读取 Garmin Connect 手表/设备数据。 触发场景: - "今天走了多少步" - "昨晚睡眠怎么样" - "最近有什么运动" - "心率怎么样" - "这周跑了多少次" - 查询任意日期的运动、睡眠、心率等健康数据
使用说明 (SKILL.md)
Garmin Connect 数据查询
前置要求
- JWT Token(从浏览器获取,有效期约1个月)
- Python 3.8+
快速查询
python3 scripts/query.py \x3Cjwt_token> [日期 YYYY-MM-DD]
不传日期默认查今天。
数据类型
| 查询 | 字段 |
|---|---|
| 步数 | totalSteps |
| 距离(km) | totalDistance / 1000 |
| 卡路里 | activeKilocalories |
| 爬楼层数 | totalFloorsAscending |
| 睡眠时长 | sleepingDuration |
API 端点
详见 references/api.md
Token 获取
- 浏览器打开 https://connect.garmin.cn 并登录
- F12 → Application → Cookies →
connect.garmin.cn - 找到
JWT_WEB,复制 Value(eyJ...开头)
注意
JWT 过期后需重新获取。每次查询前检查 Token 有效性。
安全使用建议
This skill appears internally consistent and implements exactly what it says: it queries Garmin Connect APIs using a browser-extracted JWT. Before installing/running it, remember: (1) the JWT is a sensitive bearer token — treat it like a password and do not share it; (2) follow the README steps locally and inspect the included scripts yourself before running; (3) the scripts print data to stdout only, but if you store the token in an environment variable or a file, be careful not to commit or share it; (4) the scripts include a hard-coded default userId from the author — you can ignore that and let the code fetch your userId via the API. If you are uncomfortable extracting tokens from your browser, do not use the skill.
功能分析
Type: OpenClaw Skill
Name: garmin-connect-cn
Version: 1.0.0
The skill is designed to query health and activity data from the Garmin Connect China API (connect.garmin.cn) using a user-provided JWT token. The scripts (scripts/query.py and scripts/activities.py) perform legitimate API requests to official Garmin endpoints and print the results to the console. While there are hardcoded default user IDs and example email addresses in the documentation and scripts (e.g., user ID 116181268), these appear to be developer artifacts or placeholders rather than malicious indicators. No evidence of data exfiltration, unauthorized network calls, or prompt injection was found.
能力评估
Purpose & Capability
Name/description match the included code and docs. The scripts call Garmin Connect endpoints and require a JWT from the user's Garmin session cookie — this is coherent for a client that reads personal Garmin data.
Instruction Scope
SKILL.md and references explicitly instruct the user to extract the JWT_WEB cookie from the browser and pass it to the Python scripts. That is necessary for the described functionality, but it involves handling a sensitive bearer token; the docs warn about token secrecy. No instructions ask the agent to read unrelated files or exfiltrate data to other endpoints.
Install Mechanism
This is instruction-only (no install spec). The project includes small Python scripts and the README advises installing the 'requests' package via pip. No downloads from arbitrary URLs or archive extraction steps are present.
Credentials
The only sensitive credential the skill needs is the Garmin JWT token (user-provided). The metadata declares no required env vars, though README suggests an optional GARMIN_JWT env var. No unrelated credentials or secrets are requested. Minor oddity: scripts use a hard-coded default userId ('116181268') when none is provided, which is unnecessary and could be confusing.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide configuration, and does not persist credentials. It only runs the included scripts when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install garmin-connect-cn - 安装完成后,直接呼叫该 Skill 的名称或使用
/garmin-connect-cn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: steps/distance/calories/sleep/activities
元数据
常见问题
Garmin Connect Data Query 是什么?
读取 Garmin Connect 手表/设备数据。 触发场景: - "今天走了多少步" - "昨晚睡眠怎么样" - "最近有什么运动" - "心率怎么样" - "这周跑了多少次" - 查询任意日期的运动、睡眠、心率等健康数据. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 193 次。
如何安装 Garmin Connect Data Query?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install garmin-connect-cn」即可一键安装,无需额外配置。
Garmin Connect Data Query 是免费的吗?
是的,Garmin Connect Data Query 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Garmin Connect Data Query 支持哪些平台?
Garmin Connect Data Query 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Garmin Connect Data Query?
由 tcyxk(@tcyxk)开发并维护,当前版本 v1.0.0。
推荐 Skills