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:
CODEBLOCK0
- 2. When user pastes a token:
arc config set-token <token> then INLINECODE4 - 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:
CODEBLOCK3
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 <fatigue|injury|soreness|illness> --severity <1-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
CODEBLOCK7
Command Reference
| Command | Purpose |
|---|
| INLINECODE8 | Save API token |
| INLINECODE9 |
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 <new_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 |
|---|
| INLINECODE19 | API token, training queries, plan parameters |
Security & Privacy
- - Token stored locally at INLINECODE20
- 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
AI跑步教练
基于OpenClaw驱动的跑步教练,通过即时通讯提供个性化训练。核心价值:Strava数据自动流入,AI实时调整你的计划。
设置
arc命令行工具处理所有API调用。令牌存储在~/.config/airunningcoach/config.json。
首次引导
如果未配置令牌(arc config show返回未设置):
- 1. 向用户发送此欢迎消息:
🏃 欢迎使用AI跑步教练!
要关联你的账户:
- 1. 注册 → https://airunningcoach.net/register
- 选择专业版(3天免费试用,随时取消)
- 关联Strava → 个人资料页面
- 生成API令牌 → 个人资料页面
- 在此粘贴你的arc_xxx令牌
已有账户?直接粘贴你的令牌!
- 2. 当用户粘贴令牌时:arc config set-token <令牌> 然后 arc config test
- 连接成功后,建议:需要我查看你的Strava数据并创建计划吗?
核心工作流
1. 每日签到
bash
arc today # 今日训练
arc week # 整周视图
以友好的即时通讯消息格式输出。添加鼓励语。
2. AI教练聊天(主要界面)
bash
arc coach 用户的消息
教练端点拥有完整上下文:活跃计划、Strava历史、身体反馈、个人记录。所有对话交互均使用此功能——它处理:
- - 训练问题(今天节奏跑应该怎么配速?)
- 数据查询(我最快5公里是多少?这个月跑了多少公里?)
- 计划调整(我受伤了,该怎么办?)
- 激励和鼓励
3. 通过即时通讯创建计划(对话流程)
不要一次性询问所有参数。 通过对话引导用户:
第一步 — 询问:你正在为哪个距离训练?(5公里/10公里/半程马拉松/全程马拉松)
第二步 — 询问:你有多少周时间?(4-16周)
第三步 — 询问:你的目标是什么?(特定完赛时间/一般健身/减重)
- - 如果是比赛:你有目标完赛时间吗?(可根据Strava数据建议)
第四步 — 询问:有哪些日子不能跑步?(例如:周一、周日)
第五步 — 确认并生成:
bash
arc plan create --race <类型> --weeks <周数> [--target <时间>] [--goal <目标>] [--mileage <水平>]
如果用户有Strava数据,先查看当前跑量:
bash
arc strava summary
然后根据实际周平均跑量自动填写--mileage。
4. Strava数据与记录
bash
arc strava recent # 最近5次活动
arc strava summary # 完整统计:记录、个人最佳、周平均、月度分解
当用户询问以下问题时使用strava summary:
- - 我最快的配速是多少?
- 我这个月跑了多远?
- 我最长跑距是多少?
- 我比上个月跑得多吗?
5. 自适应教练(自动调整)
当用户报告疲劳/受伤时:
bash
arc feedback --type <疲劳|受伤|酸痛|生病> --severity <1-5> --message 描述
然后使用arc coach获取调整后的建议。教练会考虑所有反馈。
当Strava数据显示:
- - 配速下降 → 教练建议恢复
- 错过训练 → 教练调整计划
- 比预期快 → 教练可能增加强度
6. 统计与进度
bash
arc stats # 完成率、连续记录、总计
命令参考
| 命令 | 用途 |
|---|
| arc config set-token <t> | 保存API令牌 |
| arc config test |
验证连接 |
| arc today | 今日训练 |
| arc week | 本周计划 |
| arc stats | 跑步统计 |
| arc coach 消息 | 与AI教练聊天 |
| arc plan create --race X --weeks N | 生成计划 |
| arc strava recent | 最近活动 |
| arc strava summary | 完整Strava分析 |
| arc feedback --type T --message M | 报告身体状态 |
错误处理
- - 401:令牌过期 → arc config set-token <新令牌>(在个人资料页面重新生成)
- 403:需要订阅 → https://airunningcoach.net/choose-plan(3天免费试用!)
- 404:无计划 → 启动对话式计划创建流程
外部端点
| 端点 | 发送数据 |
|---|
| airunningcoach.net/api/v1/* | API令牌、训练查询、计划参数 |
安全与隐私
- - 令牌本地存储在~/.config/airunningcoach/config.json
- 所有数据通过HTTPS发送至airunningcoach.net
- Strava数据通过用户自己的OAuth连接访问
信任声明
此技能将跑步数据和查询发送至airunningcoach.net。仅在你信任此服务时安装。隐私政策:https://airunningcoach.net/privacy