本文へ移動
cccskills
無料GitHub で公開

strava

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.

インストール方法を見る

含まれるファイル(43)

  • SKILL.md2.9 KB
  • .github/workflows/deploy-pages.yml1.6 KB
  • .github/workflows/release.yml4.7 KB
  • .github/workflows/test.yml921 B
  • .gitignore264 B
  • .python-version5 B
  • AGENTS.md392 B
  • CHANGELOG.md1.6 KB
  • docs/heading.png1.7 MB
  • install-skill.sh950 B
  • install.sh1.8 KB
  • LICENSE1.0 KB
  • Makefile2.8 KB
  • pyproject.toml1.7 KB
  • README.md8.9 KB
  • site/index.html40.5 KB
  • site/logo.png41.8 KB
  • site/preview.png1.7 MB
  • src/strava_cli/__init__.py101 B
  • src/strava_cli/__main__.py117 B
  • src/strava_cli/auth.py8.7 KB
  • src/strava_cli/cli.py4.3 KB
  • src/strava_cli/client.py13.1 KB
  • src/strava_cli/commands/__init__.py38 B
  • src/strava_cli/commands/activities.py7.8 KB
  • src/strava_cli/commands/athlete.py1.5 KB
  • src/strava_cli/commands/auth.py5.0 KB
  • src/strava_cli/commands/clubs.py1.6 KB
  • src/strava_cli/commands/context.py6.1 KB
  • src/strava_cli/commands/efforts.py1.3 KB
  • src/strava_cli/commands/gear.py588 B
  • src/strava_cli/commands/routes.py3.0 KB
  • src/strava_cli/commands/segments.py2.7 KB
  • src/strava_cli/commands/upload.py4.8 KB
  • src/strava_cli/config.py8.0 KB
  • src/strava_cli/decorators.py7.3 KB
  • src/strava_cli/exceptions.py3.5 KB
  • src/strava_cli/output.py9.7 KB
  • tests/__init__.py28 B
  • tests/conftest.py7.4 KB
  • tests/test_cli.py24.8 KB
  • tests/test_client.py1.8 KB
  • uv.lock126.3 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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:

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

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

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

Segments & Efforts

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

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

FieldUnit
distancemeters
moving_time, elapsed_timeseconds
average_speed, max_speedm/s
elevationmeters
datesISO8601

Common Patterns

# 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

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)

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

このスキルの問題を報告する