Doordash Budget
View DoorDash spend vs caps, edit the dd-guard spending policy interactively, and reconcile the intent ledger against real order history
$ npx claude-code-templates@latest --command="doordash/doordash-budget" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
DoorDash Budget Manager
Manage the dd-guard spending policy: $ARGUMENTS
State: ~/.claude/dd-guard/limits.json (policy) and
~/.claude/dd-guard/ledger.jsonl (spend ledger). This command is the ONLY
sanctioned way to modify limits.json — the doordash-spend-guard hook blocks
direct command-line writes to it by design.
Current State
- Policy: !
cat ~/.claude/dd-guard/limits.json 2>/dev/null || echo "(no policy yet — dd-guard seeds defaults on first run)" - Headroom: !
bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh status 2>/dev/null || echo "(dd-guard.sh not installed — install the doordash-spend-guard skill)"
Task
Parse $ARGUMENTS and run the matching subcommand:
status (default when no arguments)
Present the dd-guard status output as a friendly table: each cap, spend to
date, headroom left. Note how many ledger entries are unreconciled intents
and remind that subtotals exclude fees/tips.
set
Interactive policy editing:
- Show the current policy values one by one.
- Ask the user which value to change and to what
per_order_max, daily_max, weekly_max, monthly_max,
cooldown_minutes, allowed_hours.start/end). Setting a cap to null
removes it.
- Confirm the exact new policy with the user before writing — read back
- Write
~/.claude/dd-guard/limits.jsonwith the Write tool (the hook
redirection).
reconcile
Match unpaid intents against reality:
- Run
dd-cli order historyand list recent orders. - For each ledger line with
"status": "intent", check whether a matching
- Match found → update the line to "status": "paid".
- Clearly abandoned (old intent, no matching order) → ask the user, then
mark "status": "abandoned" so it stops counting against caps.
- Rewrite
ledger.jsonlpreserving all other lines untouched
- Report: N paid, M abandoned, K still pending.
Rules
- Never change policy values without explicit user confirmation of the final
- Never delete ledger history — reconciliation only flips
status. - If the user asks to raise caps mid-session right after a blocked checkout,
point of the tool).
Related Claude Code Commands
Doordash Lunch
Team lunch orchestration via DoorDash CLI - build a group round, emit checkout with split table, track payer rotation
Doordash Playbook
Manage saved DoorDash order playbooks (list, add from order history, remove, inspect) stored in ~/.claude/dd-cli/playbooks.json
Doordash Profile
Manage the dietary profile (allergens with severity tiers, diets, dislikes) used by doordash-allergy-shield to vet DoorDash carts
Doordash Report
Spend and activity report for agent-driven DoorDash ordering - reconciles the audit log against real order history and renders totals, per-restaurant breakdown, repeat rate, and abandoned-cart rate
Generate Tests
Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.
Ultra Think
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.