跳到正文
Skillpedia
自动化33k · #8825

doordash-group-orders

它能做什么

这项技能让你的智能体为团队在 DoorDash 上下一次集体订单。适合经常为多人订午餐或晚餐、需要分摊账单的人。

适用场景

  • ✓当你想在同一个购物车中为整个团队订午餐或晚餐时。
  • ✓当你需要把每个人的餐食记在其名下,并分摊费用以便报销时。
  • ✓当你希望智能体在结账前检查全组的过敏和饮食情况的时候。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-group-orders/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-group-orders/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在 DoorDash 上为团队订午餐,让每个人的餐食分开,并分摊费用。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会保存团队成员的偏好名单,把每个人的选择合并到一个购物车中,记录每件商品属于谁,并计算每个人应付的份额,包括费用在内。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

DoorDash Group Orders

Coordinating N people's food is exactly the cross-session state Claude drops: who's vegetarian, who hates cilantro, which cart line is Bob's, whose turn it is to pay. This skill keeps a roster, attributes every cart line to its eater, splits costs with fees prorated, and remembers payer history.

Unofficial community skill built on DoorDash's doordash-oss/doordash-cli. Note: dd-cli orders under ONE account — the account owner pays DoorDash; the split is for reimbursement (Venmo/transfer), not split payment.

State

  • team-food.json (project dir or ~/.claude/dd-cli/ — committable if the team shares a repo): the roster.
{
  "members": {
    "dani":  { "hard": ["vegetarian"], "allergens": [{ "name": "peanut", "severity": "anaphylaxis" }], "favorites": ["Veggie burrito bowl"], "dislikes": ["cilantro"] },
    "bob":   { "hard": [], "allergens": [], "favorites": ["Spicy chicken sandwich"], "dislikes": [] }
  }
}
  • .dd/round-<date>.json — the active round's ledger:
{
  "date": "2026-07-19",
  "cart_uuid": "...",
  "restaurant": "...",
  "orders": {
    "dani": [{ "item": "Veggie bowl", "cart_item_id": "41", "price": 12.5 }],
    "bob":  [{ "item": "Spicy chicken sandwich", "cart_item_id": "42", "price": 11.0 }]
  }
}
  • .dd/rounds.jsonl — history, one line per completed round: {"date": "...", "order_uuid": "...", "payer": "dani", "split": {"dani": 14.1, "bob": 12.4}}

Flow 1 — Build a round

"Order lunch for the team":

  1. Roster check: load team-food.json; missing members → quick interview (hard constraints, allergens + severity, a favorite, dislikes).
  2. Restaurant: intersect hard constraints (a vegetarian on the roster = only places with real vegetarian options). dd-cli search --query "..." → shortlist of 2-3 → let the human pick.
  3. Per-member choice: use their favorites when the restaurant matches; otherwise ask ONE question per member (or take answers from a pasted thread — Flow 2). Never guess for someone with allergens.
  4. Build the cart: dd-cli cart add-items ... per member's items (via the dd-guard wrapper when doordash-spend-guard is installed). After each add, run dd-cli cart show --cart-uuid <X> and record which cart-item-id belongs to whom in .dd/round-<date>.json. This ledger is what makes "quita lo de Bob" resolvable later.
  5. Review: show the cart grouped by person with per-person subtotals.
  6. Checkout: emit the checkout URL (through dd-guard if installed). The group gate hook independently re-checks allergens (see below).
  7. Close the round: after the human confirms they ordered, pull the order_uuid from dd-cli order history, compute the split, append to .dd/rounds.jsonl, and print a share-ready split table.

Flow 2 — Paste-a-thread intake

The user pastes a Slack/chat thread ("who wants what"). Parse it into the round file: person → requested items. Unknown people → ask if they should join the roster. Ambiguous requests ("something spicy") → one clarifying question, or their favorite if the restaurant matches. Then continue Flow 1 from step 4.

Flow 3 — Edits by person

"Bob canceló" / "cambia lo de Sam": look up the person's cart_item_ids in the round ledger, dd-cli cart remove-item --cart-uuid X --cart-item-id N for each, update the ledger, re-show the grouped cart.

Cost split

  • Item subtotals per person from the round ledger.
  • Fees/tip/tax are only final on the payment page: split the known subtotal now, and offer the post-payment fallback — "tell me the final total and I'll prorate the difference by each person's share."
  • split = per-person items + prorated share of (final_total − subtotal) when provided.

/whose-turn

Read .dd/rounds.jsonl: sum what each member has paid vs. consumed across rounds; the next payer is the member with the largest (consumed − paid) balance. Show the balances so the answer explains itself.

Rules

  • Anyone with an anaphylaxis allergen gets the same vetting the doordash-allergy-shield skill applies — check their items against hidden-source synonyms, and never guess their order.
  • cart-item-ids come only from real cart show output.
  • The round ledger is the source of truth for attribution — keep it updated on every cart mutation, or person-level edits break.
  • Add .dd/ to .gitignore unless the team explicitly wants round history committed (it reveals eating habits).
常见问题

谁来付 DoorDash 的费用?

账户所有者付款,因为 CLI 使用同一个账户下单。分摊是事后通过转账给大家报销。

团队名单保存在哪里?

保存在你项目文件夹或 Claude 设置文件夹中的一个团队餐饮文件里,如果团队使用同一个仓库,它可以共享。

它会记得上次是谁付的款吗?

会。它会保存已完成轮次的记录,以便公平地轮换付款人。

详情

作者的原始描述

Group food ordering through the DoorDash CLI (dd-cli) from a persistent team roster. One request (\"lunch for the team\") fans out into a single merged cart with every line attributed to its eater via a person-to-cart-item-id ledger, per-person cost split with fee proration, payer rotation history, and a checkout gate that re-derives allergen conflicts against the roster live. Use when ordering for multiple people — team lunch, incident-response food, \"collect orders from the thread\" — or for /whose-turn payer rotation questions. Handles paste-a-thread intake: paste a Slack/chat thread and i

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8825
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能