doordash-spend-guard
Fungsinya
Skill ini menetapkan kebijakan pengeluaran untuk pesanan DoorDash agent Anda, dan memeriksa setiap keranjang serta checkout terhadap kebijakan tersebut. Skill ini untuk orang yang menginginkan batas pengeluaran yang tegas untuk pesanan makanan yang digerakkan AI.
Kapan dipakai
- βSaat Anda membiarkan agent memesan makanan dan menginginkan batas harian atau bulanan yang tegas.
- βKetika Anda ingin memblokir pesanan pada jam tertentu atau mewajibkan jeda antar pesanan.
- βSaat Anda ingin melihat sisa anggaran sebelum checkout.
Link skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-spend-guard/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBiarkan saya memesan makanan minggu ini, tetapi jangan pernah lebih dari 60 dolar secara total dan jangan ada pesanan setelah jam 10 malam.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Setiap perubahan keranjang dan checkout melewati skrip pembungkus yang menghitung harga keranjang, membandingkannya dengan kebijakan Anda dan catatan pengeluaran, lalu menolak apa pun yang melanggar kebijakan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
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. 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.
Pertanyaan umum
Apakah ini mencakup biaya dan pajak?
Tidak. Batas berlaku untuk subtotal sebelum biaya, tip, dan pajak, yang muncul di halaman pembayaran DoorDash.
Bagaimana jika saya meninggalkan halaman checkout?
Catatan pengeluaran menghitung tautan checkout sebagai niat. Perintah anggaran kemudian dapat mencocokkannya dengan riwayat pesanan Anda dan menandainya sebagai dibayar atau ditinggalkan.
Apakah skill ini sudah cukup dengan sendirinya?
Belum. Skill ini berupa panduan, dan penegakannya bergantung pada pemasangan hook pendamping dan skrip pembungkus secara bersamaan.
Detail
Deskripsi asli dari pembuat
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 d
Popularitas
- Bintang GitHub
- 33k
- Peringkat
- #8828
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
owasp-security
33kMengajari agent Anda panduan keamanan OWASP untuk aplikasi web, API, mobile, kontainer, dan agent AI, sehingga bisa menemukan kelemahan umum dan menyarankan perbaikan.
agent-management
33kMembiarkan agent Anda membuat, mencantumkan, menidurkan, membangunkan, mengganti nama, dan menghapus agent AI menggunakan baris perintah AI Maestro, sambil mengelola siklus hidup setiap agent.
agent-messaging
33kMembiarkan agent Anda mengirim, menerima, dan membalas pesan bertanda tangan antaragent AI, menggunakan Agent Messaging Protocol, sebagian besar di mesin Anda sendiri.
docs-search
33kMembiarkan agent Anda mencari dokumentasi kode yang dibuat otomatis untuk tanda tangan fungsi, definisi kelas, dan komentar, sehingga agent memeriksa API yang sebenarnya sebelum mengubah kode.
Skill serupa
knowledge-automation
394kMembantu agent Anda mengatur tugas terjadwal yang memasukkan konten baru ke Knowledge vault Anda secara rutin, lalu memastikan tugas itu berjalan.
knowledge-source-ingest
394kMembantu agent Anda menjaga Knowledge vault tetap mutakhir dengan item baru dari chat, feed, atau kotak surat, tanpa menambahkan ulang yang sudah ada.
benchmark
280kMembantu agent Anda mengukur kecepatan dan performa kode. Berguna untuk memastikan semuanya cepat dan menemukan penyebab kelambatan.