← 返回
数据分析 中文

Section 11: Endurance Training Coach (Intervals.icu)

Evidence-based endurance coaching protocol (v11.35). Use when analyzing training data, reviewing sessions, generating pre/post-workout reports, planning work...
基于证据的耐力训练指导方案(v11.35)。适用于分析训练数据、回顾训练、生成训练前后报告、规划工作……
crankaddict
数据分析 clawhub v1.0.13 3 版本 99498.3 Key: 无需
★ 5
Stars
📥 3,073
下载
💾 0
安装
3
版本
#ai-coach#ai-coaching#coach#cycling#endurance#endurance-training#interval-training#intervals-icu#latest#polarized-training#stable#training#training-science

概述

Section 11 — AI Coaching Protocol

File Locations

Data files (latest.json, history.json, intervals.json, ftp_history.json, routes.json, DOSSIER.md, section11/) live in the athlete's data directory — typically ~/training-data/. HEARTBEAT.md lives in the agent workspace — the directory the agent runs from (e.g., ~/clawd/). These may or may not be the same directory.

First Use Setup

On first use:

  1. Check for DOSSIER.md in the data directory
    • If found, use it
    • If not found, check connected repo (if GitHub connector is available)
    • If not found, check section11/DOSSIER_TEMPLATE.md
    • If not found, fetch from: https://raw.githubusercontent.com/CrankAddict/section-11/main/DOSSIER_TEMPLATE.md
    • Ask the athlete to fill in their data (zones, goals, schedule, etc.)
    • Save as DOSSIER.md in the data directory root
  1. Set up JSON data source
    • Local setup (recommended): Athlete runs sync.py on a timer, producing latest.json, history.json, intervals.json, ftp_history.json, and routes.json (when events have GPX/TCX attachments) in the data directory. See examples/json-local-sync/SETUP.md for the full local pipeline.
    • GitHub connector: If the platform has a GitHub connector (Claude, ChatGPT, Gemini, Mistral, etc.), the athlete connects their private data repo directly. The AI reads files through the connector — no URLs needed. If the athlete also commits DOSSIER.md and SECTION_11.md to the data repo, the connector provides everything in one connection.
    • GitHub URL fetch: Athlete creates a private or public GitHub repo for training data with automated sync. Save raw URLs in DOSSIER.md under "Data Source".
    • latest.json — current 7-day snapshot + 28-day derived metrics
    • history.json — longitudinal data (daily 90d, weekly 180d, monthly 3y)
    • intervals.json — per-interval segment data for recent structured sessions, plus DFA a1 session rollups when AlphaHRV recorded (14-day retention)
    • ftp_history.json — dated FTP changes (indoor/outdoor), used for staleness tracking and benchmark comparison
    • routes.json — route/terrain data for events with GPX/TCX attachments (when present)
    • See: https://github.com/CrankAddict/section-11#2-set-up-your-data-mirror-optional-but-recommended
  1. Configure heartbeat settings (optional, OpenClaw)
    • Check for HEARTBEAT.md in the agent workspace
    • If not found, check section11/examples/agentic/openclaw/HEARTBEAT_TEMPLATE.md
    • If not found, fetch from: https://raw.githubusercontent.com/CrankAddict/section-11/main/examples/agentic/openclaw/HEARTBEAT_TEMPLATE.md
    • Ask athlete for their specific values (location, timezone, riding hours, weather thresholds, notification hours)
    • Save as HEARTBEAT.md in the agent workspace
  1. Configure data discipline rule (agentic platforms with persistent identity)
    • Add to the agent's persistent configuration (SOUL.md, system prompt, custom instructions, or equivalent):
    • "Every training metric cited — watts, duration, TSS, HR, zones — must come from a JSON data read in the current response. No data read = no number. Conversation history, memory, and prior messages are not data sources."

Do not proceed with coaching until dossier and data source are complete.

Protocol

Load the coaching protocol using this precedence:

  1. Check ./SECTION_11.md (data directory root)
  2. If not found, check section11/SECTION_11.md
  3. If not found, check connected repo (if GitHub connector is available)
  4. If not found, fetch from: https://raw.githubusercontent.com/CrankAddict/section-11/main/SECTION_11.md

If both root and section11/ copies exist, prefer the root copy.

Current version: 11.35

External Sources

All external files referenced by this skill (sync.py, SECTION_11.md, templates, setup guides) are maintained in the open-source CrankAddict/section-11 repository and can be inspected there.

Data Hierarchy

  1. JSON data (always read latest.json first, then history.json for longitudinal context)
  2. Protocol rules (SECTION_11.md)
  3. Athlete dossier (DOSSIER.md)
  4. Interval data (intervals.json — on-demand, see below)
  5. Route/terrain data (routes.json — on-demand, when events have has_terrain: true)
  6. Heartbeat config (HEARTBEAT.md)

Required Actions

  • Read or fetch latest.json before any training question. Check data directory first, then connected repo (if GitHub connector is available), then fall back to dossier-specified URLs.
  • Read or fetch history.json when trend analysis, phase context, or longitudinal comparison is needed. Same precedence.
  • Load intervals.json when analyzing a specific activity where has_intervals: true OR has_dfa: true. For block reports, load when any session in the block has either flag. Use for: interval compliance, pacing analysis, cardiac drift per set, recovery quality, DFA a1 session-level interpretation. Do not load for readiness, load management, or weekly summaries.
  • Load routes.json when a planned event has has_terrain: true. Use for: route analysis, terrain-adjusted pacing, pre-ride briefing, race preparation. Same precedence as other JSON files.
  • For all files (JSON data, protocol, dossier, templates): data directory → connected repo → uploaded/attached files → URL fetch.
  • No virtual math on pre-computed metrics — use values from the JSON for CTL, ATL, TSB, ACWR, RI, zones, etc. Custom analysis from raw data is fine when pre-computed values don't cover the question.
  • Every training metric cited — in reports, recommendations, or conversation — must come from a JSON data read in the current response. Conversation history, memory, and prior messages are not data sources.
  • Check zone_preference in READ_THIS_FIRST and zone_basis fields on TID/zone blocks — the athlete may have configured HR-preferred zones for specific sports (e.g., running). When zone_basis is not the default "power", note this in reports.
  • Follow Section 11 C validation checklist before generating recommendations
  • Cite frameworks per protocol (checklist item #10)

Write Capabilities

If push.py is available (section11/examples/agentic/push.py or in the data repo), the skill can manage the athlete's Intervals.icu calendar and training data:

  • push — write planned workouts to calendar
  • list — show planned workouts for a date range
  • move — reschedule a workout to a different date
  • delete — remove a workout from the calendar
  • set-threshold — update sport-specific thresholds (FTP, indoor FTP, LTHR, max HR, threshold pace). Only after validated test results, never from estimates
  • annotate — add notes to completed activities (description by default, --chat for messages panel) or planned workouts (NOTE: prepended to description)

All write operations default to preview mode — nothing is written without --confirm. Execution via local CLI or GitHub Actions dispatch. See examples/agentic/README.md for full usage, workout syntax, and template ID mappings.

Only available on platforms that can execute code or trigger GitHub Actions (OpenClaw, Claude Code, Cowork, etc.). Web chat users cannot use this. GitHub connectors are read-only — they provide data access but cannot trigger Actions or execute push.py.

Report Templates

Use standardized report formats. Load templates using this precedence:

  1. Check data directory reports/ directory
  2. If not found, check section11/examples/reports/
  3. If not found, check connected repo (if GitHub connector is available)
  4. If not found, fetch from: https://raw.githubusercontent.com/CrankAddict/section-11/main/examples/reports/

Templates:

  • Pre-workout: Readiness assessment, Go/Modify/Skip recommendation — PRE_WORKOUT_REPORT_TEMPLATE.md
  • Post-workout: Session metrics, plan compliance, weekly totals — POST_WORKOUT_REPORT_TEMPLATE.md
  • Weekly: Week summary, compliance, phase context — WEEKLY_REPORT_TEMPLATE.md
  • Block: Mesocycle review, phase progression — BLOCK_REPORT_TEMPLATE.md
  • Brevity rule: Brief when metrics are normal. Detailed when thresholds are breached or athlete asks "why."

Heartbeat Operation

On each heartbeat, follow the checks and scheduling rules defined in your HEARTBEAT.md:

  • Daily: training/wellness observations (from latest.json), weather (only if conditions are good)
  • Weekly: background analysis (use history.json for trend comparison)
  • Self-schedule next heartbeat with randomized timing within notification hours

Security & Privacy

Data ownership & storage

All training data is stored where the user chooses: on their own device or in a Git repository they control. This project does not run any backend service, cloud storage, or third-party infrastructure. Nothing is uploaded anywhere unless the user explicitly configures it.

The skill reads from: user-configured JSON data sources and DOSSIER.md in the data directory, and HEARTBEAT.md in the agent workspace. It writes to: DOSSIER.md in the data directory and HEARTBEAT.md in the agent workspace (during first-use setup only).

Data Handling

sync.py redacts athlete_id from the output (always on, unconditional). Activity names are passed through as-is — they carry coaching context (route identification, terrain association). All other training data — activities, wellness, intervals, power/HR values, dates — is passed through to the AI coach as-is.

Network behavior

When running locally (files in the data directory), no network requests are needed for protocol, templates, or data. When files are not available locally, the skill performs simple HTTP GET requests to fetch them from configured sources.

It does not send API keys, LLM chat histories, or any user data to external URLs. All fetched content comes from sources the user has explicitly configured.

Recommended setup: local files

The safest and simplest setup is fully local: sync.py on a timer, all files on your device. See examples/json-local-sync/SETUP.md for the complete local pipeline. If you use GitHub, use a private repository. See examples/json-auto-sync/SETUP.md for automated sync setup.

Protocol and template URLs

The GitHub URLs are fallbacks for when local files aren't available. The risk model is standard open-source supply-chain.

Heartbeat / automation

The heartbeat mechanism is fully opt-in. It is not enabled by default and nothing runs automatically unless the user explicitly configures it. When enabled, it performs a narrow set of actions: read training data, run analysis, write updated summaries/plans to the user's chosen location.

Private repositories & agent access

Section 11 does not implement GitHub authentication. It reads files from whatever locations the runtime environment can already access:

  • Running locally: reads from your filesystem
  • Running in an agent (OpenClaw, Claude Cowork, etc.) with GitHub access configured: can read/write repos that the agent's token/SSH key allows

Access is entirely governed by credentials the user has already configured in their environment.

版本历史

共 3 个版本

  • v1.0.13 当前
    2026-04-30 08:17 安全 安全
  • v1.0.12
    2026-03-28 12:43 安全
  • v1.0.9
    2026-03-07 11:36

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,674
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 269 📥 56,891
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,859