Recipes Use-case walk-throughs

Big goal Training week

Building towards a race or a big physical goal: place each training session from the person's Habits into the week, add a stretch wind-down after each, and record how it went. A missed session moves; it doesn't break anything.

View as Markdown

When

The person is building towards a race or another big physical goal, and wants this week's training placed.

Calls

  1. xale_read_habits: the training Habits and their cadence.
  2. xale_read_schedule for the week.
  3. Propose the sessions, with rest days in. After a yes:
  4. xale_schedule_intention with kind: "habit" for each session. It returns the new block's id.
  5. xale_plan_block with blockType: "transition", phase: "wind-down" and relatedBlockId set to that id: a stretch after.
  6. After each session: xale_record_entry with kind: "habit", date and how it went, in their words.

Below, Europe/London: a long run on Saturday 5 December 2026 at 08:00.

json
[
  { "tool": "xale_schedule_intention", "arguments": { "kind": "habit", "id": "Hr6tN2pQ", "startAt": 1796457600000, "durationMin": 60, "requestId": "run-2026-12-05" } },
  { "tool": "xale_plan_block", "arguments": { "blockType": "transition", "phase": "wind-down", "relatedBlockId": "b8Ks3fGh", "durationMin": 15, "title": "Stretch", "requestId": "run-2026-12-05-stretch" } },
  { "tool": "xale_record_entry", "arguments": { "kind": "habit", "id": "Hr6tN2pQ", "date": "2026-12-05", "text": "10 km, steady pace, left calf a bit tight.", "requestId": "entry-2026-12-05-run" } }
]

Say

  • A slow build, with rest days in.
  • A missed session moves to another day. It doesn't break anything.

If it fails

What comes backWhat to do
“That Habit is archived, so it can't be scheduled.”Ask whether they want it back in Xale.
A correction to how it wentSend xale_record_entry again for the same date with a new requestId. It replaces your latest entry, unless the person edited it in Xale.

Sessions with rest around them, and a missed one moves to another day.

  • Checked against main 8aef9b15

Was this helpful?

big-goal-training-week.md · main@c1725f34