简介
基于日历事件自动触发外卖订购,支持 DoorDash/Uber Eats/Grubhub 三大平台,通过浏览器自动化完成从搜索到下单的全流程,特别强化过敏与饮食禁忌的安全校验机制。
原始描述
Order food delivery via browser automation, triggered by calendar events. Supports two modes — Direct (specific service restaurant) and Discovery (criteria...
通过你的 Agent 添加
安装目录:food-cal-order/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
food-cal-order 是一款日历驱动的外卖自动化订购技能,通过解析日历事件的标题和描述,智能触发浏览器自动化完成外卖订购。该技能支持两种工作模式:直接模式(指定平台+餐厅,如"DoorDash: Chipotle")和发现模式(基于条件搜索,如"Thai food, high ratings, under $30")。系统会并行启动子代理控制 Chrome 浏览器,访问用户已登录的外卖平台账户,执行搜索餐厅、解析菜单、定制菜品、验证购物车、完成支付的全流程操作。
显著优点
-
智能事件解析:自动从日历标题识别订购模式,从描述中提取菜品、人数、预算、过敏禁忌、饮食偏好、配送备注等结构化信息,将自然语言转化为可执行的订单参数。
-
安全优先设计:将过敏和饮食限制标记为"CRITICAL — never violate",在添加菜品前强制检查配料表,无法确认安全时自动跳过并选择替代品,体现"When in doubt, err on the side of caution"的安全哲学。
-
多平台比价能力:发现模式下并行搜索 DoorDash、Uber Eats、Grubhub 三大平台,综合评分、价格、配送时间、过敏安全性等多维度决策,为用户选择最优方案。
-
状态持久化:通过 memory/food-order-state.json 跟踪订单历史,避免重复下单,支持 24 小时内的订单审计。
潜在缺点与局限性
-
自动化风险:流程直接执行到"Place Order"点击,缺少下单前的显式用户确认步骤,存在误触发的财务风险。
-
依赖浏览器环境:要求用户预先在 Chrome profile 中登录外卖平台并保存支付方式,环境配置门槛较高。
-
语义匹配不确定性:菜品识别依赖"语义匹配"而非精确 ID,可能出现理解偏差导致订购错误。
-
平台 UI 脆弱性:浏览器自动化依赖特定 UI 元素,外卖平台的界面更新可能导致技能失效。
-
无金额上限机制:未设置单笔订单的金额限制,大额意外订单缺乏硬性拦截。
适合的目标群体
- 日程繁忙的职场人士:希望将重复性的外卖决策和订购流程自动化,节省每日 10-15 分钟的点餐时间。
- 有固定饮食模式的用户:如每周固定健身餐、工作日固定午餐等场景,可通过日历模板实现一键复购。
- 多平台比价敏感型消费者:希望自动获取三大平台的最优报价,避免手动切换比价的繁琐。
- 有明确饮食禁忌的用户:技能对过敏和饮食限制的严格处理机制,为有健康约束的用户提供额外安全保障。
使用风险
- 财务风险:自动下单可能导致非预期的消费,建议首次使用监督运行,并在外卖平台账户中设置消费提醒。
- 健康风险:尽管有过滤机制,自动化系统仍可能因菜单描述不清或语义理解错误而订购含过敏原的食品,严重过敏用户建议保留人工复核。
- 账号安全风险:频繁的浏览器自动化操作可能触发外卖平台的风控检测,导致账户临时限制或验证要求。
- 隐私泄露风险:日历事件可能包含敏感日程信息,技能需要读取权限,不建议在共享日历或工作日历上使用。
- 依赖项风险:技能依赖 Chrome 浏览器、特定版本的 UI 元素以及子代理的正确执行,任一环节失效都可能导致订单失败或异常。
智能事件解析:自动从日历标题识别订购模式,从描述中提取菜品、人数、预算、过敏禁忌、饮食偏好、配送备注等结构化信息,将自然语言转化为可执行的订单参数。
安全优先设计:将过敏和饮食限制标记为"CRITICAL — never violate",在添加菜品前强制检查配料表,无法确认安全时自动跳过并选择替代品,体现"When in doubt, err on the side of caution"的安全哲学。
多平台比价能力:发现模式下并行搜索 DoorDash、Uber Eats、Grubhub 三大平台,综合评分、价格、配送时间、过敏安全性等多维度决策,为用户选择最优方案。
状态持久化:通过 memory/food-order-state.json 跟踪订单历史,避免重复下单,支持 24 小时内的订单审计。
-
自动化风险:流程直接执行到"Place Order"点击,缺少下单前的显式用户确认步骤,存在误触发的财务风险。
-
依赖浏览器环境:要求用户预先在 Chrome profile 中登录外卖平台并保存支付方式,环境配置门槛较高。
-
语义匹配不确定性:菜品识别依赖"语义匹配"而非精确 ID,可能出现理解偏差导致订购错误。
-
平台 UI 脆弱性:浏览器自动化依赖特定 UI 元素,外卖平台的界面更新可能导致技能失效。
-
无金额上限机制:未设置单笔订单的金额限制,大额意外订单缺乏硬性拦截。
适合的目标群体
- 日程繁忙的职场人士:希望将重复性的外卖决策和订购流程自动化,节省每日 10-15 分钟的点餐时间。
- 有固定饮食模式的用户:如每周固定健身餐、工作日固定午餐等场景,可通过日历模板实现一键复购。
- 多平台比价敏感型消费者:希望自动获取三大平台的最优报价,避免手动切换比价的繁琐。
- 有明确饮食禁忌的用户:技能对过敏和饮食限制的严格处理机制,为有健康约束的用户提供额外安全保障。
使用风险
- 财务风险:自动下单可能导致非预期的消费,建议首次使用监督运行,并在外卖平台账户中设置消费提醒。
- 健康风险:尽管有过滤机制,自动化系统仍可能因菜单描述不清或语义理解错误而订购含过敏原的食品,严重过敏用户建议保留人工复核。
- 账号安全风险:频繁的浏览器自动化操作可能触发外卖平台的风控检测,导致账户临时限制或验证要求。
- 隐私泄露风险:日历事件可能包含敏感日程信息,技能需要读取权限,不建议在共享日历或工作日历上使用。
- 依赖项风险:技能依赖 Chrome 浏览器、特定版本的 UI 元素以及子代理的正确执行,任一环节失效都可能导致订单失败或异常。
- 财务风险:自动下单可能导致非预期的消费,建议首次使用监督运行,并在外卖平台账户中设置消费提醒。
- 健康风险:尽管有过滤机制,自动化系统仍可能因菜单描述不清或语义理解错误而订购含过敏原的食品,严重过敏用户建议保留人工复核。
- 账号安全风险:频繁的浏览器自动化操作可能触发外卖平台的风控检测,导致账户临时限制或验证要求。
- 隐私泄露风险:日历事件可能包含敏感日程信息,技能需要读取权限,不建议在共享日历或工作日历上使用。
- 依赖项风险:技能依赖 Chrome 浏览器、特定版本的 UI 元素以及子代理的正确执行,任一环节失效都可能导致订单失败或异常。
技能正文
name: food-cal-order
description: Order food delivery via browser automation, triggered by calendar events. Supports two modes — Direct (specific service + restaurant) and Discovery (criteria-based search across all services). Services include DoorDash, Uber Eats, Grubhub. Use when a calendar event matches food ordering patterns. Spawns sub-agents for browser control.
Food Calendar Order
Place food delivery orders via browser automation, triggered by calendar events.
Modes
Direct Mode
Specific service and restaurant provided.
Title: "DoorDash: Chipotle"
Description: "burrito bowl, chicken, guac"
Discovery Mode
Criteria-based; searches all services to find best match.
Title: "Thai food, high ratings, under $30, food for 2"
Description: "no shellfish, prefer noodles"
Calendar Event Parsing
Always read both the title AND description of the calendar event.
Title → Mode + Target
Pattern
Mode
{Service}: {Restaurant}
Direct
Cuisine/criteria only
Discovery
Description → Order Details + Constraints
| Pattern | Mode |
|---|---|
{Service}: {Restaurant} |
Direct |
| Cuisine/criteria only | Discovery |
The description carries two kinds of info:
- Order details — what to order (items, quantity, servings)
- Constraints — things that MUST be honored, safety-critical
Parse the description and extract:
| Field | Examples | Priority |
|---|---|---|
items |
"burrito bowl, chicken, guac" | Order details |
servings |
"food for 2", "feeds 4" | Order details |
allergies |
"nut allergy", "allergic to shellfish" | CRITICAL — never violate |
dietary |
"vegetarian", "halal", "gluten-free", "no pork" | CRITICAL — never violate |
preferences |
"prefer noodles", "extra spicy", "no onions" | Best-effort |
budget |
"under $30", "keep it cheap" | Constraint |
delivery_notes |
"gate code 1234", "leave at door" | Pass to checkout |
special_requests |
"birthday cake candle", "extra napkins" | Best-effort |
Allergy/dietary constraints are non-negotiable. If unsure whether an item is safe, skip it and pick a clearly safe alternative. When in doubt, err on the side of caution — wrong food is annoying, an allergic reaction is dangerous.
Parsing Example
Title: "DoorDash: Chipotle"
Description: "2 burrito bowls (chicken), guac on the side. Nut allergy. Gate code: 5521"
Title: "DoorDash: Chipotle"
Description: "2 burrito bowls (chicken), guac on the side. Nut allergy. Gate code: 5521"
Extracted:
- items: 2x burrito bowl (chicken), guacamole (side)
- allergies: nuts
- delivery_notes: gate code 5521
Title: "Thai food, high ratings, under $30, food for 2"
Description: "no shellfish, prefer noodles, gluten-free if possible, leave at door"
Extracted:
- servings: 2
- budget: $30
- allergies: shellfish
- dietary: gluten-free (best-effort — "if possible")
- preferences: noodles
- delivery_notes: leave at door
Supported Services
- DoorDash — prefix
DoorDash:, url doordash.com
- Uber Eats — prefix
UberEats: or Uber Eats:, url ubereats.com
- Grubhub — prefix
Grubhub:, url grubhub.com
Direct Mode Execution
DoorDash:, url doordash.comUberEats: or Uber Eats:, url ubereats.comGrubhub:, url grubhub.comSpawn a single sub-agent with inline instructions:
sessions_spawn(
task: """
Order food delivery via browser automation.
SERVICE: {service}
RESTAURANT: {restaurant}
ITEMS: {items}
ALLERGIES: {allergies or "none"}
DIETARY: {dietary or "none"}
PREFERENCES: {preferences or "none"}
DELIVERY_NOTES: {delivery_notes or "none"}
ADDRESS: {address or "use saved default"}
⚠️ ALLERGY/DIETARY RULES:
- NEVER add items containing allergens listed above
- When customizing items, REMOVE ingredients that conflict (e.g., "no peanuts")
- If an item cannot be made safe → skip it, note why in report
- Check item descriptions and ingredient lists on the menu
BROWSER STEPS:
1. Open {service_url} using Chrome profile (has saved login/payment)
2. Verify logged in (account icon visible, not "Sign In")
- If not logged in → ABORT, report "Please log into {service} in Chrome first"
3. Search for "{restaurant}" using search bar
4. Click matching restaurant from results
- If not found or closed → ABORT, report reason
5. For each item in ITEMS:
- Find item on menu (use semantic matching)
- Check description for allergen conflicts before adding
- Click to open customization modal
- Select required options (size, protein, etc.)
- Apply customizations as specified
- Apply allergy-related modifications (remove conflicting ingredients)
- Apply PREFERENCES if customization options exist
- Click "Add to cart/bag/order"
6. Open cart and verify:
- Contents match ITEMS
- No allergen conflicts in final order
- Note any substitutions or issues
7. Proceed to checkout
- Confirm delivery address (use saved default)
- Add DELIVERY_NOTES if supported (special instructions field)
- Confirm payment method (use saved default)
- Note delivery ETA and total
8. Click "Place Order"
9. Wait for confirmation, capture order number and ETA
REPORT FORMAT:
✅ Order confirmed: {restaurant} via {service}, ETA {time}, total ${amount}
Allergy accommodations: {what was modified or "N/A"}
— OR —
❌ Failed: {reason}
Do NOT checkout if cart doesn't match requested items.
Do NOT checkout if allergen safety cannot be confirmed.
""",
label: "food-order-{service}"
)
Discovery Mode Execution
Phase 1: Recon (parallel)
Spawn sub-agents for ALL services simultaneously:
sessions_spawn(
task: """
Search for restaurants on {service}. RECON ONLY — do NOT order.
CRITERIA:
- Cuisine: {cuisine}
- Budget: {budget}
- Rating: {rating_preference}
- Servings: {servings}
- Allergies: {allergies or "none"}
- Dietary: {dietary or "none"}
- Preferences: {preferences}
⚠️ ALLERGY/DIETARY RULES:
- Only recommend restaurants where allergen-safe options clearly exist
- Flag any restaurant where the menu is ambiguous about allergens
- When noting menu highlights, confirm dishes are safe given stated allergies/dietary
BROWSER STEPS:
1. Open {service_url} using Chrome profile
2. Verify logged in
3. Search for "{cuisine}" or "{cuisine} food"
4. Apply filters if available (rating, price level, delivery time)
5. For top 3 restaurants:
- Note: name, rating (stars + review count), price level ($/$$/$$$)
- Note: delivery time estimate, delivery fee
- Click into restaurant, scan menu for items matching cuisine
- Note 2-3 standout dishes and typical entree price
- Check if menu items list ingredients or allergen info
- Flag any allergen concerns for highlighted dishes
RETURN FORMAT:
## {service} Results
### 1. {Restaurant Name}
- Rating: {stars} ({count} reviews)
- Price: {$/$$/$$S} (~${X}/person)
- Delivery: {time} min, ${fee} fee
- Menu highlights: {dishes matching criteria}
- Allergen safety: {safe / caution / unclear} — {notes}
- Fits constraints: {yes/no + notes}
### 2. ...
### 3. ...
**Best match:** {pick} because {reason}
""",
label: "food-recon-{service}"
)
Phase 2: Decision
After all recon sub-agents return, aggregate and compare:
| Service | Restaurant | Rating | $/person | ETA | Fits Constraints |
|---|---|---|---|---|---|
| ... | ... | ... | ... | ... | ... |
Select winner based on:
- Allergen safety first — eliminate any restaurant where safety is "unclear" or "caution" unless no safe options exist
- Must fit cuisine and dietary constraints
- Must be achievable within budget (leave 25% for fees/tip)
- Prefer higher rating
- Prefer faster delivery
- Menu fits stated preferences
Decide on order: Based on servings and preferences, plan a good meal:
- For 2: typically 1 appetizer + 2 entrees, or 2-3 shareable plates
- Stay within budget
- Never include items that conflict with allergies/dietary constraints
- Lean into preferences ("prefer noodles" → include noodle dish)
- If allergy info is ambiguous for an item, pick a clearly safe alternative
Phase 3: Order
Spawn order sub-agent for winning service (use Direct Mode task prompt above, with decided items).
State Tracking
Track in memory/food-order-state.json:
{
"ordered": {
"{calendar_event_id}": {
"at": "2026-02-06T19:00:00",
"mode": "discovery",
"criteria": "Thai food, high ratings, under $30, food for 2",
"constraints": {
"allergies": ["shellfish"],
"dietary": ["gluten-free"],
"delivery_notes": "leave at door"
},
"service": "doordash",
"restaurant": "Thai Basil",
"items": ["spring rolls", "pad thai (no shrimp)", "green curry"],
"status": "confirmed",
"eta": "7:35 PM",
"total": 28.47
}
}
}
Prune entries older than 24h on each check.
Error Handling
Error
Action
Not logged in
Abort, notify user to log in via Chrome
Restaurant closed
Direct: abort. Discovery: use next-best from recon
No matches found
Notify user, suggest broadening criteria
Over budget
Pick cheaper option or reduce order, note adjustment
Item unavailable
Closest substitute, note in confirmation
Allergen conflict
Never order the item. Pick safe alternative or skip. Flag in report
Allergen info unclear
Skip item, pick clearly safe alternative. Note uncertainty in report
Reference Files
| Error | Action |
|---|---|
| Not logged in | Abort, notify user to log in via Chrome |
| Restaurant closed | Direct: abort. Discovery: use next-best from recon |
| No matches found | Notify user, suggest broadening criteria |
| Over budget | Pick cheaper option or reduce order, note adjustment |
| Item unavailable | Closest substitute, note in confirmation |
| Allergen conflict | Never order the item. Pick safe alternative or skip. Flag in report |
| Allergen info unclear | Skip item, pick clearly safe alternative. Note uncertainty in report |
Service-specific gotchas and UI element locations in references/:
These document service quirks (promo modals, tip screens, etc.). Key steps are inlined in task prompts above for sub-agent self-sufficiency.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。