Đang tải…
Đang tải…
Team lunch orchestration via DoorDash CLI - build a group round, emit checkout with split table, track payer rotation
npx claude-code-templates@latest --command doordash/doordash-lunchGroup order operation: $ARGUMENTS
Works with the doordash-group-orders skill (install it alongside — it defines
the full flows; this command is the quick entrypoint). State:
team-food.json (roster), .dd/round-<date>.json (active round),
.dd/rounds.jsonl (history).
cat team-food.json 2>/dev/null || cat ~/.claude/dd-cli/team-food.json 2>/dev/null || echo "(no roster yet)"ls .dd/round-*.json 2>/dev/null | tail -1 || echo "(none)"wc -l < .dd/rounds.jsonl 2>/dev/null || echo "0" rounds recordedParse $ARGUMENTS:
order (default)Run Flow 1 of the doordash-group-orders skill: roster check → constraint-aware
restaurant shortlist via dd-cli search → per-member choices (favorites
first, one question max per member) → build cart recording person →
cart-item-id in the round ledger → show the cart grouped by person.
If the user pastes a thread of requests, parse it (Flow 2) instead of interviewing members.
checkoutbash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh checkout <cart-uuid> when doordash-spend-guard is installed, otherwise
dd-cli order checkout-url --cart-uuid <cart-uuid>.dd-cli order history, ask who paid, append {date, order_uuid, payer, split} to
.dd/rounds.jsonl, and offer the fee-proration fallback ("tell me the
final total and I'll prorate the difference").whose-turnRead .dd/rounds.jsonl, compute per-member (consumed − paid) balances,
name the next payer, show the balance table so the answer explains itself.
rosterShow/edit team-food.json interactively: add/remove members, update hard
constraints, allergens (ask severity explicitly), favorites, dislikes.
Confirm the final JSON before writing.
cart show output — attribution depends on it.