Meal planning

From hvkshetry/StewardOS · View interactive version

Meal planning is an AI agent skill from the GitHub repository hvkshetry/StewardOS. Meal planning and recipe management skill using Mealie. Use when: (1) Creating weekly meal plans, (2) Searching and selecting recipes, (3) Generating shopping lists, (4) Optimizing for nutrition and variety, (5) Planning batch cooking and meal prep, (6) Estimating meal costs for budget integration.

How to use this skill

Skill file

Meal Planning

Tool Mapping

| Task | Tool | Notes |

|------|------|-------|

| Search recipes | get_recipes | By name, tag, category |

| Get recipe details | get_recipe_detailed | Full ingredients, instructions, nutrition, prep/cook time |

| Create meal plan | create_mealplan | Assign recipes to dates and meal slots |

| View meal plan | get_all_mealplans, get_todays_mealplan | Retrieve plan for a date range or today |

| Shopping list | get_shopping_lists, add_to_shopping_list, add_recipe_to_shopping_list | Generate from meal plan |

| Manage tags/categories | list_tags, list_categories | For filtering and organization |

| Random meal suggestion | get_random_meal | Requires date and entry_type |

Weekly Meal Plan Creation Workflow

Step 1: Gather Constraints

Before building a plan, determine:

Step 2: Select Recipes

Apply these balancing rules when choosing recipes for the week:

Protein rotation — Do not repeat the same primary protein on consecutive days:

Cuisine variety — Spread across at least 3 cuisine types per week:

Effort distribution — Match recipe complexity to day-of-week energy:

Freshness sequencing — Schedule ingredients by perishability:

Step 3: Build the Plan

  1. Search Mealie for candidate recipes matching the constraints
  2. Assign each recipe to a date and meal type (breakfast/lunch/dinner)
  3. Use create_mealplan for each slot
  4. Review the assembled plan for balance before presenting

Step 4: Present for Approval

Format the plan as a table:

| Day | Dinner | Prep Time | Protein | Cuisine |

|-----|--------|-----------|---------|---------|

| Mon | Dal Tadka + Rice | 25 min | Lentils | Indian |

| Tue | Salmon Teriyaki + Stir-fry Veg | 30 min | Fish | Japanese |

| ... | ... | ... | ... | ... |

Include a notes row for any prep-ahead tasks (e.g., "Marinate chicken Tuesday night for Wednesday").

Recipe Search and Selection

Search Strategies

| Goal | Approach |

|------|----------|

| Use up specific ingredients | Search by ingredient name, then filter by what else is needed |

| Quick weeknight meal | Filter by tag "quick" or prep_time <= 30 min |

| Specific cuisine | Search by category or tag (e.g., "Indian", "Thai") |

| New recipe discovery | Browse categories not used in last 2 weeks |

| Kid-friendly | Filter by "kid-friendly" tag |

When a Recipe Is Not in Mealie

  1. Ask the user for the recipe source (URL, book, verbal)
  2. If URL: use create_recipe_from_url to import
  3. If manual: use create_recipe with full ingredients and instructions
  4. Always tag and categorize the new recipe immediately after creation

Shopping List Generation

From Meal Plan

  1. Retrieve the week's meal plan via get_all_mealplans
  2. For each recipe, pull the full ingredient list via get_recipe_detailed
  3. Aggregate ingredients across all recipes:
  1. Subtract pantry staples the user confirms they have
  2. Get a target list UUID via get_shopping_lists and add items via add_to_shopping_list

Shopping List ID Constraint

Shopping List Organization

Group items by store section for efficient shopping:

Cost Estimation

When budget context is relevant:

Dietary Considerations

Tracking Preferences

Maintain awareness of:

Nutritional Balance Checks

For each weekly plan, verify:

Batch Cooking and Meal Prep

Weekend Prep Strategy

Identify components that can be prepped ahead on Saturday/Sunday:

Leftover Integration

Batch Cooking Presentation

When suggesting prep tasks, format as:

| Prep Task | Time | Serves Meals |

|-----------|------|-------------|

| Cook 3 cups rice | 20 min | Mon dinner, Tue lunch, Wed dinner |

| Marinate chicken thighs | 10 min | Tue dinner |

| Make tomato-onion base | 25 min | Wed dinner, Thu dinner |

Integration with Budget Skill

When the budgeting skill is also active:

Grocy Integration (Pantry Inventory)

Source-of-truth split: Mealie owns recipes and meal plans. Grocy owns pantry inventory and stock-aware shopping lists.

Pantry-Aware Shopping Lists

  1. After building a meal plan, get the full ingredient list from Mealie recipes
  2. Use get_stock_overview (grocy-mcp) to check current pantry stock
  3. Subtract items already in stock from the shopping list
  4. Use get_missing_products to add items that are below minimum stock regardless of meal plan
  5. The combined list = (meal plan ingredients - pantry stock) + (low-stock items)

Inventory Updates After Shopping

After groceries are purchased:

  1. Use add_product_to_stock to log new items with quantities and best-before dates
  2. Use consume_product as items are used during cooking

Chore Integration

Use get_chores and complete_chore to track kitchen-related chores alongside meal planning:

Common Pitfalls

  1. Over-ambitious weeknight recipes — Keep Monday-Thursday to 30 min active prep max
  2. Ignoring leftovers — Always account for planned leftovers; do not plan 7 full fresh meals if 2-3 will yield leftovers
  3. Shopping list duplicates — Aggregate ingredients across recipes before generating the list
  4. Forgetting pantry staples — Do not add salt, oil, and common spices to every shopping list unless the user is restocking
  5. Rigid plans — Present the plan as a recommendation; note which days can be swapped without affecting freshness sequencing
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.