Skip to main content

Claude/ChatGPT Prompt to Build a Weekly Meal Planner App UI

Weekly meal planner UI: 7-day meal grid, drag-and-drop recipes, auto grocery list by store section, per-day nutrition, and save-as-template.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt assigns the model the role of a senior mobile UI engineer and asks it to specify a weekly meal planner screen tightly enough to build, returning working component code rather than pseudocode. Meal planners look simple until drag-and-drop and a derived grocery list meet real state, which is where the bugs hide, so the prompt is structured around that recompute. Four variables steer it: [stack] sets the framework (React Native by default), [meal_slots] defines the slots per day, [recipe_source] says where recipes come from (the user's saved library), and [grocery_grouping] decides how the list is organized, like by store section.

The deliverables include a 7-day grid with the meal slots as drop targets, drag-and-drop recipes from a searchable library into any slot, an auto-generated grocery list aggregated and grouped by store section, a per-day nutrition summary that recalculates as meals change, and the ability to save the current week as a reusable template and reload it. It also asks for empty, loading, and conflict states — such as a slot that already has a meal — so the recompute-heavy UI stays predictable when state changes on every edit. Because the prompt asks for working component code and a sample week, recipe, and grocery data shape rather than pseudocode, the drag-and-drop, the derived grocery list, and the nutrition summary all share a concrete data model, which is what keeps the deduping and recompute logic honest once real recipes and real edits start hitting the screen.

When to use it

  • Building a weekly meal planner with drag-and-drop scheduling
  • Generating a grocery list that aggregates and dedupes ingredients
  • Defining meal slots per day through [meal_slots]
  • Pulling recipes from a [recipe_source] like a saved library
  • Grouping the grocery list by [grocery_grouping] such as store section
  • Handling conflict states when a slot already holds a meal

Example output

You get components, props and types, and a sample week, recipe, and grocery data shape: the 7-day grid with slots as drop targets, the drag-and-drop from a searchable recipe library, the auto-generated grocery list grouped by store section, the per-day nutrition summary that recalculates on change, the save-as-template feature, and the empty, loading, and conflict states.

Pro tips

  • Get the grocery-list aggregation right early; deduping ingredients across recipes is the part people always underestimate.
  • Set [grocery_grouping] to match how users shop, like produce, dairy, and pantry, so the list is genuinely useful in store.
  • Define [meal_slots] precisely so the grid drop targets match the user's day.
  • Point [recipe_source] at the real library so search returns the right recipes into slots.
  • Ask for the conflict state explicitly — what happens when a slot already has a meal is where the UI quietly breaks.
  • Keep the nutrition summary recalculating on every edit so the numbers never lag behind the plan.

Frequently Asked Questions

How does the grocery list get generated?
It is auto-generated by aggregating ingredients across the week's meals and grouping them by store section. The prompt highlights deduping ingredients across recipes as the hard part, so getting that aggregation right early is the key to a list people can actually shop from.
Can I choose how the grocery list is grouped?
Yes, the `[grocery_grouping]` variable controls grouping, such as by store section with produce, dairy, and pantry categories. Matching the grouping to how users physically shop makes the list far more useful in the store.
Does it support drag-and-drop?
Yes, recipes drag from a searchable library into any slot on the 7-day grid, where each meal slot acts as a drop target. The prompt also asks for a conflict state for when a slot already holds a meal, which is where drag-and-drop UIs often break.
Does the nutrition summary update automatically?
Yes, the per-day nutrition summary recalculates as meals change. Because the planner recomputes on every edit, the prompt asks for that live behavior so the numbers always reflect the current plan rather than a stale snapshot.
Can users save and reuse a week?
Yes, the prompt includes saving the current week as a reusable template and reloading it later. That lets users build a plan once and reapply it, which is useful for people who repeat similar weekly menus.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Lifestyle App UI Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support