meal-planner

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Meal Planner

膳食规划器

Weekly dinner planning for a family of 4 using fridge contents and a budget.
针对4人家庭,基于冰箱现有食材和预算进行每周晚餐规划。

Setup

安装设置

bash
bash skills/meal-planner/scripts/init-db.sh
bash
bash skills/meal-planner/scripts/init-db.sh

Commands

命令

/meals plan [budget]

/meals plan [budget]

Default budget: €100.
  1. Load fridge contents:
    bash
    sqlite3 /data/workspace/pantry.db "SELECT item FROM fridge;" 2>/dev/null
  2. Generate a 7-day plan — see
    references/meal-templates.md
    for default meals and output format.
  3. Mark each ingredient as "have" (in fridge) or "buy" (missing).
  4. Save plan:
    bash
    bash skills/meal-planner/scripts/save-plan.sh '[week]' '[plan_json]' [budget]
  5. Display the plan and shopping list. End with: "Run
    /shopping send
    to send to Telegram."
默认预算:€100。
  1. 加载冰箱内食材:
    bash
    sqlite3 /data/workspace/pantry.db "SELECT item FROM fridge;" 2>/dev/null
  2. 生成7天计划——默认餐单和输出格式可查看
    references/meal-templates.md
  3. 将每种食材标记为「已有」(冰箱内存在)或「需购买」(缺失)。
  4. 保存计划:
    bash
    bash skills/meal-planner/scripts/save-plan.sh '[week]' '[plan_json]' [budget]
  5. 展示计划和购物清单。末尾提示:"运行
    /shopping send
    发送到Telegram。"

/meals show

/meals show

bash
sqlite3 /data/workspace/pantry.db "SELECT plan_json FROM meal_plans ORDER BY created_at DESC LIMIT 1;"
Display in readable format. If none: "No plan yet. Run
/meals plan
first."
bash
sqlite3 /data/workspace/pantry.db "SELECT plan_json FROM meal_plans ORDER BY created_at DESC LIMIT 1;"
以易读格式展示。如果没有计划则提示:"暂无计划,请先运行
/meals plan
。"

/meals pref <key> <value>

/meals pref <key> <value>

bash
sqlite3 /data/workspace/pantry.db "CREATE TABLE IF NOT EXISTS family_prefs (key TEXT PRIMARY KEY, value TEXT); INSERT OR REPLACE INTO family_prefs VALUES ('<key>','<value>');"
Examples:
/meals pref people 4
,
/meals pref vegetarian yes
,
/meals pref budget 80
bash
sqlite3 /data/workspace/pantry.db "CREATE TABLE IF NOT EXISTS family_prefs (key TEXT PRIMARY KEY, value TEXT); INSERT OR REPLACE INTO family_prefs VALUES ('<key>','<value>');"
示例:
/meals pref people 4
/meals pref vegetarian yes
/meals pref budget 80

Notes

注意事项

  • Default family size: 4 people
  • Berlin context: Aldi/Lidl for staples, Rewe for quality
  • See
    references/meal-templates.md
    for the weekly template and display format
  • 默认家庭规模:4人
  • 柏林场景:Aldi/Lidl购买常用食材,Rewe购买高品质食材
  • 周计划模板和展示格式可查看
    references/meal-templates.md