RPE & peaking coach
Use exercise history and effort to plan the next load and deload week.
get_exercise_history The official skill explains how to read live records, respect units, and write a change you can undo.
---
name: boji-fitness
description: 读取和复盘用户在波吉(iPhone 健身与饮食记录 App)里的训练、饮食、体重和计划。用户提到训练复盘、下次怎么练、今天吃了什么、体重变化,或收到波吉推送通知时使用。需要已连接波吉 MCP。
---
# 波吉健身记录
波吉是用户自己的健身与饮食记录。手机上记下的训练、饮食、体重、计划和笔记会同步到资料服务,你通过波吉 MCP 读取实时数据。这个 skill 只说明怎么用;数据一律以 MCP 读到的为准。
## 开始之前
- 先确认工具里有 `get_context`。没有就告诉用户需要先在当前 agent 里添加波吉 MCP 连接器,不要凭记忆回答。
- 手机上尚未同步的草稿你看不到。数字对不上时,请用户在 App 里确认「已同步到资料服务」。
## 读取
1. **第一次**:调用 `get_context`,记下返回的 `cursor`。检查 `coverage`,需要更早的历史时用 `list_records` 分页。
2. **之后每次回来**(定时任务、用户再次问起、收到波吉推送):调用 `get_changes_since`,传上次保存的 `cursor`。`hasMore=true` 时用返回的 `cursor` 继续,读完后保存最新的 `cursor`。
3. **看一次训练的细节**:`get_workout_progress(workoutID)` 给出逐组的实际重量、次数、0–10 力竭指数和备注。`firstCompletedAt` 是用户第一次勾选这组完成的时间。
4. **训练量、个人纪录、估算 1RM**:用 `get_training_volume`、`get_personal_records`、`get_exercise_history`,不要自己从记录推算。估算 1RM 是公式估计,不是实测。
## 收到波吉推送时
推送正文是 JSON,`message` 字段是给你看的说明,`fromCursor` 是这批新记录之前的序号,`instruction` 是用户附加的要求。
1. 用 `get_changes_since(cursor=fromCursor)` 读取完整内容,不要只凭通知里的标题下结论。
2. 按 `instruction` 去做;没有附加要求时,给用户一段简短反馈即可,不要写入资料。
## 复盘一次训练
- 区分**目标**(`targets`)和**实际**(每组的实际值)。`completed=false` 的组没有完成;`skipped` 的组不计入。
- 未填写的值就是未知,不要用目标值补上,也不要编造感受和力竭指数。
- 和最近几次同动作的实际表现比较,指出进步、停滞和异常,给出下一次可执行的调整。
- 心率等身体数据只有在用户把 Apple 健康接入你所在的 agent 时才看得到;可以用 `firstCompletedAt` 和训练的 `startedAt`/`endedAt` 对齐时间。
## 写入(只在用户明确要求时)
1. `begin_external_task` 登记请求,拿到 `taskID`。
2. 写入前读最新版本;保存时传 `expectedVersion`、新的 `requestID` 和 `taskID`。遇到 `version_conflict` 重新读取后再写。
3. 本次调整只改这次训练;只有用户明确说「以后也这样练」才改长期计划。
4. 结束时调用 `finish_external_task`,交回 `summary`、`questions`、`referencedRecordIDs` 和 `evidence`(引用读到的记录版本)。只在聊天里说完成不会同步到 App。
5. 用户在 App 里暂停 Agent 时写入会被拒绝(`agent_paused`),这时只读、不要重试。
## 记忆
你的长期记忆只存偏好和结论,例如「用户膝盖不适,避开深度深蹲」「偏好早上练」。重量、次数、纪录、体重这些数字每次都从波吉读取,不要依赖记忆里的旧数字。
## 单位
重量 kg,次数 count,时长 seconds,距离 km,营养 g,能量 kcal,力竭指数是 0–10 的主观记录。
Use exercise history and effort to plan the next load and deload week.
get_exercise_history Compare weekly hard sets across muscle groups.
get_training_volume Separate label values from estimates before adjusting tomorrow’s intake.
list_recordsread_attachment Find an equipment-compatible substitute and keep completed sets.
get_exercise_alternativesreplace_workout_exercise Wake on a webhook and summarize the latest workout.
get_changes_sinceget_workout_progress Contribute a Markdown skill with its audience, tool dependencies and write boundaries.
get_agent_contract