strava

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Strava Skill

Strava Skill

Overview

概述

Enables Claude to use Strava for athletic activity tracking including viewing workouts, analyzing performance metrics, and accessing training history.
让Claude能够使用Strava进行运动活动追踪,包括查看训练记录、分析运动表现指标以及访问训练历史。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/strava/install.sh | bash
Or manually:
bash
cp -r skills/strava ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/strava/install.sh | bash
或者手动安装:
bash
cp -r skills/strava ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保canifi-env已安装:

canifi-env set STRAVA_EMAIL "your-email@example.com" canifi-env set STRAVA_PASSWORD "your-password"
undefined
canifi-env set STRAVA_EMAIL "your-email@example.com" canifi-env set STRAVA_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在你的本地设备上访问,绝不会被传输至外部。

Capabilities

功能特性

  • View recent activities
  • Access activity details and stats
  • Check training log
  • View performance metrics
  • Access route information
  • Check segment times
  • 查看近期活动
  • 访问活动详情和统计数据
  • 查看训练日志
  • 查看运动表现指标
  • 访问路线信息
  • 查看分段用时

Usage Examples

使用示例

Example 1: Check Recent Activities

示例1:查看近期活动

User: "What workouts did I do this week?"
Claude: I'll check your recent activities.
1. Opening Strava via Playwright MCP
2. Navigating to training log
3. Filtering to this week
4. Listing all activities
5. Summarizing totals
用户:“我这周做了哪些训练?”
Claude:我将查看你的近期活动。
1. 通过Playwright MCP打开Strava
2. 导航至训练日志
3. 筛选本周的活动
4. 列出所有活动
5. 汇总统计数据

Example 2: View Activity Details

示例2:查看活动详情

User: "How was my run yesterday?"
Claude: I'll pull up yesterday's run.
1. Finding yesterday's run activity
2. Viewing detailed stats
3. Checking pace and heart rate
4. Summarizing performance
用户:“我昨天的跑步表现如何?”
Claude:我将调取你昨天的跑步记录。
1. 找到昨天的跑步活动
2. 查看详细统计数据
3. 配速和心率情况
4. 总结运动表现

Example 3: Check Training Stats

示例3:查看训练统计数据

User: "How many miles have I run this month?"
Claude: I'll calculate your monthly mileage.
1. Accessing training log
2. Filtering running activities
3. Summing distance for month
4. Reporting total mileage
用户:“我这个月跑了多少英里?”
Claude:我将计算你本月的跑步里程。
1. 访问训练日志
2. 筛选跑步活动
3. 汇总本月的跑步距离
4. 报告总里程

Authentication Flow

认证流程

  1. Navigate to strava.com via Playwright MCP
  2. Click "Log In" and enter email
  3. Enter password
  4. Handle 2FA if required (via iMessage)
  5. Maintain session for data access
  1. 通过Playwright MCP导航至strava.com
  2. 点击“登录”并输入邮箱
  3. 输入密码
  4. 若需要则处理双因素认证(通过iMessage)
  5. 维持会话以访问数据

Error Handling

错误处理

  • Login Failed: Retry up to 3 times, notify via iMessage
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Implement exponential backoff
  • 2FA Required: Send iMessage notification
  • Activity Not Found: Verify activity exists
  • Sync Pending: Wait for device sync
  • 登录失败:最多重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 请求受限:实现指数退避机制
  • 需要双因素认证:发送iMessage通知
  • 未找到活动:验证活动是否存在
  • 同步待处理:等待设备同步完成

Self-Improvement Instructions

自我更新说明

When Strava updates:
  1. Document new activity metrics
  2. Update training analysis features
  3. Track segment changes
  4. Log new social features
当Strava更新时:
  1. 记录新的活动指标
  2. 更新训练分析功能
  3. 追踪分段变化
  4. 记录新的社交功能

Notes

注意事项

  • Popular for running and cycling
  • GPS-based activity tracking
  • Segment leaderboards
  • Social features for athletes
  • Premium analytics available
  • 跑步和骑行爱好者的热门选择
  • 基于GPS的活动追踪
  • 分段排行榜
  • 面向运动员的社交功能
  • 提供高级分析服务