Setup
On first use, read setup.md for onboarding guidelines. Start helping naturally without technical jargon — users can always ask about storage details if curious.
When to Use
User wants to plan meals, generate shopping lists, track food budget, organize recipes, coordinate household eating, or reduce food waste. Agent handles the full meal lifecycle: planning, shopping, cooking, and reviewing.
Architecture
Memory lives in ~/meal-planner/. See memory-template.md for structure.
CODEBLOCK0
Quick Reference
| Topic | File |
|---|
| Setup process | INLINECODE3 |
| Memory template |
memory-template.md |
| Shopping optimization |
shopping-guide.md |
| Batch cooking |
meal-prep.md |
| Budget tracking |
budget-tips.md |
Core Rules
1. Check Memory First
Before any meal planning, read
~/meal-planner/memory.md for:
- - Dietary restrictions and allergies (critical for safety)
- Household composition (adults, kids, guests)
- Cooking skill level and time constraints
- Budget targets and preferences
- Cuisine preferences and dislikes
2. Meal Planning Lifecycle
| Phase | Action |
|---|
| Plan | Create week file in weeks/ with all meals |
| Shop |
Generate shopping list from week plan |
| Prep | Suggest batch cooking opportunities |
| Cook | Reference recipes, adjust portions |
| Review | Note what worked, update preferences |
3. Weekly Planning Rhythm
When user asks to plan meals:
- - Check inventory first (avoid buying duplicates)
- Balance nutrition across the week
- Cluster similar ingredients (reduce waste)
- Plan leftovers strategically (cook once, eat twice)
- Leave 1-2 flex slots for spontaneity or eating out
4. Shopping List Generation
For each shopping trip:
## Shopping List — YYYY-MM-DD
### Produce
- [ ] Onions (3) — Mon stir-fry, Wed soup
- [ ] Spinach (1 bag) — Tue smoothie, Thu salad
### Proteins
- [ ] Chicken breast (1.5 lb) — Mon, Wed meals
### Pantry (only if low)
- [ ] Olive oil — check inventory first
**Budget estimate:** $XX
**Store suggestions:** [based on preferences]
Link items to meals so user knows why they're buying each thing.
5. Dietary Safety
For any dietary restrictions or allergies:
- - Flag incompatible recipes BEFORE suggesting
- Check ingredient lists thoroughly
- Suggest substitutions when possible
- Never assume "a little bit is fine"
- Mark severity: preference vs. intolerance vs. allergy (life-threatening)
6. Household Coordination
When cooking for multiple people:
- - Track individual restrictions per person
- Note kid-friendly vs. adult portions
- Plan meals everyone can eat (or easy modifications)
- Track who likes what (reduce "I don't want that" moments)
7. Budget Optimization
| Strategy | Typical Savings | When to Apply |
|---|
| Seasonal produce | 20-40% | Always check what's in season |
| Batch cooking |
30% time, 15% cost | Busy weeks |
| Protein rotation | 15-25% | Alternate expensive/cheap proteins |
| Pantry meals | 50%+ | End of budget cycle |
| Store brands | 10-30% | Most staples |
Weekly Plan Format
CODEBLOCK2
Recipe Format
CODEBLOCK3
Inventory Management
Proactively ask about inventory updates:
- - After shopping trips: "Want to update what you bought?"
- When planning: "Checking pantry — last update was X days ago"
- For staples: track approximate quantities (full, half, low, out)
CODEBLOCK4
Common Traps
- - Planning without checking inventory → duplicate purchases, waste
- Overambitious meal plans → exhaustion, ordering takeout
- Ignoring prep time → not just cook time, total time matters
- Same proteins all week → meal fatigue, nutrition gaps
- No flex meals → rigid plans break under real life
- Forgetting leftovers → food waste
- Not tracking what worked → repeating failures
Security & Privacy
Data that stays local:
- - All meal plans, recipes, shopping lists stored in INLINECODE10
- Dietary restrictions and household info in INLINECODE11
- No cloud sync, no external services
This skill does NOT:
- - Send any data to external servers
- Access health apps or fitness trackers
- Store payment information
- Read files outside INLINECODE12
User consent:
- - Files created only when user engages with meal planning
- User can view/edit all stored data directly (plain markdown)
- User can delete
~/meal-planner/ at any time to remove all data
Scope
This skill ONLY:
- - Manages meal planning in INLINECODE14
- Reads/writes markdown files for plans, recipes, shopping
- Suggests based on preferences and inventory
This skill NEVER:
- - Orders groceries (provides list for user to order)
- Accesses health apps or fitness trackers
- Stores payment information
- Reads files outside INLINECODE15
- Provides medical nutrition advice (refer to dietitian for health conditions)
Related Skills
Install with
clawhub install <slug> if user confirms:
- -
grocery — detailed grocery management - INLINECODE18 — cooking techniques and tips
- INLINECODE19 — nutritional tracking and analysis
- INLINECODE20 — recipe discovery and management
- INLINECODE21 — daily task management
Feedback
- - If useful: INLINECODE22
- Stay updated: INLINECODE23
设置
首次使用时,请阅读 setup.md 了解入门指南。以自然的方式开始协助,无需使用技术术语——如果用户对存储细节感到好奇,可随时询问。
使用时机
用户想要规划餐食、生成购物清单、追踪食品预算、整理食谱、协调家庭饮食或减少食物浪费。助手负责完整的餐食生命周期:规划、购物、烹饪和回顾。
架构
记忆文件存储在 ~/meal-planner/ 中。结构详见 memory-template.md。
~/meal-planner/
├── memory.md # 偏好 + 饮食信息 + 家庭信息
├── weeks/ # 每周餐食计划
│ └── YYYY-WXX.md # 2026年第12周 = 2026-W12.md
├── recipes/ # 已保存的食谱
│ └── {recipe-name}.md
├── shopping/ # 购物清单
│ └── YYYY-MM-DD.md
├── inventory/ # 储藏室/冰箱里的物品
│ ├── pantry.md
│ └── fridge.md
├── templates/ # 可重复使用的餐食模板
│ └── {template-name}.md
└── archive/ # 过往周次供参考
快速参考
memory-template.md |
| 购物优化 | shopping-guide.md |
| 批量烹饪 | meal-prep.md |
| 预算追踪 | budget-tips.md |
核心规则
1. 先检查记忆
在进行任何餐食规划前,读取 ~/meal-planner/memory.md 以获取:
- - 饮食限制和过敏信息(安全关键)
- 家庭构成(成人、儿童、客人)
- 烹饪技能水平和时间限制
- 预算目标和偏好
- 菜系偏好和禁忌
2. 餐食规划生命周期
| 阶段 | 操作 |
|---|
| 规划 | 在 weeks/ 中创建包含所有餐食的周文件 |
| 购物 |
根据周计划生成购物清单 |
| 准备 | 建议批量烹饪机会 |
| 烹饪 | 参考食谱,调整份量 |
| 回顾 | 记录有效做法,更新偏好 |
3. 每周规划节奏
当用户要求规划餐食时:
- - 先检查库存(避免重复购买)
- 平衡一周的营养
- 集中使用相似食材(减少浪费)
- 策略性地规划剩菜(一次烹饪,两次享用)
- 预留1-2个灵活时段用于临时安排或外出就餐
4. 购物清单生成
每次购物行程:
markdown
购物清单 — YYYY-MM-DD
农产品
- - [ ] 洋葱(3个)— 周一炒菜,周三汤品
- [ ] 菠菜(1袋)— 周二奶昔,周四沙拉
蛋白质
干货(仅当库存不足时)
预算估算: $XX
商店建议: [基于偏好]
将物品与餐食关联,让用户了解购买每样东西的原因。
5. 饮食安全
对于任何饮食限制或过敏:
- - 在建议前标记不兼容的食谱
- 彻底检查食材清单
- 尽可能建议替代品
- 切勿假设一点点没关系
- 标记严重程度:偏好 vs. 不耐受 vs. 过敏(危及生命)
6. 家庭协调
为多人烹饪时:
- - 追踪每个人的个人限制
- 注意儿童友好 vs. 成人份量
- 规划大家都能吃的餐食(或简单调整)
- 追踪每个人的喜好(减少我不想要那个的情况)
7. 预算优化
| 策略 | 典型节省 | 适用时机 |
|---|
| 时令农产品 | 20-40% | 始终检查当季食材 |
| 批量烹饪 |
节省30%时间,15%成本 | 忙碌周 |
| 蛋白质轮换 | 15-25% | 交替使用昂贵/廉价蛋白质 |
| 储藏室餐食 | 50%以上 | 预算周期末期 |
| 商店品牌 | 10-30% | 大多数主食 |
每周计划格式
markdown
第 YYYY-WXX 周
概览
- - 预算目标:$XXX
- 饮食重点:[任何主题]
- 特殊事件:[客人、节假日]
周一
早餐: [餐食] | 准备时间:X分钟
午餐: [餐食] | 准备时间:X分钟
晚餐: [餐食] | 准备时间:X分钟 | 食谱:recipes/meal.md
周二
...
批量准备(周日)
- - [ ] 煮米饭供周一/周二/周三使用
- [ ] 切好一周的蔬菜
- [ ] 腌制周四的鸡肉
需要购买的物品
[根据以上餐食自动生成]
食谱格式
markdown
{食谱名称}
时间: 准备X分钟 | 烹饪Y分钟
份量: X人份(可轻松加倍)
难度: 简单 | 中等 | 高级
饮食: 素食、无麸质等
食材
步骤
- 1. 第一步
- 第二步
备注
- - 搭配推荐:[配菜]
- 储存:冰箱X天,冷冻Y个月
- 儿童调整:[如适用]
历史
- - YYYY-MM-DD:制作完成,家人很喜欢
- YYYY-MM-DD:下次多加些大蒜
库存管理
主动询问库存更新:
- - 购物后:想更新你买的东西吗?
- 规划时:正在检查储藏室——上次更新是X天前
- 对于主食:追踪大致数量(满、半、少、空)
markdown
储藏室 — 更新于 YYYY-MM-DD
谷物和意面
半 | |
罐头食品
...
香料
...
常见陷阱
- - 未检查库存就规划 → 重复购买,浪费
- 过于雄心勃勃的餐食计划 → 疲惫,点外卖
- 忽略准备时间 → 不仅是烹饪时间,总时间很重要
- 整周使用相同蛋白质 → 餐食疲劳,营养不均衡
- 没有灵活餐食 → 僵化的计划在现实生活中容易崩溃
- 忘记剩菜 → 食物浪费
- 不记录有效做法 → 重复失败
安全与隐私
本地存储的数据:
- - 所有餐食计划、食谱、购物清单存储在 ~/meal-planner/
- 饮食限制和家庭信息存储在 ~/meal-planner/memory.md
- 无云同步,无外部服务
此技能不会:
- - 向外部服务器发送任何数据
- 访问健康应用或健身追踪器
- 存储支付信息
- 读取 ~/meal-planner/ 外的文件
用户同意:
- - 仅在用户参与餐食规划时创建文件
- 用户可直接查看/编辑所有存储的数据(纯Markdown格式)
- 用户可随时删除 ~/meal-planner/ 以移除所有数据
范围
此技能仅:
- - 管理 ~/meal-planner/ 中的餐食规划
- 读取/写入计划、食谱、购物的Markdown文件
- 根据偏好和库存提供建议
此技能绝不:
- - 订购食品杂货(提供清单供用户自行订购)
- 访问健康应用或健身追踪器
- 存储支付信息
- 读取 ~/meal-planner/ 外的文件
- 提供医学营养建议(健康问题请咨询营养师)
相关技能
如果用户确认,使用 clawhub install 安装:
- - grocery — 详细的食品杂货管理
- cooking — 烹饪技巧和提示
- nutrition — 营养追踪和分析
- recipe — 食谱发现和管理
- daily-planner — 日常任务管理
反馈
- - 如果觉得有用:clawhub star meal-planner
- 保持更新:clawhub sync