✨
简介
WHOOP CLI for Agents
原始描述
Use when operating the installed `whoop` CLI for agent-friendly WHOOP access, cross-platform secret storage checks, daily briefs, summaries, health flags, ac...
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/whoop-cli-for-agents/
其它 Agent解压到它自己的 skills 目录,目录名用 whoop-cli-for-agents
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: whoop-cli
description: Use when operating the installed whoop CLI for agent-friendly WHOOP access, cross-platform secret storage checks, daily briefs, summaries, health flags, activity trends, exports, or installing the bundled WHOOP agent skill into ~/.agents, Codex, OpenClaw, or another agent skill directory.
metadata:
openclaw:
requires:
bins:
- whoop
homepage: https://github.com/andreasnlarsen/whoop-cli
install:
- kind: node
package: "@andreasnlarsen/whoop-cli@0.5.1"
bins:
- whoop
label: Install whoop-cli from npm
whoop-cli
Use the installed whoop command.
Security + Credential Handling
- Never ask users to paste long-lived client secrets or tokens into chat.
- For first-time auth, have the user run login locally in their own shell.
- macOS default secret storage is macOS Keychain.
- Linux/OpenClaw preferred secret storage is 1Password CLI with a service account.
- Linux/OpenClaw simple fallback is explicit
local-vpsstorage with--accept-local-vps-risk. - Profile JSON at
~/.whoop-cli/profiles/<profile>.jsonstores non-secret metadata only. - Keychain access uses macOS Security APIs through
/usr/bin/swift; do not replace this with command-line secret arguments. - If
/usr/bin/swiftis unavailable, tell the user to install Apple Command Line Tools withxcode-select --install. - If a sandboxed agent shell cannot access macOS Keychain, rerun the
whoopcommand with normal user permissions; do not use secret-bearing command-line arguments as a fallback. - After login, regular read commands should not need passwords or Touch ID.
- If macOS asks for "password data for new item" during login, stop and update or reinstall
whoop; the CLI should write Keychain items non-interactively. - On Linux, do not silently fall back to plaintext profile JSON. Use
onepasswordor explicitlocal-vps. - Do not send long-lived 1Password service-account tokens through Telegram. In simple
local-vpssetup, the expected Telegram handoff is the short-lived WHOOP auth URL and redirected callback URL. - Prefer read-only operational commands in agent flows:
summary,day-brief,health,trend, andsync pull. - Do not run
whoop auth loginunless the user explicitly asks for login help.
Install / Bootstrap
If whoop is missing:
npm install -g @andreasnlarsen/whoop-cli@0.5.1
Install this bundled skill for local Codex/agent use:
whoop skill install --target agents --force
That writes ~/.agents/skills/whoop-cli/SKILL.md and links it into ~/.codex/skills/whoop-cli.
Install for OpenClaw when needed:
whoop skill install --target openclaw --force
Install to another skill directory:
whoop skill install --target path --skill-dir /path/to/skills/whoop-cli --force
Core Checks
whoop auth status --json- If unauthenticated, ask the user to run local login:
- macOS:
whoop auth login - Linux/OpenClaw recommended:
whoop auth login --secret-storage onepassword --op-vault ... --op-item ... - Telegram-only/simple Linux VPS:
whoop auth login --secret-storage local-vps --accept-local-vps-risk - Prefer the interactive hidden client-secret prompt when a human is present.
- Use one-time env/secret-manager injection only when automation requires it.
- macOS:
- Validate:
whoop summary --json --prettywhoop day-brief --json --pretty
Useful Commands
- Daily:
whoop summary --json --prettywhoop day-brief --json --prettywhoop strain-plan --json --prettywhoop health flags --days 7 --json --pretty
- Activity analysis:
whoop activity list --days 30 --json --prettywhoop activity trend --days 30 --json --prettywhoop activity types --days 30 --json --pretty- training-only:
whoop activity trend --days 30 --labeled-only --json --pretty
- Export:
whoop sync pull --start YYYY-MM-DD --end YYYY-MM-DD --out ./whoop.jsonl --json --pretty
Activity Interpretation Guardrail
- WHOOP generic
activityrows, oftensport_id=-1, are auto-detected and may be unlabeled movement such as housework or incidental activity, not intentional training. - Do not treat generic
activityas confirmed training volume by default. - For coaching or training recommendations, default to
--labeled-onlyand report total versus filtered counts.
Agent Filtering Pattern
- Canonical source:
whoop activity list --json - Prefer built-in filters first:
--labeled-only,--generic-only,--sport-id,--sport-name. - If custom slicing is needed and
jqis available, filter shell-side from raw JSON:
whoop activity list --days 30 --json | jq '.data.records | map(select(.sport_id != -1))'
Experiment Protocol
- Canonical state:
~/.whoop-cli/experiments.jsononly. - Plan experiments with context at creation time:
whoop experiment plan --name ... --behavior ... --start-date YYYY-MM-DD [--end-date YYYY-MM-DD] --description ... --why ... --hypothesis ... --success-criteria ... --protocol ... --json --pretty
- Update context without creating duplicate state:
whoop experiment context --id ... [--description ... --why ... --hypothesis ... --success-criteria ... --protocol ...] --json --pretty
- Check lifecycle/status with:
whoop experiment status [--status planned|running|completed] [--id ...] --json --pretty
- Evaluate outcomes with:
whoop experiment report --id ... --json --pretty
- Profile scope is strict by default: active
--profileonly. - Use
--all-profilesonly when cross-profile visibility is explicitly needed. - Prefer output field
sourceOfTruth;experimentsFileis kept as compatibility alias. - Avoid duplicating experiment state into other files unless the user explicitly asks for separate notes.
Safety
- Never print client secrets or raw tokens.
- Treat
local-vpsas a deliberate lower-security mode: it prevents accidental repo/chat/log exposure but not VPS compromise. - Keep API errors concise and actionable.
- Treat this integration as unofficial and not affiliated with WHOOP.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
标签
同类 Skill
✨
self-improving-agent
self-improving-agent
下载 416.7k
✨
self-improving-agent
self-improving-agent
下载 416.7k
✨
self-improving-agent
self-improving-agent
下载 416.7k
✨
self-improving-agent
self-improving-agent
下载 416.7k
✨
Self-Improving + Proactive Agent
Self-Improving + Proactive Agent
下载 177.1k
✨
Gog
Gog
下载 165k