Hybrid Training Plan Skill
Interact with the user's training plan at hybridtrainingplan.app via natural language.
Setup
- 1. Generate an API key at hybridtrainingplan.app/account → Agent Skills → New key
- Add to your Claude environment (
.claude/.env or shell profile):
CODEBLOCK0
The helper script is at scripts/htp.sh relative to this skill. Run chmod +x scripts/htp.sh once to make it executable.
Common operations
Check today's dashboard
scripts/htp.sh dashboard
Returns the current plan ID, today's date, active week/day info, and recent session summaries.
View a specific day's workout
scripts/htp.sh day 2026-02-27 <planId>
Returns the day's sessions with exercises, sets, reps, load guidance, and running prescription.
Log a session
CODEBLOCK3
Mark a day complete
CODEBLOCK4
Skip a day
CODEBLOCK5
View session logs for a day
CODEBLOCK6
View exercise 1RMs (maxes)
CODEBLOCK7
Update a 1RM
CODEBLOCK8
Notes
- - Weights are always in kg in the API regardless of the user's display preference
- INLINECODE3 is the UUID of the specific session inside the plan (visible in the day view response)
- INLINECODE4 is the UUID of the training plan (visible in the dashboard response)
- See
references/api.md for full request/response schemas
混合训练计划技能
通过自然语言与用户在 hybridtrainingplan.app 上的训练计划进行交互。
设置
- 1. 在 hybridtrainingplan.app/account → 智能体技能 → 新建密钥 生成一个 API 密钥
- 添加到您的 Claude 环境(.claude/.env 或 shell 配置文件):
bash
export HYBRIDAPIKEY=htpyourkey_here
export HYBRIDAPIURL=https://api.hybridtrainingplan.app # 可选,此为默认值
辅助脚本位于此技能目录下的 scripts/htp.sh。运行 chmod +x scripts/htp.sh 一次以使其可执行。
常见操作
查看今日仪表盘
bash
scripts/htp.sh dashboard
返回当前计划 ID、今日日期、活跃周/日信息以及近期训练摘要。
查看特定日期的训练
bash
scripts/htp.sh day 2026-02-27
返回该日期的训练内容,包括动作、组数、次数、负重指导和跑步处方。
记录一次训练
bash
scripts/htp.sh log-session {planId:...,sessionId:...,dayDate:2026-02-27,sessionType:strength,strengthSets:[{exerciseName:Squat,exerciseKey:squat,setIndex:0,reps:5,weightKg:100}]}
标记某日完成
bash
scripts/htp.sh complete 2026-02-27
跳过某日
bash
scripts/htp.sh skip 2026-02-27
查看某日的训练记录
bash
scripts/htp.sh session-logs 2026-02-27
查看动作的 1RM(最大重量)
bash
scripts/htp.sh maxes
更新某个 1RM
bash
scripts/htp.sh set-max Squat 120
注意事项
- - API 中的重量始终以 kg 为单位,无论用户的显示偏好如何
- sessionId 是计划中特定训练会话的 UUID(可在日视图响应中查看)
- planId 是训练计划的 UUID(可在仪表盘响应中查看)
- 完整的请求/响应模式请参见 references/api.md