Add and prepare for a cycling event. Use when the user says 'prep event', 'add event', 'new event', 'prepare for race', 'race prep', 'I have a race coming up', 'sign up for', or any variation about adding or preparing for a cycling event.
Add a cycling event (race, gran fondo, charity ride, personal challenge) and build or adjust training plans to prepare for it.
Read the project's CLAUDE.md before working — it defines periodization methodology and coaching rules.
Ask the athlete about the event. Collect:
Run in parallel:
tp_get_events for the next 12 months — see what's already scheduledtp_get_focus_event — current A-race if anyevents/ev-*.mdFlag any conflicts: events too close together, multiple A-races, etc.
Work backward from the event date:
If fewer than 8 weeks are available, compress phases and flag that preparation will be limited.
Consider the athlete's current fitness (tp_get_fitness) to calibrate starting point.
Show the athlete:
This is a conversation checkpoint — wait for approval before building the plan.
If the event doesn't exist in TrainingPeaks, create it with tp_create_event. Set priority accordingly.
Create events/ev-<slug>.md (e.g., events/ev-gran-fondo-september-2026.md).
Include frontmatter:
---