Xpersona
W

Whoop Guru

CLAWHUB · Unverified

WHOOP AI Fitness Coach - WHOOP手环数据获取、健康分析、恢复预测、AI教练、个性化训练计划 Skill: Whoop Guru Owner: effeceee Summary: WHOOP AI Fitness Coach - WHOOP手环数据获取、健康分析、恢复预测、AI教练、个性化训练计划 Tags: latest:8.4.12 Version history: v8.4.12 | 2026-04-05T02:55:24.591Z | user v8.4.12: revert metadata to 8.4.7 clean state v8.4.11 | 2026-04-05T02:14:51.503Z | auto whoop-guru v8.4.11 - 增加环境变量声明:metadata中明确WHOOP_CLIENT_ID为primaryEnv,其余必需环境变量在env数组中声明。 - 新增数据日志模板文件:data/logs/checkins_default.json 和 data/logs/runnin

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17c1zvzkzvredv4kc4myheegn83j819:whoop-guru
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-effeceee-whoop-guru/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

160,000 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

# WHOOP Guru - 完整WHOOP健康管理系统

## v8.4.12 简介

WHOOP Guru 是**完整的WHOOP健康管理系统**,整合数据获取、分析、图表可视化、AI教练和个性化训练计划。

**核心功能:**
- 📊 **数据获取** - WHOOP官方API,实时同步恢复/睡眠/训练/HRV
- 📈 **图表生成** - 交互式HTML图表,恢复/睡眠/strain/HRV趋势
- 🤖 **AI教练** - LLM驱动,个性化训练建议
- 🎯 **训练计划** - 跑步/增肌/减脂/伤痛恢复
- 🔔 **主动推送** - 每日定时提醒(08:00/09:00/18:00/20:00/22:00)
- 📉 **ML预测** - 7天恢复预测,异常检测
- 🏅 **马拉松管理** - 目标设定、配速计划、训练阶段分析
- 📝 **快速打卡** - 一句话完成训练记录
- 🔄 **自动打卡检测** - WHOOP数据自动识别今日训练,生成初步打卡内容
- 📚 **反馈学习系统** - 用户感受词→WHOOP数据映射,持续优化建议
- 🕐 **北京时间统一** - 全部时间处理使用北京时间(UTC+8)

---

## 功能列表

### 1. WHOOP数据获取

```bash
# 进入 skill 目录(根据实际安装路径调整)
cd /path/to/whoop-guru

# 获取综合报告
python3 scripts/whoop_data.py summary --days 7

# 睡眠数据
python3 scripts/whoop_data.py sleep --days 7

# 恢复评分
python3 scripts/whoop_data.py recovery --days 30

# 训练/cycle数据
python3 scripts/whoop_data.py cycles --days 7

# workouts
python3 scripts/whoop_data.py workouts --days 30

# 用户档案
python3 scripts/whoop_data.py profile

# 身体数据
python3 scripts/whoop_data.py body
```

### 2. OAuth认证

```bash
# 首次登录
python3 scripts/whoop_auth.py login --client-id YOUR_ID --client-secret YOUR_SECRET

# 检查状态
python3 scripts/whoop_auth.py status
```

### 3. 图表生成

```bash
# 睡眠分析图表
python3 scripts/whoop_chart.py sleep --days 30

# 恢复评分图表
python3 scripts/whoop_chart.py recovery --days 30

# Strain趋势
python3 scripts/whoop_chart.py strain --days 90

# HRV趋势
python3 scripts/whoop_chart.py hrv --days 90

# 综合仪表盘
python3 scripts/whoop_chart.py dashboard --days 30
```

### 4. 健康分析

使用 `references/health_analysis.md` 进行科学分析:
- HRV正常范围(按年龄/ fitness)
- 恢复评分解读(绿/黄/红)
- 睡眠阶段分析
- 训练过度信号检测
- 可操作的建议

### 5. AI教练(LLM驱动)

```bash
# 开启教练对话
python3 whoop-guru.py coach

# 生成今日计划
python3 whoop-guru.py plan

# 生成16周计划
python3 whoop-guru.py 16week --goal 增肌
```

### 6. 推送系统

| 时间 | 内容 | 命令 |
|------|------|------|
| 08:00 | 健康早报 | daily-report.sh |
| 09:00 | 教练早安 | push-morning.py |
| 18:00 | 晚间追踪 | push-evening.py |
| 20:00 | 打卡提醒 | push-checkin.py |
| 22:00 | 详细日报 | detailed-report.sh |

---

## 支持的运动目标

| 类别 | 目标 | 周期 |
|------|------|------|
| 🏃 跑步 | 3公里新手 | 8周 |
| 🏃 跑步 | 5公里 | 10周 |
| 🏃 跑步 | 10公里 | 12周 |
| 🏃 跑步 | 半程马拉松 | 24周 |
| 🏃 跑步 | 全程马拉松 | 52周 |
| 🏃 跑步 | 超级马拉松 | 52周+ |
| 💪 力量 | 增肌 | 16周 |
| 💪 力量 | 减脂 | 12周 |
| 🏥 康复 | 伤痛恢复 | 按需 |

---

## 关键指标

- **恢复评分** (0-100%): 绿色≥67%, 黄色34-66%, 红色<34%
- **Strain** (0-21): 基于心率的每日运动强度
- **睡眠效率**: 实际睡眠 vs 需要睡眠
- **HRV** (ms): 越高恢复越好,追踪趋势
- **静息心率** (bpm): 越低心血管 fitness越好

---

## 配置说明

### WHOOP OAuth(必需)

WHOOP 使用 OAuth 2.0 授权,配置步骤:

1. 在 [developer.whoop.com](https://developer.whoop.com) 创建 App 获取 Client ID 和 Secret
2. 运行:`python3 scripts/whoop_auth.py login --client-id YOUR_ID --client-secret YOUR_SECRET`
3. 浏览器自动打开,完成授权
4. Token 自动存储在 `~/.clawdbot/whoop-tokens.json`

**替代方案**:也可以手动创建 `~/.clawdbot/whoop-credentials.env` 文件,包含:
```
WHOOP_CLIENT_ID=your_client_id
WHOOP_CLIENT_SECRET=your_client_secret
WHOOP_REFRESH_TOKEN=your_refresh_token
```

### LLM API(可选)

用于 AI 个性化分析。配置方式:
- 发送「设置模型」给机器人
- 按提示输入 API Key 和选择模型
- 配

data/config/README.md

# Credentials Directory

This directory stores user credentials at runtime:
- `llm_config.json`: LLM API keys (user-configured via chat)
- `whoop-tokens.json`: NOT stored here - WHOOP tokens stored at `~/.clawdbot/whoop-tokens.json`

**Note**: WHOOP OAuth tokens are automatically stored by `scripts/whoop_auth.py` at `~/.clawdbot/whoop-tokens.json`. The WHOOP fetcher script (`lib/whoop-fetcher.sh`) also uses `~/.clawdbot/whoop-credentials.env`.

_meta.json

{
  "ownerId": "kn7c0vaq0vp7sej96ctxrvhsdh83kg1y",
  "slug": "whoop-guru",
  "version": "8.4.12",
  "publishedAt": 1775357724591
}

references/api.md

# Whoop API Reference

Base URL: `https://api.prod.whoop.com/developer/v2`

> **Note**: v1 endpoints return 404 for sleep and recovery. Use v2 for all endpoints.
> All requests require a custom User-Agent header (Cloudflare blocks Python's default).

## Authentication
OAuth 2.0 Authorization Code flow.
- Auth URL: `https://api.prod.whoop.com/oauth/oauth2/auth`
- Token URL: `https://api.prod.whoop.com/oauth/oauth2/token`
- Scopes: `read:recovery read:cycles read:workout read:sleep read:profile read:body_measurement`

## Endpoints

### User
- `GET /user/profile/basic` → `{user_id, email, first_name, last_name}`
- `GET /user/measurement/body` → `{height_meter, weight_kilogram, max_heart_rate}`

### Sleep
- `GET /activity/sleep` → paginated list (params: start, end, limit, nextToken)
- `GET /activity/sleep/{sleepId}` → single sleep
- Score fields: `stage_summary` (total_in_bed, awake, light, deep/SWS, REM), `sleep_performance_percentage`, `sleep_consistency_percentage`, `sleep_efficiency_percentage`, `respiratory_rate`
- `sleep_needed`: baseline_milli, need_from_sleep_debt, need_from_recent_strain, need_from_recent_nap

### Recovery
- `GET /recovery` → paginated list
- `GET /recovery/cycle/{cycleId}` → single recovery for cycle
- Score fields: `recovery_score` (0-100%), `resting_heart_rate`, `hrv_rmssd_milli`, `spo2_percentage`, `skin_temp_celsius`
- Recovery zones: Green (67-100%), Yellow (34-66%), Red (0-33%)

### Cycles (Strain)
- `GET /cycle` → paginated list
- `GET /cycle/{cycleId}` → single cycle
- Score fields: `strain` (0-21 scale), `kilojoule`, `average_heart_rate`, `max_heart_rate`

### Workouts
- `GET /activity/workout` → paginated list
- `GET /activity/workout/{workoutId}` → single workout
- Score fields: `strain`, `average_heart_rate`, `max_heart_rate`, `kilojoule`, `distance_meter`, `altitude_gain_meter`, `zone_duration` (HR zones in ms)

## Pagination
All collection endpoints support: `limit` (max 25), `start` (ISO datetime), `end` (ISO datetime), `nextToken`.
Response: `{records: [...], next_token: "..."}`.

## Rate Limits
Not officially documented. Use reasonable delays between batch requests.

references/health_analysis.md

# Health Data Analysis Guide

Science-backed framework for interpreting Whoop metrics. Use this when the user asks about their health, trends, or wants insights from their data.

## HRV (Heart Rate Variability) - RMSSD in milliseconds

### What it means
HRV measures the variation in time between heartbeats. It reflects autonomic nervous system (ANS) balance — specifically parasympathetic (rest-and-digest) activity. Higher HRV = more adaptable, resilient nervous system.

### Normal ranges (RMSSD, wrist-based wearable)
| Age | Low | Normal | High |
|-----|-----|--------|------|
| 20-29 | <25ms | 25-105ms | >105ms |
| 30-39 | <20ms | 20-80ms | >80ms |
| 40-49 | <15ms | 15-60ms | >60ms |
| 50-59 | <12ms | 12-45ms | >45ms |
| 60+ | <10ms | 10-35ms | >35ms |

*Note: Wrist-based HRV (like Whoop) tends to read lower than chest strap. Individual baseline matters more than population norms.*

### Interpretation
- **Trend matters more than absolute value** — compare to personal 30-day rolling average
- **Declining HRV trend** (>10% below baseline for 3+ days): suggests accumulated stress, poor recovery, illness onset, or overtraining
- **Rising HRV trend**: improved fitness, better recovery, reduced stress
- **Acute drop**: poor sleep, alcohol, illness, intense training, emotional stress
- **Very low HRV** (<15ms consistently): consider medical consultation — linked to cardiovascular risk, chronic stress, autonomic dysfunction

### Key research findings
- Low HRV is associated with increased cardiovascular mortality (Harvard Health, PMC5624990)
- HRV reflects both physical AND psychological stress load
- 7-day rolling average provides more meaningful context than daily values
- Reduced RMSSD in athletes associated with fatigue and overtraining (Nature, 2025)

---

## Resting Heart Rate (RHR)

### Normal ranges
| Fitness level | RHR (bpm) |
|--------------|-----------|
| Athlete | 40-55 |
| Active adult | 55-65 |
| Average adult | 60-80 |
| Sedentary | 70-90 |
| Concerning | >90 |

### Interpretation
- **Trend matters**: RHR rising 3-5+ bpm above personal baseline for several days suggests accumulated fatigue, stress, illness, or dehydration
- **Acute spike**: alcohol, poor sleep, illness onset, overtraining
- **Decreasing RHR over weeks/months**: improving cardiovascular fitness
- **High RHR + Low HRV**: strong signal of poor recovery or health concern

---

## Sleep Analysis

### Optimal distribution (for 7-8h total sleep)
| Stage | % of total | Ideal duration (8h) | Function |
|-------|-----------|---------------------|----------|
| Deep (SWS) | 15-25% | 1.2-2.0h | Physical restoration, growth hormone, immune function, memory consolidation |
| REM | 20-25% | 1.6-2.0h | Emotional processing, learning, creativity, memory |
| Light | 50-60% | 4.0-4.8h | Transition stage, some memory processing |
| Awake | <10% | <0.8h | Normal brief awakenings |

### Key thresholds
- **Total sleep needed** (adults): 7-9 hours (CDC recommendation)
- **Sleep performance <70%**

Sponsored

Ads related to Whoop Guru and adjacent AI workflows.