본문으로 건너뛰기
Skillpedia
자동화33k · #8828

doordash-spend-guard

하는 일

이 스킬은 에이전트의 DoorDash 주문에 지출 정책을 설정하고, 모든 장바구니와 결제를 그 정책과 대조합니다. AI가 주문하는 음식에 대해 확실한 지출 한도를 원하는 사람에게 맞습니다.

사용하는 경우

  • ✓에이전트가 음식을 주문하도록 하면서 하루나 한 달 단위의 확실한 한도를 두고 싶을 때.
  • ✓특정 시간대에 주문을 막거나 주문 사이에 대기 시간을 두고 싶을 때.
  • ✓결제 전에 남은 예산이 얼마인지 확인하고 싶을 때.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-spend-guard/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-spend-guard/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이번 주에 음식을 주문해 주세요. 총액은 60달러를 넘지 않게 하고, 밤 10시 이후에는 주문하지 마세요.”

매주 새 스킬 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. 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

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.
{
  "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).

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

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8828
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬