- name
- health-training-frontdoor
- description
- Narrow first-class front door for live Fitbit/training retrieval via stable JSON actions.
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
fitbit_tools.py 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:
node skills/health-training-frontdoor/scripts/request.js '{...json...}'
Input JSON:
{
"action": "latest_recovery"
}Supported actions:
auth_statuslatest_recoveryquality_flagstraining_statustraining_windowunified_latest
Optional fields:
days(integer)ensureFresh(boolean)source(forunified_latest, defaultbest)
Default behavior by action
latest_recovery: fetches latest days ofhrv_rmssd,resting_hr,sleep_minutes,sleep_score,data_quality; defaultsdays=3,ensureFresh=truequality_flags: defaultsdays=7training_status: defaultsdays=14,ensureFresh=truetraining_window: defaultsdays=14,ensureFresh=trueunified_latest: defaultsdays=14,source=best
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:
reference/practical-programming/INDEX.md— who Joao is, relevant chapters, reading guidememory/training-continuity.md— 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:
fitbit-connector/scripts/fitbit_tools.py
Do not use this to bypass auth or write-capable operations.