Agent skill

Doordash Spend Guard

by davila7 in davila7/claude-code-templates

Hard spending policy for agent-driven DoorDash ordering through the DoorDash CLI (dd-cli).

MITAuto-check passed

Install Doordash Spend Guard

skills CLI
$ npx skills add davila7/claude-code-templates --skill doordash-spend-guard -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates doordash-spend-guard --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/doordash/doordash-spend-guard .claude/skills/doordash-spend-guard && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
doordash-spend-guard
GitHub stars
33k
Token cost
~1.3k tokens
SKILL.md length
483 words
Files
2 (incl. scripts)
Skills in repo
479
Repo updated
First seen
Licence
MIT

At a glance

Hard spending policy for agent-driven DoorDash ordering through the DoorDash CLI (dd-cli).

  • Works in 5 steps: Session start / before building a cart:… → Adding items: route through the wrapper — → Checkout: NEVER call dd-cli order… → …
  • The user wants budget limits on agent food ordering
  • SKILL.md covers Honest scope, Components in this bundle, State (created on first run) and Protocol (follow ALWAYS while…, plus 1 more section
  • Runs Shell scripts from its folder; calls bash and jq

What it does

Doordash Spend Guard is an agent skill from davila7/claude-code-templates. 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 have I spent on…

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/dd-guard.sh`).

The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • The user wants budget limits on agent food ordering
  • Asks how much have I spent on DoorDash
  • Wants to set spending caps
  • Whenever building carts / checking out with dd-cli while this skill is installed

Example prompts

  • “how much have I spent on DoorDash”
  • “/doordash-spend-guard”

Requirements

  • A Bash shell
  • Pre-approved tools (allowed-tools): Bash(dd-cli:*), Bash(bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh:*), Bash(command -v:*), Bash(mkdir:*), Bash(cat:*), Bash(jq:*), Read

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Session start / before building a cart: report headroom —
  2. Adding items: route through the wrapper —
  3. Checkout: NEVER call dd-cli order checkout-url directly. Use
  4. When blocked, do not negotiate with the wrapper. No editing
  5. If the wrapper reports the cart subtotal as unparseable, it blocks by

What it can do on your machine

Read from SKILL.md and the folder at commit c0ca7da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(dd-cli:*)
    • Bash(bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh:*)
    • Bash(command -v:*)
    • Bash(mkdir:*)
    • Bash(cat:*)
    • Bash(jq:*)
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Doordash Spend Guard loads about 1.3k tokens when it runs. Until then it costs about 187 tokens; SKILL.md has 483 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~187
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit c0ca7da, republished under its MIT licence (© davila7). 483 words, ~1,292 tokens.

Download SKILL.mdSave it as .claude/skills/doordash-spend-guard/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
doordash-spend-guard
description
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 have I spent on DoorDash", wants to set spending caps, or whenever building carts / checking out with dd-cli while this skill is installed. Pairs with a PreToolUse hook that denies raw dd-cli checkout calls that bypass the wrapper.
allowed-tools
Bash(dd-cli:*), Bash(bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh:*), Bash(command -v:*), Bash(mkdir:*), Bash(cat:*), Bash(jq:*), Read
tags
DoorDash, Budget, Spending Limits, Guardrails, CLI, Safety

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's doordash-oss/doordash-cli. Requires dd-cli installed and logged in. Wrapper needs python3.

Honest scope

  • Caps apply to the pre-fee subtotal that cart show exposes; 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

PieceRole
this skillprotocol: always route through dd-guard, report headroom
scripts/dd-guard.sh → installs to .claude/skills/doordash-spend-guard/scripts/dd-guard.shthe deterministic gate
hook doordash/doordash-spend-guarddenies bypasses of the wrapper
command /doordash-budgetview/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.
json
{
  "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"} (status becomes paid / abandoned after reconciliation).
Show full SKILL.md (239 more words)Show less

Protocol (follow ALWAYS while this skill is installed)

  1. 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.
  2. 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.
  3. Checkout: NEVER call dd-cli order checkout-url directly. 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.
  4. 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.
  5. 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:

bash
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.

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in cli-tool/components/skills/doordash/doordash-spend-guard of davila7/claude-code-templates.

  • SKILL.md
  • scripts/dd-guard.sh

Open the folder on GitHubat commit c0ca7da

Compare with similar skills

Doordash Spend Guard next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Doordash Spend Guard compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Doordash Spend Guard this skilldavila7/claude-code-templates33k—~1.3kAutomated safety check: PassMIT
Implementing Policy As Code With Open Policy Agentmukul975/Anthropic-Cybersecurity-Skills34k—~2.6kAutomated safety check: NotesApache-2.0
Safety Guardaffaan-m/ECC277k2 repos~554Automated safety check: NotesMIT
Guard Modegarrytan/gstack136k—~1kAutomated safety check: NotesMIT
Policy Acknowledgementsickn33/agentic-awesome-skills47k1 repos~3.4kAutomated safety check: PassMIT
Doordashvellum-ai/vellum-assistant1.4k—~3.3kAutomated safety check: WarnMIT

Similar skills

  • Implementing Policy As Code With Open Policy Agent

    mukul975/Anthropic-Cybersecurity-Skills

    Implements policy-as-code enforcement with Open Policy Agent (OPA) and Gatekeeper for Kubernetes and CI/CD pipelines, covering writing Rego policies, deploying OPA Gatekeeper as a Kubernetes…

    34k GitHub stars~2.6k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Safety Guard

    affaan-m/ECC

    Guard against destructive operations with three modes: Careful intercepts dangerous commands (rm -rf, git push --force, DROP TABLE) for confirmation, Freeze locks writes to one directory, and Guard…

    277k GitHub starsUsed in 2 repos~554 tokens
    DevelopmentAuto-check: notes
  • Guard Mode

    garrytan/gstack

    Switches on full safety by combining warnings before destructive commands with a block on edits outside one directory you choose, for work on production or live systems.

    136k GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • Policy Acknowledgement

    sickn33/agentic-awesome-skills

    Policy acknowledgement register: employee, policy and version, sent and due dates, acknowledged date and flag, days overdue, reminder sent and status.

    47k GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed
  • Doordash

    vellum-ai/vellum-assistant

    Order food, groceries, and convenience items from DoorDash using the built-in CLI integration

    1.4k GitHub stars~3.3k tokensUpdated 2 days ago
    Auto-check: warnings
  • Privacy Policy

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing whether a website has a visible, accessible privacy policy link, particularly in the footer navigation.

    74k GitHub stars~617 tokensUpdated 5 days ago
    Legal & ComplianceAuto-check passed

More from davila7/claude-code-templates

All 479 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    33k GitHub starsUsed in 11 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    33k GitHub starsUsed in 9 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    33k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    33k GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    33k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    33k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Questions about Doordash Spend Guard

What does Doordash Spend Guard do?

Hard spending policy for agent-driven DoorDash ordering through the DoorDash CLI (dd-cli). Doordash Spend Guard is an agent skill from davila7/claude-code-templates. Hard spending policy for agent-driven DoorDash ordering through the DoorDash CLI (dd-cli).

When should I use Doordash Spend Guard?

Doordash Spend Guard fits situations like: the user wants budget limits on agent food ordering; asks how much have I spent on DoorDash; wants to set spending caps; whenever building carts / checking out with dd-cli while this skill is installed.

How do I install Doordash Spend Guard in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill doordash-spend-guard -a claude-code`. Or copy the skill folder (cli-tool/components/skills/doordash/doordash-spend-guard in davila7/claude-code-templates) into .claude/skills/doordash-spend-guard in your project. Claude Code loads it when a task matches its description.

How do I install Doordash Spend Guard in Codex?

Run `npx skills add davila7/claude-code-templates --skill doordash-spend-guard -a codex`. Or copy the skill folder (cli-tool/components/skills/doordash/doordash-spend-guard in davila7/claude-code-templates) into .agents/skills/doordash-spend-guard in your project. Codex loads it when a task matches its description.

Can I use Doordash Spend Guard in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill doordash-spend-guard -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doordash-spend-guard, .gemini/skills/doordash-spend-guard, .github/skills/doordash-spend-guard and .opencode/skills/doordash-spend-guard in your project.

What does Doordash Spend Guard need to run?

Going by SKILL.md and its folder, Doordash Spend Guard needs a shell for the scripts in its folder and the command-line tools its instructions call (bash and jq). Our summary lists: A Bash shell. Its frontmatter pre-approves these tools: Bash(dd-cli:*), Bash(bash .claude/skills/doordash-spend-guard/scripts/dd-guard.sh:*), Bash(command -v:*), Bash(mkdir:*), Bash(cat:*), Bash(jq:*), Read.

Does Doordash Spend Guard access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Doordash Spend Guard safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Doordash Spend Guard use?

Doordash Spend Guard is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Doordash Spend Guard use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Doordash Spend Guard?

Skills that share tags, products or a category with Doordash Spend Guard: Implementing Policy As Code With Open Policy Agent (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Safety Guard (affaan-m/ECC, 277k stars), Guard Mode (garrytan/gstack, 136k stars) and Policy Acknowledgement (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Doordash Spend Guard?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,512 GitHub stars. The repository holds 479 skills in this directory. The repository was last updated on October 10, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.