doordash-order-ledger

Query the DoorDash audit log to report agent ordering activity and spending.

30.5k|3.5k|Updated Jul 4, 2025
One-click install
npx skills add https://github.com/davila7/claude-code-templates --skill doordash-order-ledger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doordash-order-ledger
Source: https://github.com/davila7/claude-code-templates/tree/main/cli-tool/components/skills/doordash/doordash-order-ledger
Command: npx skills add https://github.com/davila7/claude-code-templates --skill doordash-order-ledger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When an AI agent places DoorDash orders on your behalf, it becomes hard to answer what was ordered, when, and at what cost. This Skill reads the append-only audit log written by the doordash-audit-log hook so answers come from recorded data instead of the agent's memory.

Core Features & Use Cases

  • Audit Log Querying: Provides jq recipes against ~/.claude/dd-guard/audit.jsonl to list daily activity, checkout URLs, cart mutations, and failed dd-cli calls.
  • Honest Spend Semantics: Distinguishes checkout intents from confirmed purchases and defers money questions to the /doordash-report command reconciled against real order history.
  • Log Maintenance: Covers rotation of large audit files, append-only integrity rules, and privacy guidance for the plaintext order history.
  • Use Case: Ask what the agent ordered this week and get a session-by-session breakdown of searches, cart changes, and checkout links, with failed commands flagged.

Quick Start

Ask the agent to show everything it ordered through DoorDash this week using the audit log.

Frequently Asked Questions about doordash-order-ledger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I see what my AI agent ordered on DoorDash?

Query the audit log at ~/.claude/dd-guard/audit.jsonl with jq to list events by date, type, or session. For actual spending totals, use the /doordash-report command, which reconciles against real dd-cli order history.

How to query a JSONL audit log with jq?

Use jq select filters on fields like ts, event_type, and exit_ok, for example selecting events after a date or grouping by event_type with jq -s group_by. Each line is a self-contained versioned JSON object.

Does a checkout_url event mean an order was placed?

No. A checkout_url event only records that a payment link was issued; the human may have abandoned the page. Only reconciliation against dd-cli order history confirms money actually moved.

Can this skill track DoorDash orders placed outside Claude Code?

No. The log only records dd-cli commands run through Claude Code's Bash tool. Orders placed directly in a terminal or the DoorDash app are invisible to the audit log.

How do I rotate a large audit.jsonl file?

When the file exceeds about 5 MB, rename it with a date suffix and gzip the archive, keeping the gzips as history. Never edit existing lines, since append-only integrity is the audit property.