Pull real-time training plans, workouts, fitness metrics (CTL/ATL/TSB), and personal records from TrainingPeaks. Uses cookie-based authentication (no API key needed). Use in conjunction with other endurance, cycling, running or swimming triathlon coach skills for best results.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install trainingpeaks或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install trainingpeaks⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/trainingpeaks/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: trainingpeaks description: Pull real-time training plans, workouts, fitness metrics (CTL/ATL/TSB), and personal records from TrainingPeaks. Uses cookie-based authentication (no API key needed). Use in conjunction with other endurance, cycling, running or swimming triathlon coach skills for best results. ---
CLI access to the TrainingPeaks internal API. Pure Python stdlib — no pip dependencies.
app.trainingpeaks.comProduction_tpAuthThen authenticate:
python3 scripts/tp.py auth "<paste_cookie_value_here>"
Or set the environment variable (useful for CI/scripts):
export TP_AUTH_COOKIE="<cookie_value>"
Credentials are stored in ~/.trainingpeaks/ with 0600 permissions.
auth — AuthenticateStore and validate a Production_tpAuth cookie. Exchanges it for a Bearer token and caches the athlete ID.
python3 scripts/tp.py auth "eyJhbGci..."
# ✓ Authenticated successfully!
# Account: [email protected]
# Athlete ID: 12345
# Token expires in: 60 minutes
auth-status — Check Authenticationpython3 scripts/tp.py auth-status
# Cookie: stored (file)
# Token: valid (42m remaining)
# Athlete ID: 12345
# ✓ Ready
profile [--json] — Athlete Profilepython3 scripts/tp.py profile
# Profile
# ════════════════════════════════════════
# Name: Ruben Example
# Email: [email protected]
# Athlete ID: 12345
# Account: Premium
# Bike FTP: 280 W
workouts [--filter all|planned|completed] [--json] List workouts in a date range (max 90 days).
# All workouts this week
python3 scripts/tp.py workouts 2026-01-26 2026-02-01
# Only completed workouts
python3 scripts/tp.py workouts 2026-01-01 2026-01-31 --filter completed
# Raw JSON for scripting
python3 scripts/tp.py workouts 2026-01-26 2026-02-01 --json
Output columns: Date, Title, Sport, Status (✓/○), Planned duration, Actual duration, TSS, Distance.
workout [--json] — Workout DetailGet full details for a single workout including description, coach comments, and all metrics.
python3 scripts/tp.py workout 123456789
# Workout: Tempo Intervals 3x10min
# ══════════════════════════════════════════════════
# Date: 2026-01-28
# Sport: Bike
# Status: Completed ✓
# ...
fitness [--days 90] [--json] — CTL/ATL/TSBGet fitness (CTL), fatigue (ATL), and form (TSB) data.
# Last 90 days (default)
python3 scripts/tp.py fitness
# Full season
python3 scripts/tp.py fitness --days 365
# JSON for charts
python3 scripts/tp.py fitness --json
Shows a summary with current CTL/ATL/TSB and status interpretation, plus a 14-day daily table.
peaks [--days 3650] [--json] — Personal RecordsGet ranked personal records by sport and metric.
# Best 20-minute power (all time)
python3 scripts/tp.py peaks Bike power20min
# 5K running PRs from last year
python3 scripts/tp.py peaks Run speed5K --days 365
# 5-second max power
python3 scripts/tp.py peaks Bike power5sec
Valid PR types:
| Sport | Types | |-------|-------| | Bike | power5sec, power1min, power5min, power10min, power20min, power60min, power90min, hR5sec, hR1min, hR5min, hR10min, hR20min, hR60min, hR90min | | Run | hR5sec–hR90min, speed400Meter, speed800Meter, speed1K, speed1Mi, speed5K, speed5Mi, speed10K, speed10Mi, speedHalfMarathon, speedMarathon, speed50K |
~/.trainingpeaks/token.json~/.trainingpeaks/cookie| File | Purpose | |------|---------| | ~/.trainingpeaks/cookie | Stored Production_tpAuth cookie | | ~/.trainingpeaks/token.json | Cached OAuth Bearer token + expiry | | ~/.trainingpeaks/config.json | Cached athlete ID and account info |
YYYY-MM-DD formatTP_AUTH_COOKIE environment variable overrides stored cookie--json gives raw API responses安装 TrainingPeaks 后,可以对 AI 说这些话来触发它
Help me get started with TrainingPeaks
Explains what TrainingPeaks does, walks through the setup, and runs a quick demo based on your current project
Use TrainingPeaks to pull real-time training plans, workouts, fitness metrics (CTL/ATL/T...
Invokes TrainingPeaks with the right parameters and returns the result directly in the conversation
What can I do with TrainingPeaks in my developer & devops workflow?
Lists the top use cases for TrainingPeaks, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/trainingpeaks/ 目录(个人级,所有项目可用),或 .claude/skills/trainingpeaks/(项目级)。重启 AI 客户端后,用 /trainingpeaks 主动调用,或让 AI 根据上下文自动发现并使用。
TrainingPeaks 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
TrainingPeaks 可免费安装使用。请查阅仓库了解许可证信息。
Pull real-time training plans, workouts, fitness metrics (CTL/ATL/TSB), and personal records from TrainingPeaks. Uses cookie-based authentication (no API key needed). Use in conjunction with other endurance, cycling, running or swimming triathlon coach skills for best results.
TrainingPeaks 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using TrainingPeaks
Identifies repetitive steps in your workflow and sets up TrainingPeaks to handle them automatically