Health/Training Front Door
Use this when OpenClaw needs live Fitbit/health/training data in a stable, low-ambiguity way.
This is a thin, typed front door over the canonical Fitbit connector tooling.
Why this exists
INLINECODE0 is the canonical operational backend, but it still requires low-level CLI composition.
This front door provides a narrow action contract so agents can call one stable interface instead of assembling raw shell commands every time.
Contract
Run:
Input JSON:
CODEBLOCK0
Supported actions:
- - INLINECODE2
- INLINECODE3
- INLINECODE4
- INLINECODE5
- INLINECODE6
- INLINECODE7
Optional fields:
- -
days (integer) - INLINECODE9 (boolean)
- INLINECODE10 (for
unified_latest, default best)
Default behavior by action
- -
latest_recovery: fetches latest days of hrv_rmssd,resting_hr,sleep_minutes,sleep_score,data_quality; defaults days=3, INLINECODE16 - INLINECODE17 : defaults INLINECODE18
- INLINECODE19 : defaults
days=14, INLINECODE21 - INLINECODE22 : defaults
days=14, INLINECODE24 - INLINECODE25 : defaults
days=14, INLINECODE27
Notes
- - Output is compact JSON.
- This surface is read-only.
- Interpretation/coaching remains outside this skill.
Training Programming Reference
All programming decisions must be grounded in Practical Programming for Strength Training (Rippetoe & Baker, 3rd Ed.).
Always load before giving any programming advice:
- 1.
reference/practical-programming/INDEX.md — who Joao is, relevant chapters, reading guide - INLINECODE29 — current lifts, recent sessions, health signals
For any programming question, read the relevant sections of reference/practical-programming/book.md directly. The book is the authority.
Backend mapping
This front door maps directly to:
Do not use this to bypass auth or write-capable operations.
健康/训练前端
当OpenClaw需要以稳定、低歧义的方式获取实时Fitbit/健康/训练数据时,请使用此功能。
这是一个精简的、类型化的前端接口,用于规范化的Fitbit连接器工具。
存在原因
fitbit_tools.py是规范化的操作后端,但仍需要底层CLI组合。
此前端提供狭窄的操作契约,使代理可以调用一个稳定接口,而无需每次组装原始shell命令。
契约
运行:
- - node skills/health-training-frontdoor/scripts/request.js {...json...}
输入JSON:
json
{
action: latest_recovery
}
支持的操作:
- - authstatus
- latestrecovery
- qualityflags
- trainingstatus
- trainingwindow
- unifiedlatest
可选字段:
- - days(整数)
- ensureFresh(布尔值)
- source(用于unified_latest,默认best)
各操作的默认行为
- - latestrecovery:获取最近几天的hrvrmssd,restinghr,sleepminutes,sleepscore,dataquality;默认days=3,ensureFresh=true
- qualityflags:默认days=7
- trainingstatus:默认days=14,ensureFresh=true
- trainingwindow:默认days=14,ensureFresh=true
- unifiedlatest:默认days=14,source=best
注意事项
- - 输出为紧凑JSON格式。
- 此接口为只读。
- 解读/指导功能不在此技能范围内。
训练编程参考
所有编程决策必须基于《力量训练实用编程》(Rippetoe & Baker,第3版)。
在给出任何编程建议前,务必加载:
- 1. reference/practical-programming/INDEX.md — Joao的身份、相关章节、阅读指南
- memory/training-continuity.md — 当前举重数据、近期训练记录、健康信号
对于任何编程问题,直接阅读reference/practical-programming/book.md的相关章节。本书为权威参考。
后端映射
此前端直接映射到:
- - fitbit-connector/scripts/fitbit_tools.py
请勿使用此功能绕过认证或执行写入操作。