← 返回 Skills 市场
早餐推荐助手
作者
sophiayuan
· GitHub ↗
· v1.2.0
· MIT-0
270
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install breakfast-recommender
功能描述
智能早餐推荐助手,根据冰箱食材推荐早餐、管理食材、记录偏好与历史。当用户告知冰箱食材、询问早餐推荐、更新食材、设置饮食偏好、或要求定时推荐早餐时激活。
使用说明 (SKILL.md)
Breakfast Recommender
智能早餐推荐助手,根据你冰箱里的食材,每天为你推荐营养均衡、简单易做的早餐方案。
Data Directory
所有数据文件存储在用户独立目录,避免多用户冲突:
~/.openclaw/workspace/breakfast-recommender/
├── fridge.md # 冰箱食材清单
├── history.md # 推荐历史(最近30条)
└── preferences.md # 饮食偏好(按需创建)
如目录不存在,首次使用时自动创建。
When to Run
- 用户告知冰箱里有哪些食物(如:"冰箱里有鸡蛋、牛奶、面包...")
- 用户主动询问早餐推荐(如:"明天早餐吃什么"、"推荐个早餐")
- 用户要求设置定时任务(如:"每天晚上8点提醒推荐早餐")
- 用户动态更新食材(如:"买了xxx"、"吃完了xxx"、"用掉了xxx")
- 用户设置饮食偏好(如:"我不吃香菜"、"我对花生过敏")
- 用户查询冰箱(如:"冰箱里有什么"、"查看食材")
Workflow
场景1:更新食材清单
当用户告知冰箱里有哪些食物时("冰箱里有A、B、C",注意区别于"冰箱里有什么"查询):
- 解析用户提供的食材列表
- 如果用户主动提到保质期(如"牛奶还有3天"),一并记录;否则不追问
- 将食材列表写入
~/.openclaw/workspace/breakfast-recommender/fridge.md(完整覆盖) - 确认更新成功,读取文件并以表格展示冰箱当前全部食材(含本次新增)
场景2:推荐早餐
当用户询问早餐推荐时:
- 读取
fridge.md获取当前食材;若文件为空或不存在,提示用户先告知冰箱食材 - 读取
preferences.md获取用户偏好(文件不存在则跳过) - 读取
history.md获取历史推荐记录,避免重复(文件不存在则跳过) - 检查是否有即将过期的食材(3天内),优先使用
- 根据推荐原则生成营养均衡的早餐方案
- 按照输出格式展示推荐结果
- 将本次推荐追加到
history.md;若记录超过30条,自动删除最旧的记录,保持最多30条
场景3:设置定时推荐
当用户要求定期推荐时:
- 使用 cron 工具创建定时任务
- 默认时间:每天 20:00(可按用户要求调整)
- sessionTarget: "isolated",payload.kind: "agentTurn"
- 任务 message 模板:「请执行早餐推荐:读取用户冰箱食材(~/.openclaw/workspace/breakfast-recommender/fridge.md),结合偏好和历史记录,推荐一份明天的早餐方案,发送给用户。」
- 创建后告知用户定时时间和取消方式
场景4:动态更新食材
当用户提到以下关键词时触发:
| 关键词 | 操作 |
|---|---|
| 买了、新增、补货了、囤了 | 添加食材 |
| 吃完了、没有了、用完了、用掉了、消耗了 | 删除食材 |
| 坏了、扔了、过期了 | 删除食材 |
| 还剩xxx | 更新数量 |
执行流程:
- 读取
fridge.md获取当前食材列表 - 根据用户描述进行增删改操作
- 更新最后修改时间
- 写回
fridge.md - 读取文件并以表格展示冰箱当前全部食材(用 ✅ 标注新增、❌ 标注删除、✏️ 标注修改的食材)
场景5:设置饮食偏好
当用户说"我不吃xxx"、"我对xxx过敏"、"我喜欢xxx"时:
- 读取
preferences.md(不存在则创建) - 更新对应的偏好设置(过敏/禁忌/喜好分类存储)
- 确认更新成功,展示当前全部偏好设置
- 后续推荐将自动遵循这些偏好
场景6:查看即将过期食材
当用户问"有什么快过期的"时:
- 读取
fridge.md - 筛选 3 天内到期的食材
- 按紧急程度排序展示(今天到期 > 明天 > 后天)
- 给出优先使用建议
场景7:查询冰箱(只读)
当用户问"冰箱里有什么"、"查看食材"、"我冰箱里还有什么"时:
- 读取
fridge.md - 以表格展示当前全部食材
- 不做任何写入操作
Output Format
推荐早餐时使用以下格式:
🍳 明天早餐推荐
主食:xxx(做法简述)
蛋白质:xxx(做法简述)
蔬菜/水果:xxx
饮品:xxx
⏱ 预计准备时间:xx 分钟
💡 小提示:xxx(营养亮点、季节搭配原因或注意事项)
---
消耗食材:xxx x2、xxx 200ml
极简模式(食材不足时):
🥪 极简早餐方案
当前可用食材有限,推荐:xxx
建议补充:蛋白质类(鸡蛋/牛奶)、主食类(面包/燕麦)
Recommendation Principles
遵循以下原则进行推荐:
- 营养均衡:确保主食 + 蛋白质 + 蔬菜/水果的组合
- 简单易做:优先推荐 15 分钟内可完成的方案
- 优先消耗:即将过期的食材(3天内)、数量较多需要消耗的食材
- 不重复:每次推荐前必须读取 history.md,确保方案(主食+蛋白质+蔬菜组合)与历史记录中任意一条都不完全相同;若食材有限导致组合重复,至少在做法或搭配比例上做出区分,并在推荐时注明与上次的差异
- 季节适宜:根据当前月份考虑温热/清爽搭配,在「小提示」中说明原因
- 冬季(11-2月):温热为主(热粥、煎蛋、热饮)
- 夏季(6-8月):清爽为主(沙拉、冷饮、水果)
- 春秋:均衡搭配
- 尊重偏好:严格遵守用户设置的饮食限制和过敏信息
- 时间适配:工作日推荐快速方案(\x3C15分钟)
File Structure
| 文件路径 | 说明 | 自动创建 |
|---|---|---|
~/.openclaw/workspace/breakfast-recommender/fridge.md |
冰箱食材列表(含保质期) | 是 |
~/.openclaw/workspace/breakfast-recommender/history.md |
历史推荐记录,保留最近 30 条 | 是 |
~/.openclaw/workspace/breakfast-recommender/preferences.md |
用户饮食偏好设置 | 按需创建 |
Limitations
此 Skill 不适用于:
- 正餐/晚餐推荐(仅限早餐场景)
- 外卖点餐建议
- 餐厅推荐
- 食材购买/采购清单生成
- 复杂烹饪教程(仅提供简单做法说明)
安全使用建议
This skill appears coherent for a local breakfast recommender. Before enabling: 1) Review the files it will create/use: ~/.openclaw/workspace/breakfast-recommender/fridge.md, history.md, preferences.md. 2) If you enable scheduled recommendations, expect the skill to add a cron entry — check your crontab after installation and only allow it if you trust scheduled agent runs. 3) Confirm the agent process that runs via cron will run with the same user permissions you expect (no elevated privileges). 4) Back up or remove any sensitive data you do not want stored in the workspace. If you prefer not to allow persistent scheduled runs, decline the cron setup and use the skill on-demand.
功能分析
Type: OpenClaw Skill
Name: breakfast-recommender
Version: 1.2.0
The breakfast-recommender skill is a lifestyle tool designed to manage food inventory and provide meal suggestions. It operates within a dedicated workspace directory (~/.openclaw/workspace/breakfast-recommender/) and uses standard file operations to track ingredients, history, and preferences. While it includes functionality to schedule tasks via cron, the instructions are strictly limited to triggering breakfast recommendations and do not exhibit signs of data exfiltration, unauthorized access, or malicious intent.
能力评估
Purpose & Capability
Name/description match the behavior: storing fridge, history, and preferences in ~/.openclaw/workspace/breakfast-recommender and producing breakfast recommendations is coherent with the stated purpose.
Instruction Scope
Instructions explicitly read and write files under ~/.openclaw/workspace/breakfast-recommender and may create a cron task to trigger recommendations. Reading/writing these files is expected; creating system cron jobs is a scope‑expanding action (persistent scheduling) that users should be aware of.
Install Mechanism
No install spec or external downloads — instruction-only skill, so nothing is written to disk beyond the data files it manages and any cron entry it creates.
Credentials
The skill requests no environment variables, credentials, or external config paths. File access is limited to a single dedicated workspace directory.
Persistence & Privilege
The skill does not set always:true. However, it instructs creating cron jobs that persist and autonomously trigger agent runs — this is functionally reasonable for scheduled reminders but is a persistent system change that the user should review.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install breakfast-recommender - 安装完成后,直接呼叫该 Skill 的名称或使用
/breakfast-recommender触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
修复多用户文件路径冲突;新增查看冰箱场景;完善定时推荐配置;history.md 自动清理;优化食材更新交互
v1.1.0
**Version 1.1.0 – Major update with dietary preferences and expiry tracking**
- 新增饮食偏好功能,支持记录过敏、禁忌、不喜欢及特殊需求,推荐更个性化。
- 食材管理支持保质期记录与追踪,优先消耗即将过期食材并作出提醒。
- 推荐历史扩展为最多保留近30条,信息更详细,便于追溯。
- 新增极简模式处理食材严重不足时的推荐,并会给出补充建议。
- 丰富了操作关键词,简化“买了”“用掉了”等食材更新体验。
- 增加示例、详细表格和更直观的输出格式,信息展示更清晰。
v1.0.0
- Initial release of Breakfast Recommender.
- 智能根据用户冰箱食材,推荐营养均衡、易做的第二天早餐食谱。
- 支持食材清单管理、食材动态增删、历史推荐追踪,避免近3天重复。
- 可设置每日定时自动推荐早餐,并推送给用户。
- 推荐方案输出包含主食、蛋白质、蔬菜/水果、饮品及准备时长和营养提示。
- 明确限定只用于早餐推荐,不用于正餐、外卖、餐厅或食材购买建议。
元数据
常见问题
早餐推荐助手 是什么?
智能早餐推荐助手,根据冰箱食材推荐早餐、管理食材、记录偏好与历史。当用户告知冰箱食材、询问早餐推荐、更新食材、设置饮食偏好、或要求定时推荐早餐时激活。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 270 次。
如何安装 早餐推荐助手?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install breakfast-recommender」即可一键安装,无需额外配置。
早餐推荐助手 是免费的吗?
是的,早餐推荐助手 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
早餐推荐助手 支持哪些平台?
早餐推荐助手 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 早餐推荐助手?
由 sophiayuan(@sophiayuan1984-jpg)开发并维护,当前版本 v1.2.0。
推荐 Skills