doordash-order-playbooks
它能做什么
这项技能把你平时常点的 DoorDash 订单保存为你指定的名称,之后可以按名称再次下单。适合经常吃同样的餐、希望快速且安全地重新下单的人。
适用场景
- ✓当你要求重新下单某份已保存的餐食时,例如“常点的那份”或“周五的拉面”。
- ✓当你刚下了一单,想把它保存为一个命名模板时。
- ✓当你想列出或删除已保存的订单时。
技能链接
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-order-playbooks/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我重新下单 post-gym 碗餐,但如果价格或商品有变化,请先告诉我。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把订单的商品和总价保存为基准。在显示任何结账链接之前,它会把当前购物车与该基准比较,并标记替换的商品或较大的价格变化。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
DoorDash Order Playbooks
Saved orders with names and contexts, recalled safely. A playbook maps a
human name ("post-gym", "late-night deploy", "Friday ramen") to a concrete
DoorDash order that can be rebuilt with dd-cli order reorder — plus enough
stored detail to detect drift (menu changes, price hikes, substitutions)
before the user is ever handed a checkout link.
Unofficial community skill built on DoorDash's
doordash-oss/doordash-cli.dd-climust be installed, on PATH, and logged in (dd-cli login).
Why this exists
dd-cli order history already lists past orders — but Claude has no
cross-session memory of which order is "the post-gym one", and plain
reordering silently accepts whatever the restaurant's menu says today:
substituted items, missing items, higher prices. This skill stores the
mapping AND makes a cart-diff against the stored baseline mandatory
before emitting any checkout URL. Silent drift becomes a caught event.
State
Single JSON file: ~/.claude/dd-cli/playbooks.json
{
"playbooks": {
"post-gym": {
"order_uuid": "<uuid from dd-cli order history>",
"restaurant": "Sweetgreen",
"items_summary": [
{ "name": "Harvest Bowl", "qty": 1, "price": 13.95 },
{ "name": "Lemonade", "qty": 1, "price": 3.5 }
],
"baseline_total": 17.45,
"tolerance_pct": 10,
"contexts": ["post-gym", "gym", "workout"],
"last_used": "2026-07-19",
"times_used": 4
}
},
"preflight": { "verified": false, "notes": "" }
}
Create the directory and file on first use (mkdir -p ~/.claude/dd-cli).
Prices are pre-fee subtotals — say so when presenting totals.
Preflight (first use only — REQUIRED)
This skill assumes dd-cli order reorder --order-uuid Y returns a cart-uuid
that cart show and order checkout-url accept. That handoff is
load-bearing and must be verified empirically once per install:
- Run
dd-cli order reorder --helpanddd-cli order checkout-url --helpto confirm flags. - On the first real recall, after running
reorder, confirm the output contains a cart-uuid and thatdd-cli cart show --cart-uuid <it>works. - Record the outcome in
preflight.verified(+ any format notes inpreflight.notes) so future sessions skip this step.
If the handoff does NOT work as assumed, fall back to rebuilding the cart
manually (dd-cli search → cart add-items) and record that in
preflight.notes.
Flow 1 — Recall (the main flow)
User says something like "order my post-gym bowl" / "the usual after the gym":
Match: fuzzy-match the request against playbook names and
contexts. Ambiguous → ask. No match → offer Flow 2 (capture) instead.Rebuild:
dd-cli order reorder --order-uuid <stored uuid>. Capture the cart-uuid from the output.MANDATORY diff: run
dd-cli cart show --cart-uuid <cart-uuid>and compare against the storeditems_summary+baseline_total:Stored Current Harvest Bowl $13.95 $14.95 ⬆ Lemonade $3.50 ❌ missing Subtotal $17.45 $14.95 Present the diff table to the user. Never skip this step, even when everything matches — say "matches your baseline" explicitly.
Gate: if items are missing/substituted, or the subtotal exceeds
baseline_totalby more thantolerance_pct, STOP and ask the user how to proceed (accept, edit cart viacart remove-item/cart add-items, or abort). Do NOT hand over a checkout link silently.Checkout: only after the diff is shown (and approved when the gate tripped):
dd-cli order checkout-url --cart-uuid <cart-uuid>. Hand the URL to the user — payment always happens on the DoorDash page, by the human.Update: bump
last_used/times_used; if the user accepted new prices, offer to refreshitems_summaryandbaseline_total.
Flow 2 — Capture
After ANY completed order (via playbook or bespoke), offer once — don't nag: "Want to save this as a playbook?" If yes:
dd-cli order history— take the most recent order's uuid.- Ask for a name and optional context words ("when should I suggest this?").
- Write the entry with
items_summaryandbaseline_totalfrom the cart that was just built (or from the history entry if it shows detail). - Default
tolerance_pct: 10.
Flow 3 — Staleness / self-heal
When order reorder fails or the diff shows the restaurant no longer
常见问题
为什么要与旧订单比较?
菜单会变化,同样的订单可能出现替换、缺货或涨价的情况。比较可以在结账前发现这些问题。
保存的订单存放在哪里?
存放在你的 Claude DoorDash 设置文件夹中的 playbooks 文件里。
价格变化会阻止下单吗?
这项技能使用容差百分比,小幅变化可以通过,较大的变化会被标记,由你决定。
详情
作者的原始描述
Named, context-bound saved DoorDash orders ("post-gym", "late-night deploy") recalled through the DoorDash CLI (dd-cli) with a mandatory cart-diff before any checkout link is handed over. Use when the user names a saved order ("order my post-gym bowl", "the usual", "my Friday ramen"), wants to save the order they just placed as a playbook, or asks to list/remove saved orders. Persists name→order-uuid playbooks across sessions, catches silent menu/price drift on every recall, and self-heals stale playbooks when a restaurant's menu changes. Requires dd-cli (macOS Apple Silicon, waitlist-gated).
热度
- GitHub 星标
- 33k
- 排名
- #8827
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
owasp-security
33k教你的智能体掌握面向网页应用、API、移动端、容器和 AI 智能体的 OWASP 安全指南,以便发现常见弱点并提出修复建议。
agent-management
33k让你的智能体使用 AI Maestro 命令行工具创建、列出、休眠、唤醒、重命名和删除 AI 智能体,管理每个智能体的生命周期。
agent-messaging
33k让你的智能体使用智能体消息协议,在 AI 智能体之间发送、接收和回复带签名的消息,大部分在你自己的电脑上完成。
docs-search
33k让你的智能体搜索自动生成的代码文档,查找函数签名、类定义和注释,从而在修改代码之前核对真实的 API。