360 Secure SkillHub
360 安全技能中心

WHOOP Morning

该 Skill 通过 WHOOP OAuth2 读取用户最新的 Recovery、Sleep、Cycle/Strain 数据,生成当日简短建议,并可按建议由 Gateway cron 在每日早晨调度、把输出作为消息发送。首次使用需运行 whoop-auth 完成授权,并把 refresh token 写入 ~/.clawdbot/.env。

borahm
borahm
热度 51.34
最近更新 2026-05-11 15:50:48
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:健康 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add whoop-morning
Metadata
name
whoop-morning
description
Check WHOOP recovery/sleep/strain each morning and send suggestions.
metadata
{"clawdbot":{"config":{"requiredEnv":["WHOOP_CLIENT_ID","WHOOP_CLIENT_SECRET","WHOOP_REFRESH_TOKEN"]}}}

whoop-morning

Morning WHOOP check-in:

  • fetches your latest WHOOP data (Recovery, Sleep, Cycle/Strain)
  • generates a short set of suggestions for the day

Setup

1) Create WHOOP OAuth credentials

You already have:

  • WHOOP_CLIENT_ID
  • WHOOP_CLIENT_SECRET

Store these in ~/.clawdbot/.env.

2) Authorize once (get refresh token)

Run:

/home/claw/clawd/skills/whoop-morning/bin/whoop-auth --scopes offline read:recovery read:sleep read:cycles read:profile

This prints an authorization URL. Open it in your browser, approve, and paste the code back into the terminal.

The script will exchange it for tokens and write WHOOP_REFRESH_TOKEN=... to ~/.clawdbot/.env.

3) Run the morning report

/home/claw/clawd/skills/whoop-morning/bin/whoop-morning

Automation

Recommended: schedule with Gateway cron (daily, morning). The cron job should run whoop-morning and send its output as a message.

Notes

  • This skill uses WHOOP OAuth2:
    • auth URL: https://api.prod.whoop.com/oauth/oauth2/auth
    • token URL: https://api.prod.whoop.com/oauth/oauth2/token
  • WHOOP rotates refresh tokens; avoid running multiple refreshes in parallel.
  • API availability/fields can change; if WHOOP returns 401/400 during token refresh, re-run whoop-auth.