
DoorDash Spend Guard
FreeSet and enforce spending limits for DoorDash orders.
Free · Opens the source repo
What DoorDash Spend Guard does
DoorDash Spend Guard is a command-line skill designed to help users manage their DoorDash spending through the DoorDash CLI (dd-cli). This skill introduces a structured approach to budgeting by enforcing hard spending policies on each order. Users can set caps on per-order amounts, as well as daily, weekly, and monthly spending limits. The skill operates by routing all cart mutations and checkout processes through a wrapper script, dd-guard.sh, which checks the current spending against a persistent ledger before allowing any order to proceed.
The skill is particularly useful for individuals who want to maintain control over their food delivery expenses, especially in environments where automated ordering is common. By utilizing this skill, users can avoid overspending and ensure that their ordering habits align with their financial goals. The enforcement mechanism is robust, as it not only denies out-of-policy checkouts but also provides feedback on remaining budget limits, helping users make informed decisions before placing orders.
In addition to enforcing spending limits, the skill includes a ledger that tracks each order's intent, whether paid or abandoned, allowing users to have a clear view of their spending history. This ledger can be reconciled against the DoorDash order history to ensure accuracy. The skill requires the user to have the DoorDash CLI installed and logged in, and it is designed to work seamlessly with the existing command-line tools, making it easy to integrate into a developer's workflow.
Overall, DoorDash Spend Guard is an essential tool for anyone looking to add a layer of financial discipline to their food ordering process, providing both oversight and control over spending habits.
When to use it
Use this skill when you want to set specific spending limits on DoorDash orders and ensure compliance with those limits during automated ordering.
When not to use it
This skill may not be suitable for users who prefer a flexible spending approach without enforced limits or for those who do not use the DoorDash CLI.
What you can build with it
Setting a Monthly Spending Cap
Use the skill to define a monthly limit for DoorDash orders, ensuring you stay within budget.
Tracking Weekly Expenses
Monitor your weekly spending on DoorDash by checking the ledger for reconciled amounts.
Preventing Overspending During Late Night Orders
Set specific hours when orders are blocked to avoid late-night impulse purchases.
How to install DoorDash Spend Guard
View source1. Install with the skills CLI
npx skills add davila7/claude-code-templates/doordash-spend-guard --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by davila7DoorDash Spend Guard
A budget stated in a prompt is advisory — the model can forget it mid-session
and prompt injection can override it. This skill makes the budget
deterministic: every checkout and cart mutation goes through one audited
wrapper (dd-guard.sh) that prices the cart, checks the policy, and refuses
out-of-policy actions with a machine exit code. The companion PreToolUse hook
(doordash-spend-guard hook component) denies raw dd-cli order checkout-url /
dd-cli cart add-items calls that try to bypass the wrapper.
Unofficial community skill built on DoorDash's
doordash-oss/doordash-cli. Requiresdd-cliinstalled and logged in. Wrapper needspython3.
Honest scope
- Caps apply to the pre-fee subtotal that
cart showexposes; fees, tip and tax land on the DoorDash payment page. Documented headroom, not loopholes. - The ledger records intent when a checkout URL is issued; the human may
abandon the page.
/doordash-budgetreconciles intents againstdd-cli order history, marking entriespaidorabandoned. - Enforcement teeth come from the hook + wrapper combo. Install both; the skill alone is guidance.
Components in this bundle
| Piece | Role |
|---|---|
| this skill | protocol: always route through dd-guard, report headroom |
scripts/dd-guard.sh → installs to .claude/skills/doordash-spend-guard/scripts/dd-guard.sh | the deterministic gate |
hook doordash/doordash-spend-guard | denies bypasses of the wrapper |
command /doordash-budget | view/edit policy, reconcile ledger |
State (created on first run)
~/.claude/dd-guard/limits.json— policy. Human-edited only. Never edit this file yourself; when the user asks for a change, direct them to/doordash-budgetwhich confirms interactively.
{
"per_order_max": 40,
"daily_max": 60,
"weekly_max": 150,
"monthly_max": 400,
"cooldown_minutes": 45,
"allowed_hours": { "start": 7, "end": 23 }
}
~/.claude/dd-guard/ledger.jsonl— one line per priced action:{"ts": "...", "cart_uuid": "...", "subtotal": 24.5, "status": "intent"}(statusbecomespaid/abandonedafter reconciliation).
Protocol (follow ALWAYS while this skill is installed)
- Session start / before building a cart: report headroom —
bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh statusprints spend-to-date vs each cap. Tell the user their remaining budget before adding items. - Adding items: route through the wrapper —
bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh add-items <the exact dd-cli cart add-items args>The wrapper execs the realdd-cli cart add-items ...and re-prices the cart afterwards. - Checkout: NEVER call
dd-cli order checkout-urldirectly. Usebash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh checkout <cart-uuid>- exit 0 → it printed the checkout URL and appended a ledger intent line.
- exit 2 → blocked; it printed a human-readable reason (which cap, by how
much). Relay the reason verbatim, then help within policy — e.g. suggest
a cheaper reorder from
dd-cli order historyor trimming the cart withdd-cli cart remove-item.
- When blocked, do not negotiate with the wrapper. No editing
limits.json, no retrying with a fresh cart to reset the cooldown, no
splitting one order into several to duck the per-order cap. If the user
wants a different policy, point them to
/doordash-budget. - If the wrapper reports the cart subtotal as unparseable, it blocks by
design (conservative default). Show the user the raw
cart showoutput and ask them to confirm the total explicitly before any manual override.
Reading the ledger
Answer "how much have I spent this week?" from the ledger, not memory:
bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh status
# or raw:
cat ~/.claude/dd-guard/ledger.jsonl | jq -s '[.[] | select(.status != "abandoned")] | map(.subtotal) | add'
Remind the user that subtotals exclude fees/tips and intents may not have
been paid — /doordash-budget reconciles.
Frequently asked questions about DoorDash Spend Guard
Similar skills
Firefly III CLI
Manage personal finances directly from your command line.
Fitness & Nutrition
Comprehensive fitness and nutrition tracking in one skill.
AI Health Analyzer
Get AI-driven insights and personalized health recommendations.
Blue Ribbon Nearby
Find nearby Blue Ribbon restaurants based on your location.
Quit Sponsor
Your AI companion for quitting smoking support.
Relationship Analyst
Explore the depths of your relationship dynamics.
