Per-meal optimization for balanced meals. Use when user wants to control calories per meal, avoid huge snacks, balance breakfast/lunch/dinner, or needs per-meal protein targets. Triggers on "per meal", "meal-by-meal", "balanced meals", "snack limits", "breakfast protein", "lunch calories".
This skill creates meal plans with per-meal constraints, ensuring balanced distribution of calories and nutrients across breakfast, lunch, dinner, and snacks. This prevents issues like 995-calorie "snacks" that occur with post-hoc meal allocation.
Consider template-based first (--template --pattern X):
uv run llmn optimize --pattern pescatarian --template --jsonUse multi-period when:
Use multi-period optimization when:
For basic multi-period optimization with auto-derived meal targets:
uv run llmn optimize --multiperiod --json
This uses default splits: Breakfast 25%, Lunch 35%, Dinner 35%, Snack 5%.
First, get the user's overall daily targets:
Ask the user about meal distribution. Offer these presets:
Balanced (default):
Front-loaded (big breakfast):
Back-loaded (big dinner):
For a 2000 kcal diet with "Balanced" split:
Ask if user wants per-meal protein targets:
Create a YAML profile at /tmp/multiperiod_profile.yaml: