Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

whoop-cliwhoop CLI 自动化

Agent Skill

whoop-cli 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

392

周安装

16

GitHub Stars

37

下载量

127
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:whoop-cli(whoop CLI 自动化)
来源仓库:https://github.com/tomasward1/whoop-cli
仓库路径:skills/whoop-cli
安装命令:
npx skills add https://github.com/tomasward1/whoop-cli --skill whoop-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tomasward1/whoop-cli --skill whoop-cli

简介

用于自动化处理 whoop CLI 相关的开发与部署任务。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中管理仓库 Issue 和代码变更。
  • 通过 GitHub 仓库安装,具体命令与参数请查阅项目内说明文件。
  • 使用前应评估是否会触发本地命令执行,并做好权限隔离。
  • 该技能聚焦于 CI/CD 流程支持,不提供独立的 CLI 功能实现。

SKILL.md

whoop-cli

CLI for WHOOP health data. All commands output JSON when piped, pretty text when interactive.

Both whoop and whoop-cli work as commands.

Install

npm install -g @tomasward/whoop-cli

Requires Node.js 22+.

Auth

A human must complete OAuth once (requires browser). After that, tokens auto-refresh.

whoop auth login      # Opens browser for OAuth
whoop auth status     # Check auth (exit code 2 = not authenticated)
whoop auth refresh    # Force token refresh
whoop auth logout     # Clear tokens
whoop auth keepalive  # Install cron for auto-refresh (every 45 min)

First-time setup

The CLI prompts for WHOOP API credentials on first login:

  1. Go to https://developer.whoop.com
  2. Create an application (apps with <10 users need no review)
  3. Set Redirect URI to http://localhost:8787/callback
  4. Enter Client ID and Client Secret when prompted

Credentials are stored in ~/.whoop-cli/config.json. Env vars WHOOP_CLIENT_ID and WHOOP_CLIENT_SECRET override the config file.

Headless setup (servers / CI)

mkdir -p ~/.whoop-cli && chmod 700 ~/.whoop-cli
cat > ~/.whoop-cli/config.json << 'EOF'
{"client_id":"<id>","client_secret":"<secret>","redirect_uri":"http://localhost:8787/callback"}
EOF
chmod 600 ~/.whoop-cli/config.json
whoop auth login       # Shows URL — open on any machine, paste callback back
whoop auth keepalive   # Keep tokens fresh automatically

Agent quick start

# Single-call health snapshot (flat JSON)
whoop check
# → {"ok":true,"checked_at":"...","recovery_score":72,"hrv_rmssd_milli":45.2,"sleep_hours":7.1,"strain":8.3}

# Auth pre-flight
whoop auth status
echo $?  # 0 = ok, 2 = needs login

Commands

check — single-call health snapshot

whoop check                    # today's metrics
whoop check --date 2026-03-01  # specific date

Returns: {ok, checked_at, date, recovery_score, hrv_rmssd_milli, resting_heart_rate, sleep_performance, sleep_hours, sleep_efficiency, strain, calories, workout_count}

summary — one-liner status

whoop summary                  # JSON when piped, text when interactive
whoop summary --color          # color-coded with status indicators
whoop summary --format json    # force JSON

Data commands — sleep, recovery, workout, cycle, profile, body

whoop recovery                                          # today
whoop sleep --date 2026-03-01                           # specific date
whoop workout -s 2026-01-01 -e 2026-03-01 -a           # date range, all pages
whoop cycle --format json                               # force JSON

multi — multiple data types in one call

whoop multi --sleep --recovery --workout                            # today
whoop multi --sleep --recovery -s 2026-01-01 -e 2026-03-01 -a      # date range

trends — multi-day analysis

whoop trends              # 7-day trends
whoop trends --days 30    # 30-day trends (1-90)
whoop trends --json       # force JSON

insights — health recommendations

whoop insights                            # today
whoop insights --date 2026-03-01 --json   # specific date, JSON

Output behavior

  • Piped (no TTY): JSON to stdout. Errors as {"error":"...","code":2} to stdout.
  • Interactive (TTY): human-readable text. Errors as plain text to stderr.
  • --format json|pretty|auto on all data commands (default: auto).
  • --pretty shorthand for --format pretty.
  • --json shorthand on trends/insights.

Exit codes

CodeMeaning
0Success
1General error
2Auth error (not logged in, token expired)
3Rate limited
4Network error

Error handling for agents

  • Exit code 2: Auth failed. Tell the user to run whoop auth login manually (requires browser).
  • Exit code 3: Rate limited. Wait and retry.
  • Exit code 4: Network issue. Retry after a few seconds.
  • If whoop is not found, tell the user to install: npm install -g @tomasward/whoop-cli.

Date handling

  • Default: WHOOP day (4am local time cutoff).
  • --date YYYY-MM-DD for specific dates.
  • --start / --end for range queries on data and multi commands.
  • --all / -a to paginate through all results.

When not to use

  • This skill requires the CLI to be installed and authenticated. It cannot query the WHOOP API directly.
  • If the user needs real-time streaming data or webhook integrations, this CLI does not support that.

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.45%
按下载量换算44

Claude

30.78%
按下载量换算39

Cursor

21.2%
按下载量换算27

Gemini CLI

9.1%
按下载量换算12

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills