← 返回 Skills 市场
aplomb2

AI Running Coach

作者 aplomb2 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
326
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ai-running-coach
功能描述
AI Running Coach — personalized training via IM with automatic Strava-driven plan adjustments. Use when the user asks about running training, workout plans,...
使用说明 (SKILL.md)

AI Running Coach

OpenClaw-powered running coach that delivers personalized training via IM. The core value: Strava data flows in automatically, and the AI adjusts your plan in real-time.

Setup

The arc CLI handles all API calls. Token stored at ~/.config/airunningcoach/config.json.

First-Time Onboarding

If no token is configured (arc config show returns "not set"):

  1. Send the user this welcome message:
🏃 Welcome to AI Running Coach!

To connect your account:
1. Register → https://airunningcoach.net/register
2. Choose Pro (3-day free trial, cancel anytime)
3. Connect Strava → Profile page
4. Generate API Token → Profile page
5. Paste your arc_xxx token here

Already have an account? Just paste your token!
  1. When user pastes a token: arc config set-token \x3Ctoken> then arc config test
  2. After successful connection, suggest: "Want me to check your Strava data and create a plan?"

Core Workflows

1. Daily Check-In

arc today    # Today's workout
arc week     # Full week view

Format the output in a friendly IM message. Add encouragement.

2. AI Coach Chat (THE MAIN INTERFACE)

arc coach "user's message"

The coach endpoint has full context: active plan, Strava history, body feedback, personal records. Use this for ALL conversational interactions — it handles:

  • Training questions ("How should I pace today's tempo?")
  • Data queries ("What's my fastest 5K?" "How many km did I run this month?")
  • Plan adjustments ("I'm injured, what should I do?")
  • Motivation and encouragement

3. Creating a Plan via IM (CONVERSATIONAL FLOW)

Do NOT ask for all parameters at once. Guide the user through a conversation:

Step 1 — Ask: "What distance are you training for? (5K / 10K / Half Marathon / Marathon)"

Step 2 — Ask: "How many weeks do you have? (4-16 weeks)"

Step 3 — Ask: "What's your goal? (Race a specific time / General fitness / Weight loss)"

  • If race: "Do you have a target finish time?" (can suggest based on Strava data)

Step 4 — Ask: "Any days you can't run? (e.g., Monday, Sunday)"

Step 5 — Confirm and generate:

arc plan create --race \x3Ctype> --weeks \x3Cn> [--target \x3Ctime>] [--goal \x3Cgoal>] [--mileage \x3Clevel>]

If user has Strava data, check their current mileage first:

arc strava summary

Then auto-fill --mileage based on their actual weekly average.

4. Strava Data & Records

arc strava recent     # Last 5 activities
arc strava summary    # Full stats: records, PBs, weekly avg, monthly breakdown

Use strava summary when user asks about:

  • "What's my fastest pace?"
  • "How far have I run this month?"
  • "What's my longest run?"
  • "Am I running more than last month?"

5. Adaptive Coaching (AUTO-ADJUSTMENT)

When user reports fatigue/injury:

arc feedback --type \x3Cfatigue|injury|soreness|illness> --severity \x3C1-5> --message "description"

Then use arc coach to get adjusted recommendations. The coach considers all feedback.

When Strava data shows:

  • Declining pace → Coach suggests recovery
  • Missed workouts → Coach adjusts plan
  • Faster than expected → Coach may increase intensity

6. Stats & Progress

arc stats    # Completion rate, streaks, totals

Command Reference

Command Purpose
arc config set-token \x3Ct> Save API token
arc config test Verify connection
arc today Today's workout
arc week This week's plan
arc stats Running statistics
arc coach "msg" Chat with AI coach
arc plan create --race X --weeks N Generate plan
arc strava recent Recent activities
arc strava summary Full Strava analytics
arc feedback --type T --message "M" Report body status

Error Handling

  • 401: Token expired → arc config set-token \x3Cnew_token> (regenerate at profile page)
  • 403: Subscription needed → https://airunningcoach.net/choose-plan (3-day free trial!)
  • 404: No plan → Start conversational plan creation flow

External Endpoints

Endpoint Data Sent
airunningcoach.net/api/v1/* API token, training queries, plan parameters

Security & Privacy

  • Token stored locally at ~/.config/airunningcoach/config.json
  • All data sent to airunningcoach.net via HTTPS
  • Strava data accessed through user's own OAuth connection

Trust Statement

This skill sends running data and queries to airunningcoach.net. Install only if you trust this service. Privacy policy: https://airunningcoach.net/privacy

安全使用建议
This skill appears to implement the advertised Strava-based coaching using airunningcoach.net, but pay attention before installing: - Token handling: The skill asks users to provide an API token. Do NOT paste your token into an open chat unless you trust the agent/session — pasting into chat can expose the token to logs and the agent. Prefer running the setup script locally in a terminal so the token is only written to your home directory. - Config path inconsistency: Some scripts use ~/.config/airunningcoach/config.json and others use ~/.config/ai-running-coach/config.json (hyphen vs no hyphen). This will cause behavior inconsistencies (one tool may not see the token another saved). If you install, inspect which path the installed 'arc' command actually uses and unify the location manually before storing secrets. - Verify the service: The skill communicates only with https://airunningcoach.net. If you don't already trust that site, review its privacy policy and the public repository (package.json references a GitHub URL) before giving it your Strava/ARC token. - Safety precautions: Review the included scripts yourself (they're plain shell + python) or run them in a restricted account/container. If you proceed, create the config file manually (with correct path) and set restrictive file permissions (chmod 600) rather than pasting tokens in chat; monitor your Strava/account for unexpected activity. I rate this 'suspicious' because the capability is coherent with its purpose but the token-handling guidance and inconsistent config paths are sloppy and materially increase the risk of accidental exposure or misconfiguration.
功能分析
Type: OpenClaw Skill Name: ai-running-coach Version: 1.0.1 The skill bundle provides a functional interface for a running coach service but contains multiple command injection vulnerabilities. In the 'scripts/arc' CLI tool, several functions (cmd_config, cmd_coach, cmd_plan_create, and cmd_feedback) use unsanitized shell variables within python3 -c string interpolation. This pattern allows for arbitrary code execution if a user provides a specially crafted token or message. While the behavior is aligned with the stated purpose and communication is limited to the legitimate domain airunningcoach.net, the high-risk nature of these vulnerabilities meets the criteria for a suspicious classification.
能力评估
Purpose & Capability
Name/description match the code: the CLI and scripts call https://airunningcoach.net/api/v1/* and implement plan/coach/stats flows described in SKILL.md. The package.json and scripts indicate the 'arc' CLI is the intended interface. Minor mismatch: package.json lists homepage/repo while SKILL.md lists no homepage; this is probably quality/metadata sloppiness but not malicious.
Instruction Scope
SKILL.md tells the agent to have users 'paste your arc_xxx token here' in IM and then run arc config set-token <token>. Asking users to paste secret tokens into chat (agent-visible context) is risky — it exposes the token to the agent/session logs. Otherwise, runtime instructions and commands (arc today/week/coach/strava/feedback) are limited to the stated service and do not instruct reading unrelated system files or contacting other endpoints.
Install Mechanism
No install spec (instruction-only / CLI script included). Scripts are local and executed, no remote downloads or package installs. That lowers supply-chain risk; nothing fetches arbitrary code from untrusted URLs.
Credentials
The registry metadata declares no required env vars or credentials — appropriate. The scripts store and read a local token file under ~/.config. However there are inconsistent config paths across files: some scripts use ~/.config/airunningcoach/config.json, others use ~/.config/ai-running-coach/config.json (hyphen vs no hyphen). Comments in some scripts also mention ARC_API_TOKEN even though the scripts read the config file. These inconsistencies could lead to tokens being stored/read in different places or to confusion about where secrets live.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It writes a config file under the user's home (~/.config/airunningcoach or ~/.config/ai-running-coach) which is a normal, limited persistence for a CLI that stores an API token.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-running-coach
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-running-coach 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Full skill with arc CLI, Strava summary, conversational plan creation
v1.0.0
AI Running Coach v1.0.0 - Initial release of AI Running Coach with IM-based personalized training, powered by automatic Strava-driven plan adjustments. - Easy onboarding with guided token setup and Strava integration for real-time data sync. - Conversational workflows for plan creation, daily check-ins, workout stats, and adaptive coaching. - Full support for syncing, analyzing, and adjusting training plans based on Strava activity and user feedback. - Robust command set for stats, records, plan management, and coach chat.
元数据
Slug ai-running-coach
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

AI Running Coach 是什么?

AI Running Coach — personalized training via IM with automatic Strava-driven plan adjustments. Use when the user asks about running training, workout plans,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 326 次。

如何安装 AI Running Coach?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ai-running-coach」即可一键安装,无需额外配置。

AI Running Coach 是免费的吗?

是的,AI Running Coach 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AI Running Coach 支持哪些平台?

AI Running Coach 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AI Running Coach?

由 aplomb2(@aplomb2)开发并维护,当前版本 v1.0.1。

💬 留言讨论