Files
wodify-cli/Skill/README.md
T

38 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# wodify CLI — Agent Cron Jobs (健身自动化)
两个围绕 wodify CLI 的定时任务 prompt,供 agent 框架(如 Hermes Agent)使用。
特点是**只在有预约的当天才说话**,安静为零的日子让路。
| 任务 | 时间 | 干什么 |
|------|------|--------|
| `daily-wod-briefing` | 每天 09:00 | 早间训练简报:查当天预约 → 拉 WOD → 动作/肌群/装备概览 |
| `fitness-diary-nag` | 每天 20:17 | 晚间日记催报:查当天预约 → 像教练一样追问重量/成绩/心率数据 |
两个 job 共同的行为约定(写死在 prompt 里):
- **没有预约就完全静默**——不发 "今天没课" 这种废话
- WOD 内容是 nice-to-have:拉不到也照常 nag,绝不编造课表
- CLI 挂了按 exit code 分级处理(2=session 过期,3/4=先 prime 再重试)
## 安装(Hermes Agent 示例)
```bash
# 早间简报
hermes cron create --name daily-wod-briefing \
--deliver origin -t terminal \
"0 9 * * *" "$(cat daily-wod-briefing.md)"
# 晚间日记催报
hermes cron create --name fitness-diary-nag \
--deliver origin -t terminal \
"17 20 * * *" "$(cat fitness-diary-nag.md)"
```
其他框架同理:把 `.md` 文件内容作为 prompt、按上表时间调度即可。
模型不挑,能跑终端命令就行。
## 前置条件
- wodify CLI 已安装且 `wodify doctor` 显示 primed(见仓库 README)
- agent 有终端执行权限(prompt 只调用 `wodify list date` / `wodify list workout` / `wodify prime`,均为只读操作 + prime)