strava
32
总安装量
32
周安装量
#6312
全站排名
安装命令
npx skills add https://github.com/andrejones92/canifi-life-os --skill strava
Agent 安装分布
claude-code
27
gemini-cli
25
opencode
25
codex
22
antigravity
21
cursor
21
Skill 文档
Strava Skill
Overview
Enables Claude to use Strava for athletic activity tracking including viewing workouts, analyzing performance metrics, and accessing training history.
Quick Install
curl -sSL https://canifi.com/skills/strava/install.sh | bash
Or manually:
cp -r skills/strava ~/.canifi/skills/
Setup
Configure via canifi-env:
# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash
canifi-env set STRAVA_EMAIL "your-email@example.com"
canifi-env set STRAVA_PASSWORD "your-password"
Privacy & Authentication
Your credentials, your choice. Canifi LifeOS respects your privacy.
Option 1: Manual Browser Login (Recommended)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
Option 2: Environment Variables
If you’re comfortable sharing credentials, you can store them locally:
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.
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
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
Example 2: View Activity Details
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
Example 3: Check Training Stats
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
Authentication Flow
- Navigate to strava.com via Playwright MCP
- Click “Log In” and enter email
- Enter password
- Handle 2FA if required (via iMessage)
- Maintain session for data access
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
Self-Improvement Instructions
When Strava updates:
- Document new activity metrics
- Update training analysis features
- Track segment changes
- Log new social features
Notes
- Popular for running and cycling
- GPS-based activity tracking
- Segment leaderboards
- Social features for athletes
- Premium analytics available