TopRank Skills

Home / Claw Skills / Git / GitHub / strava-python
Official OpenClaw rules 36%

strava-python

Query Strava activities, stats, and workout data using Python/stravalib with interactive setup

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 strava-python 技能。 若已安装,则直接安装 strava-python 技能。

Overview

Skill Key
abclark/strava-python
Author
abclark
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/abclark/strava-python
Latest Commit SHA
9629c2a332f3f0e8b157c10661ecf649e53e034a

Extracted Content

SKILL.md excerpt

# Strava Python

Query your Strava activities, stats, and workout data through OpenClaw using Python and stravalib.

**Why this skill vs others:** Uses Python/stravalib with an interactive setup wizard (vs curl-based skills requiring manual JSON configuration).

## Requirements

- Python 3.7+
- `stravalib` package
- Strava API credentials (free)

## Setup

1. **Install dependencies:**
   ```bash
   pip install stravalib
   ```

2. **Run setup:**
   ```bash
   python3 setup.py
   ```

   This will:
   - Guide you through creating a Strava API app
   - Handle OAuth authentication
   - Save credentials to `~/.strava_credentials.json`

## Commands

**Recent activities:**
```bash
python3 strava_control.py recent
```

**Weekly/monthly stats:**
```bash
python3 strava_control.py stats
```

**Last activity:**
```bash
python3 strava_control.py last
```

## Examples

Ask OpenClaw:
- "Show my recent Strava activities"
- "What are my Strava stats this week?"
- "What was my last Strava workout?"

## Files

- `strava_control.py` - Main controller script
- `setup.py` - Interactive setup wizard
- `SKILL.md` - This file
- `~/.strava_credentials.json` - Credentials (auto-generated)

## Notes

- Requires Strava account (free)
- API credentials are personal and should not be shared
- Rate limits: 100 requests per 15 minutes, 1,000 daily

README excerpt

# Strava Python - OpenClaw Skill

Query your Strava activities, stats, and workout data through OpenClaw using Python and stravalib.

## Why This Skill?

**Compared to other Strava skills:**
- ✅ **Python-based** (not curl) - easier to extend and maintain
- ✅ **Interactive setup wizard** - no manual JSON configuration
- ✅ **User-friendly** - simple commands, clear output
- ✅ **Auto-refresh tokens** - handles OAuth automatically

## Features

- 📊 View recent activities
- 🏃 Get weekly/monthly running stats
- 🚴 Get weekly/monthly cycling stats
- ⏱️ Check your last workout

## Quick Start

### 1. Install Dependencies

```bash
pip install stravalib
```

### 2. Create Strava API App

1. Go to https://www.strava.com/settings/api
2. Click **"Create App"**
3. Fill in:
   - **Application Name:** OpenClaw Strava
   - **Category:** Tool or Analytics
   - **Website:** `http://localhost`
   - **Authorization Callback Domain:** `localhost`
4. Click **"Create"**
5. Copy your **Client ID** and **Client Secret**

### 3. Run Setup

```bash
python3 setup.py
```

Follow the prompts to authorize your app.

### 4. Test It

```bash
python3 strava_control.py recent
python3 strava_control.py stats
python3 strava_control.py last
```

## Installation for OpenClaw

1. Copy this folder to `~/.openclaw/workspace/skills/strava/` or your OpenClaw skills directory
2. Run the setup script
3. Restart OpenClaw if needed

## Usage with OpenClaw

Ask your OpenClaw assistant:
- "Show my recent Strava activities"
- "What are my Strava stats this week?"
- "What was my last workout?"

## Commands

| Command | Description |
|---------|-------------|
| `recent` | Show recent activities (default: 5) |
| `stats` | Show weekly/monthly stats for running and cycling |
| `last` | Show details of your last activity |

## Requirements

- Python 3.7+
- `stravalib` package
- Strava account (free)
- Strava API credentials (free)

## Configuration

Credentials are stored in `~/.strava_credentials.json`. This file is...

Related Claw Skills

heyixuan2

bambu-studio-ai

★ 41

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).

human-pages-ai

humanpages

★ 3

Search and hire real humans for tasks — photography, delivery, research, and more

zseven-w

openclaw-skills

★ 1

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

capt-marbles

geo-optimization

★ 1

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.

cclank

news-aggregator-skill

★ 0

Comprehensive news aggregator that fetches, filters, and deeply analyzes real-time content from 8 major sources: Hacker News, GitHub Trending, Product Hunt, 36Kr, Tencent News, WallStreetCN, V2EX, and Weibo. Best for 'daily scans', 'tech news briefings', 'finance updates', and 'deep interpretations' of hot topics.

cccarv82

openclaw-backup-optimized

★ 0

Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos.