Goal
Create a realistic next-week plan aligned with the user's goal and current risk level.
Procedure
- •Fetch 4-week context via
weekly_stats(weeks=4, week_start=monday, tz_name=Asia/Tokyo). - •Optionally call
detect_last_ride_and_comment()to tailor tone and highlight the latest ride. - •Ask/Infer goal:
- •default: base building (if not specified)
- •Output a 7-day plan:
- •1 key session max (or none if risk=high)
- •2-4 easy sessions (Z2)
- •at least 1 rest day
- •include a brief "why" for each day
- •Include guardrails:
- •cap weekly volume increase (e.g., ~10% heuristic)
- •if risk high: emphasize recovery
Output format (Markdown)
- •Weekly objective
- •Day-by-day bullets (Mon..Sun)
- •Safety notes