doordash-spend-guard
Что он делает
Этот скилл задает правила расходов для заказов агента в DoorDash и проверяет каждую корзину и оплату по ним. Он нужен тем, кто хочет жесткие ограничения трат на заказы еды, которые делает ИИ.
Когда использовать
- ✓Когда вы разрешаете агенту заказывать еду и хотите жесткий дневной или месячный лимит.
- ✓Когда хотите запретить заказы в определенные часы или ввести паузу между заказами.
- ✓Когда хотите видеть, сколько бюджета осталось до оплаты.
Ссылка на скилл
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-spend-guard/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Дай мне заказать еду на этой неделе, но не больше 60 долларов в сумме и ничего после 22:00.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Каждое изменение корзины и каждая оплата проходят через скрипт-обертку, который считает стоимость корзины, сверяет ее с вашими правилами и записью о расходах и отклоняет все, что не соответствует правилам.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Учитываются ли сборы и налоги?
Нет. Лимиты применяются к сумме без сборов, чаевых и налогов, которые видны на странице оплаты DoorDash.
Что если я закрыл страницу оплаты?
Запись о расходах считает ссылку на оплату намерением. Команда бюджета позже может сопоставить ее с историей заказов и отметить как оплаченную или брошенную.
Достаточно ли одного скилла?
Нет. Скилл дает рекомендации, а применение правил зависит от установки вместе сопутствующего хука и скрипта-обертки.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 33k
- Место в рейтинге
- #8828
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
owasp-security
33kУчит агента рекомендациям OWASP по безопасности для веб-приложений, API, мобильных приложений, контейнеров и ИИ-агентов: поиск слабостей и исправления.
agent-management
33kПозволяет агенту создавать, перечислять, усыплять, будить, переименовывать и удалять ИИ-агентов через AI Maestro, управляя жизненным циклом каждого.
agent-messaging
33kПозволяет агенту отправлять, получать и отвечать на подписанные сообщения между ИИ-агентами по протоколу Agent Messaging Protocol, в основном на вашем компьютере.
docs-search
33kПозволяет агенту искать по сгенерированной документации кода: сигнатуры функций, классы и комментарии, чтобы проверить реальный API до изменения кода.
Похожие скиллы
knowledge-automation
394kПомогает агенту настроить задачу по расписанию, которая добавляет новое содержимое в хранилище Knowledge, и проверить, что задача работает.
knowledge-source-ingest
394kПомогает агенту держать хранилище Knowledge в актуальном состоянии, добавляя новое из чатов, лент или почтовых ящиков без повторного добавления уже сохраненного.
benchmark
280kПомогает агенту измерять скорость и производительность кода. Полезен, чтобы убедиться, что всё быстро, и найти причины тормозов.