360 Secure SkillHub
360 安全技能中心

Strava CLI Skill

该 Skill 指导使用外部 stravacli 命令行工具访问 Strava 的运动员资料、活动、路线、赛段、俱乐部和装备等数据,并在确认后执行活动更新或文件上传;使用前需安装该 CLI 并完成认证。

brainsoft-raxat
brainsoft-raxat
热度 84.07
最近更新 2026-05-11 17:26:41
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:健康 / API 集成 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add stravacli
Metadata
name
stravacli
description
Use the stravacli terminal tool to access Strava data (athlete profile, activities, streams, routes, segments, clubs, gear, uploads) and perform limited write actions (activity update/upload). Trigger when the user asks for Strava metrics/history/exports or wants Strava automation via CLI.

stravacli

Use stravacli for Strava operations from terminal.

Prerequisites

This skill depends on the external CLI project:

Install stravacli before using this skill:

Then verify binary is available in PATH:

  • stravacli --version

Setup

  • Authenticate before data commands:
    • Local: stravacli auth login
    • Headless/VPS: stravacli auth login --remote, then complete with stravacli auth login --auth-url '<callback-url>'
  • Verify auth: stravacli auth status

Read commands (preferred by default)

  • Athlete profile: stravacli athlete me --json
  • Athlete stats: stravacli athlete stats --json
  • Athlete zones: stravacli athlete zones --json
  • List activities: stravacli activities list --per-page 10 --json
  • Activity details: stravacli activities get <id> --json
  • Activity laps: stravacli activities laps <id> --json
  • Activity streams: stravacli activities streams <id> --json
  • Routes list/get: stravacli routes list --json / stravacli routes get <id> --json
  • Export route file: stravacli routes export <id> --format gpx --out ./route.gpx
  • Segments/starred/explore: stravacli segments starred --json, stravacli segments explore --bounds <swlat,swlng,nelat,nelng> --json
  • Clubs: stravacli clubs list --json
  • Gear: stravacli gear get <id> --json
  • Upload status: stravacli uploads get <uploadId> --json

Write commands (ask/confirm first)

  • Update activity metadata: stravacli activities update <id> --name 'New name' --description '...'
  • Upload activity file: stravacli activities upload --file ./run.fit --yes --json

Always confirm intent before write actions.

Output conventions

  • Use --json when results need parsing or reuse.
  • Keep user summaries concise; include key metrics and IDs.
  • If a command fails with auth errors, suggest stravacli auth status then re-login.