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:
-
Check for DOSSIER.md in the data directory
-
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
-
Configure heartbeat settings (optional, OpenClaw)
-
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:
- Check
./SECTION_11.md (data directory root)
- If not found, check
section11/SECTION_11.md
- If not found, check connected repo (if GitHub connector is available)
- 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
- JSON data (always read latest.json first, then history.json for longitudinal context)
- Protocol rules (SECTION_11.md)
- Athlete dossier (DOSSIER.md)
- Interval data (intervals.json — on-demand, see below)
- Route/terrain data (routes.json — on-demand, when events have
has_terrain: true)
- 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:
- Check data directory
reports/ directory
- If not found, check
section11/examples/reports/
- If not found, check connected repo (if GitHub connector is available)
- 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.