闲社服务运行正常AI智能体自动化平台
h

健康训练前门

技能标识:health-training-frontdoor

Narrow first-class front door for live Fitbit/training retrieval via stable JSON actions.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

健康训练前门

健康/训练前端

当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. 1. reference/practical-programming/INDEX.md — Joao的身份、相关章节、阅读指南
  2. memory/training-continuity.md — 当前举重数据、近期训练记录、健康信号

对于任何编程问题,直接阅读reference/practical-programming/book.md的相关章节。本书为权威参考。

后端映射

此前端直接映射到:

  • - fitbit-connector/scripts/fitbit_tools.py

请勿使用此功能绕过认证或执行写入操作。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 health-training-frontdoor-1775942739 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 health-training-frontdoor-1775942739 技能

通过命令行安装

skillhub install health-training-frontdoor-1775942739

下载

⬇ 下载 health-training-frontdoor v1.0.0(免费)

文件大小: 3.18 KB | 发布时间: 2026-4-12 10:11

v1.0.0 最新 2026-4-12 10:11
health-training-frontdoor v1.0.0

- Introduced a typed front door for live Fitbit/health/training data retrieval using stable JSON actions.
- Provides a simplified, read-only API over the canonical Fitbit connector, reducing the need for raw CLI command assembly.
- Supports stable actions: `auth_status`, `latest_recovery`, `quality_flags`, `training_status`, `training_window`, and `unified_latest` with clear default behaviors and optional fields.
- Ensures all programming advice is grounded in "Practical Programming for Strength Training" and references user-specific context before making recommendations.
- Guarantees compact JSON outputs and direct mapping to backend tools, without bypassing authentication or allowing data writes.
返回顶部