Skip to content
Back to skills

strava

DSecurity

Query Strava fitness data including activities, athlete stats, segments, routes, clubs, and gear. Use when the user asks about cycling, running, swimming, workouts, training, or Strava data.

  • 27 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 11, 2026
developmentgobashgit

Works with

  • cli

Security analysis

D42/100
  • criticalPipes output to a shell interpreter
  • mediumUses curl or wget to download content
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro scans all 15 files and shows the line behind each finding

Scanned June 11, 2026

npx -y skills add eddmann/strava-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of strava?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for strava
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/eddmann-strava/badge)](https://www.skillsdirectory.com/skills/eddmann-strava)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: strava
description: Query Strava fitness data including activities, athlete stats, segments, routes, clubs, and gear. Use when the user asks about cycling, running, swimming, workouts, training, or Strava data.
---

# Strava CLI Skill

Query and manage Strava data via the `strava` CLI.

## Prerequisites

- Install CLI: `curl -fsSL https://raw.githubusercontent.com/eddmann/strava-cli/main/install.sh | sh`
- Authenticate: `strava auth login` (requires `STRAVA_CLIENT_ID`, `STRAVA_CLIENT_SECRET`)

## Quick Context

Get aggregated athlete data in one call:

```bash
strava context                          # Full context: athlete, stats, gear, clubs, activities
strava context --activities 10          # More recent activities
strava context --focus stats,gear       # Specific sections only
```

## Commands

Run `strava --help` or `strava <command> --help` to discover all options.

### Activities

```bash
strava activities list [--after DATE] [--before DATE] [--limit N]
strava activities get <ID>
strava activities streams <ID> [--keys time,distance,heartrate,watts]
strava activities laps <ID>
strava activities zones <ID>
strava activities comments <ID>
strava activities kudos <ID>
```

### Athlete

```bash
strava athlete              # Profile
strava athlete stats        # YTD and all-time totals
strava athlete zones        # HR/power zones
```

### Segments & Efforts

```bash
strava segments get <ID>
strava segments starred
strava segments explore --bounds SW_LAT,SW_LNG,NE_LAT,NE_LNG
strava efforts get <ID>
strava efforts list --segment-id <ID>
```

### Routes, Clubs, Gear

```bash
strava routes list
strava routes get <ID>
strava routes streams <ID>
strava routes export <ID> --format gpx|tcx
strava clubs list
strava clubs get <ID>
strava clubs members <ID> [--limit N]
strava clubs activities <ID> [--limit N]
strava gear get <GEAR_ID>
```

## Data Units

| Field                     | Unit    |
| ------------------------- | ------- |
| distance                  | meters  |
| moving_time, elapsed_time | seconds |
| average_speed, max_speed  | m/s     |
| elevation                 | meters  |
| dates                     | ISO8601 |

## Common Patterns

```bash
# Recent activities
strava activities list --limit 10

# This month's activities
strava activities list --after 2025-12-01

# Filter with jq
strava activities list | jq '[.[] | select(.sport_type=="Run")]'

# Total distance
strava activities list | jq '[.[].distance] | add'
```

## Auth Status

```bash
strava auth status    # Check if authenticated
strava auth refresh   # Refresh token
strava auth logout    # Clear credentials
```

## Sport Types

Run, TrailRun, Walk, Hike, Ride, MountainBikeRide, GravelRide, EBikeRide, VirtualRide, VirtualRun, Swim, Workout, WeightTraining, Yoga, CrossFit, Rowing, Kayaking, Surf, Ski, Snowboard, IceSkate, Golf, Soccer, Tennis

## Exit Codes

- 0 = Success
- 1 = General error
- 2 = Auth error (run `strava auth login`)

Files in this skill

  • .python-version5 B
  • AGENTS.md392 B
  • CHANGELOG.md1.6 KB
  • CLAUDE.md9 B
  • Makefile2.8 KB
  • SKILL.md2.9 KB
  • install-skill.sh950 B
  • install.sh1.8 KB
  • pyproject.toml1.7 KB
  • site/index.html40.5 KB
  • site/logo.png41.8 KB
  • tests/__init__.py28 B
  • tests/conftest.py7.4 KB
  • tests/test_cli.py24.8 KB
  • tests/test_client.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…