简介
通过本地记忆学习用户饮食偏好,自动比价、追踪订单多样性,实现从决策到下单的全流程外卖代理服务
原始描述
Choose and order food with learned preferences, price comparison, and variety protection.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
Food Delivery 是一个本地优先的外卖点餐智能代理,通过结构化记忆文件学习用户长期偏好,实现从"吃什么"决策到实际下单的全流程自动化。系统要求用户在 ~/food-delivery/ 目录下维护四份 Markdown 文件:核心偏好与限制(memory.md)、餐厅评分档案(restaurants.md)、近期订单记录(orders.md)及家庭成员偏好(people.md)。
决策引擎 workflow
代理收到点餐指令后执行五步流程:
- 情境感知 — 识别时段(早/午/晚)、星期属性(工作日实用型 vs 周末探索型)、人数及用户当下状态(如"累了""庆祝""赶时间")
- 智能过滤 — 三级限制体系:CRITICAL(过敏/医嘱)绝对排除;FIRM(宗教/伦理/饮食法)默认过滤但可覆盖;PREFERENCE(口味)灵活参考。同时排除近期重复餐厅(14天内同店≥3次或同菜系≥4次触发"多样性保护")
- 跨平台比价 — 同一餐厅在多个配送 App 间比较基础价格、优惠券、配送费,明确告知差价(如"今天用 X 平台便宜 $4")
- 选项呈现 — 仅展示 2-3 个方案并附推理,基于历史数据推荐首选
- 浏览器执行下单 — 打开用户 App、加购、应用优惠、确认地址金额、获取最终授权后完成支付,回传确认号与预计送达时间
多人协同与场景适配
支持群组订单时自动加载 people.md 寻找交集菜系,推荐披萨、汉堡、 tacos 等"大众安全牌"。内置 11 种场景模式(雨天延迟预警、宿恢复模式、约会注重氛围等),动态调整推荐策略。
显著优点
- 隐私友好架构:所有敏感偏好、餐厅档案、订单历史仅存本地 Markdown,绝不触碰用户 App 内的支付、地址、密码数据
- 渐进式学习:显式记录"素食""嗜辣""$20 预算""19:00 晚餐"等标签,随时间形成精准画像
- 价格透明:主动执行跨平台比价并量化节省金额,避免用户被单一平台"绑架"
- 安全机制:过敏信息自动附加于每笔订单备注,并强制验证餐厅能否承接,杜绝"试试看"式冒险建议
- 多样性保护:防止决策疲劳导致的重复点单,14 天滑动窗口主动推送"尝鲜"建议
潜在局限与风险
执行层依赖
- 浏览器自动化脆弱性:下单依赖用户设备上的浏览器/App 状态,若 Cookie 过期、页面改版或风控弹窗,自动化流程可能中断
- 无原生 API 集成:需模拟用户操作,效率与稳定性低于官方 API;高峰期可能出现元素定位失败
数据与决策风险
- 冷启动问题:新用户需手动填写 4 份记忆模板,门槛较高;初期推荐质量取决于用户输入的细致程度
- 群体偏好冲突:家庭/多人场景下,"交集计算"可能退化为妥协平庸选项,难以满足个性需求
- 促销时效性:优惠券信息可能因页面抓取延迟而失效,实际结算价与预估出现偏差
安全边界模糊
- CRITICAL 限制依赖用户自我申报:若用户未主动标记过敏,系统无能力主动识别菜品成分风险
- 浏览器执行环节:虽声明不存储密码,但自动化操作期间需维持登录态,存在会话劫持或意外泄露的理论风险(本地环境相对可控)
适合人群
- 高频外卖用户(每周 3 次以上)希望减少"决策疲劳"
- 有明确饮食限制(过敏、宗教、慢性病饮食管理)需系统性防护
- 多口之家需协调不同成员偏好的"家庭订餐负责人"
- 对价格敏感、愿意在多个平台间比价的时间充裕型用户
常规风险评级
- 来源可信度:T2(开源社区技能,无企业背书,但架构透明可审计)
- 安全等级:A(本地数据隔离设计优秀,执行层依赖外部浏览器引入中等风险)
技能正文
name: Food Delivery slug: food-delivery version: 1.0.0 description: Choose and order food with learned preferences, price comparison, and variety protection. metadata: {"clawdbot":{"emoji":"🍕","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
When to Use
User wants their agent to handle the entire food ordering process — from deciding what to eat, through comparing options, to placing the actual order. Agent learns preferences over time and makes increasingly better choices.
Architecture
Memory lives in ~/food-delivery/. See memory-template.md for setup.
~/food-delivery/
├── memory.md # Core preferences, restrictions, defaults
├── restaurants.md # Restaurant ratings, dishes, notes
├── orders.md # Recent orders for variety tracking
└── people.md # Household/group member preferences
User creates these files. Templates in memory-template.md.
Quick Reference
| Topic | File |
|---|---|
| Memory setup | memory-template.md |
| Decision framework | decisions.md |
| Ordering workflow | ordering.md |
| Common traps | traps.md |
Data Storage
All data stored in ~/food-delivery/. Create on first use:
mkdir -p ~/food-delivery
Scope
This skill handles:
- Learning cuisine and taste preferences
- Storing restaurant ratings and dish notes
- Comparing prices across delivery platforms
- Finding active promotions and coupons
- Placing orders via browser automation
- Tracking recent orders for variety
- Managing household member preferences
- Coordinating group orders
User provides:
- Delivery app credentials (stored in their browser/app)
- Delivery address (configured in their apps)
- Payment methods (configured in their apps)
Self-Modification
This skill NEVER modifies its own SKILL.md.
All learned data stored in ~/food-delivery/ files.
Core Rules
1. Learn Preferences Explicitly
| User says | Store in memory.md |
|---|---|
| "I'm vegetarian" | restriction: vegetarian |
| "I love spicy food" | preference: spice_level=high |
| "Allergic to shellfish" | CRITICAL: shellfish (always filter) |
| "I don't like olives" | avoid: olives |
| "Budget around $20" | default_budget: $20 |
| "Usually order dinner around 7pm" | default_time: 19:00 |
2. Restriction Hierarchy
CRITICAL (allergies, medical) → ALWAYS filter, never suggest
FIRM (religious, ethical, diet) → filter unless user overrides
PREFERENCE (taste) → consider but flexible
For CRITICAL restrictions:
- Add note to EVERY order specifying the allergy
- Verify restaurant can accommodate
- Never suggest "you could try it anyway"
3. The Decision Flow
When user asks to order food:
Step 1: Context
- What time is it? (breakfast/lunch/dinner)
- What day? (weekday functional vs weekend exploratory)
- Any stated mood or occasion?
- How many people?
Step 2: Filter
- Remove anything violating CRITICAL restrictions
- Remove recently repeated (variety protection)
- Remove closed restaurants
- Apply budget constraints
Step 3: Compare
- Check same restaurant across platforms
- Find active promos/coupons
- Calculate total cost (food + delivery + fees)
Step 4: Present
- Show 2-3 options maximum
- Include reasoning for each
- Show price comparison if relevant
- Recommend one based on user history
Step 5: Confirm & Order
- Get explicit confirmation
- Place order via browser
- Confirm order placed with ETA
4. Variety Protection
Track in orders.md:
- Last 14 days of orders (restaurant + cuisine type)
Triggers:
- Same restaurant 3x in 7 days → "You've ordered from [X] a lot. Want to try something similar?"
- Same cuisine 4x in 7 days → suggest different category
- Haven't tried category user likes in 2+ weeks → suggest it
5. Price Optimization
Before ordering:
- Check restaurant on all user's delivery apps
- Compare base prices (often differ by platform)
- Check for active coupons/promos
- Factor in delivery fees and service charges
- Recommend cheapest option for same food
Tell user: "Same order is $4 cheaper on [Platform] today"
6. Group Orders
When ordering for multiple people:
- Load ~/food-delivery/people.md for known preferences
- Collect any new restrictions
- Find intersection cuisine (works for everyone)
- Suggest variety restaurants (broad menus)
- Calculate fair split if needed
Default crowd-pleasers when no consensus:
- Pizza (customizable)
- Burgers (something for everyone)
- Tacos (variety of fillings)
- Chinese (range of dishes)
- Indian (vegetarian options)
7. Context Adaptation
| Context | Behavior |
|---|---|
| "I'm tired" | Comfort food, familiar favorites |
| "Celebrating" | Higher-end, special occasion spots |
| "In a hurry" | Fastest delivery, simple orders |
| "Working lunch" | Quick, not messy, productive-friendly |
| "Date night" | Quality over speed, ambiance matters |
| "Hungover" | Greasy comfort, hydrating, gentle |
| "Post-workout" | Protein-heavy, healthier options |
| Rainy day | Warn about longer delivery times |
| Friday night | Can wait for quality |
| Sunday morning | Brunch options, recovery mode |
8. Proactive Suggestions
When appropriate (not spammy):
- Notify of flash sales on favorite restaurants
- Remind of unused loyalty points
- Suggest reordering past successes
- Mention new restaurants matching preferences
9. Order Execution
Via browser automation:
- Open user's preferred delivery app
- Navigate to restaurant
- Add items to cart
- Apply any coupons found
- Verify delivery address
- Confirm order total with user
- Place order
- Report confirmation and ETA
Always confirm before final checkout.
10. Problem Handling
If order has issues:
- Missing items → help file complaint
- Wrong items → help request refund
- Late delivery → track and communicate
- Quality issues → record in restaurant notes
Boundaries
Stored Locally (in ~/food-delivery/)
- Cuisine preferences and restrictions
- Restaurant ratings and dish notes
- Recent order log (variety tracking)
- Household member preferences
- Budget defaults
User Manages (in their apps)
- Delivery addresses
- Payment methods
- Account credentials
Agent Does NOT Store
- Credit card numbers
- Exact addresses
- Account passwords
- Order receipts with payment details
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。