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'sdoordash-oss/doordash-cli.dd-climust be installed, on PATH, and logged in (dd-cli login).
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.
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.
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:
dd-cli order reorder --help and dd-cli order checkout-url --helpto confirm flags.
reorder, confirm the outputcontains a cart-uuid and that dd-cli cart show --cart-uuid <it> works.
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 inpreflight.notes.
User says something like "order my post-gym bowl" / "the usual after the gym":
contexts.Ambiguous → ask. No match → offer Flow 2 (capture) instead.
dd-cli order reorder --order-uuid <stored uuid>. Capturethe cart-uuid from the output.
dd-cli cart show --cart-uuid <cart-uuid> andcompare against the stored items_summary + baseline_total:
| Stored | Current | |
|---|---|---|
| Harvest Bowl | USD 13.95 | USD 14.95 ⬆ |
| Lemonade | USD 3.50 | ❌ missing |
| Subtotal | USD 17.45 | USD 14.95 |
Present the diff table to the user. Never skip this step, even when
everything matches — say "matches your baseline" explicitly.
baseline_total by more than tolerance_pct, STOP and ask the user how
to proceed (accept, edit cart via cart remove-item/cart add-items, or
abort). Do NOT hand over a checkout link silently.
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.
last_used / times_used; if the user accepted newprices, offer to refresh items_summary and baseline_total.
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.items_summary and baseline_total from the cartthat was just built (or from the history entry if it shows detail).
tolerance_pct: 10.When order reorder fails or the diff shows the restaurant no longer offers
the stored items:
dd-cli search --query "<restaurant name>" — confirm the restaurant stillexists on DoorDash. Gone → offer to retire the playbook or find a
replacement.
cart add-items, navigating with --help asneeded), confirm with the user, and after a successful checkout-url
handoff refresh the playbook's order_uuid from dd-cli order history.
contract of the skill.
appear only on the DoorDash payment page. Say so.
dd-cli reports auth/waitlist errors, stop and tell the user to rundd-cli login — don't retry in a loop.