davila7/claude-code-templates/doordash-spend-guard
Claude Code and agent skill by davila7/claude-code-templates
- community
Checking that the SKILL.md file is still in the repository.
Hard spending policy for agent-driven DoorDash ordering through the DoorDash CLI (dd-cli). Per-order ceiling, daily/weekly/monthly caps, cooldown between orders, and blocked hours — enforced deterministically by routing every cart-mutation and checkout through the dd-guard wrapper script, which prices the cart, checks the policy against a persistent spend ledger, and refuses out-of-policy checkouts with exit code 2. Use when the user wants budget limits on agent food ordering, asks "how much ha…
Install
npx vskill@latest install davila7/claude-code-templates/doordash-spend-guardSKILL.md
The same SKILL.md was published earlier as davila7/claude-code-templates/doordash-spend-guard.
DoorDash 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'sdoordash-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-budget reconciles intents against dd-cli order history, marking entries paid or abandoned.
- 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-budget which confirms interactively.
~/.claude/dd-guard/ledger.jsonl— one line per priced action:
{"ts": "...", "cart_uuid": "...", "subtotal": 24.5, "status": "intent"} (status becomes paid / abandoned after 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 status prints 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 real dd-cli cart add-items ... and re-prices the cart afterwards.
- Checkout: NEVER call
dd-cli order checkout-urldirectly. Use
bash .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 history or trimming the cart with dd-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 show output 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:
Remind the user that subtotals exclude fees/tips and intents may not have been paid — /doordash-budget reconciles.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcli-tool/components/skills/doordash/doordash-spend-guard/SKILL.md
Popularity
- Repository stars
- 32,892
- Repository forks
- 3,792
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/davila7/claude-code-templates/doordash-spend-guard)