
DoorDash Order Ledger
FreeTrack and analyze your DoorDash spending with precision.
Free · Opens the source repo
What DoorDash Order Ledger does
The DoorDash Order Ledger skill provides a structured way to monitor and analyze your DoorDash orders through an audit log. By utilizing the doordash-audit-log hook, every command executed via the dd-cli is logged, creating a comprehensive record of your ordering activities. This skill enables users to query this log, allowing for detailed insights into spending patterns and order history without relying on memory.
This skill is particularly useful for users who want to maintain accountability over their DoorDash usage. It answers common questions regarding spending and ordering habits, providing accurate data rather than estimates. Users can execute commands like /doordash-report for reconciled summaries or run jq queries to extract specific information from the audit log. The skill covers various aspects, including log schema, query patterns, and privacy considerations, ensuring that users can effectively manage their data.
The audit log is stored in a JSON format, capturing essential details such as timestamps, command types, and session IDs. This structured approach allows users to perform complex queries to analyze their ordering behavior over time. For example, users can easily identify which sessions interacted with their carts or track failed command attempts, providing insights into potential issues with their ordering process.
While the skill enhances transparency and accountability, users should be aware that it only records interactions made through the dd-cli. Orders placed directly through the DoorDash app or website will not be captured in the log. Additionally, users must manage their audit log's size by rotating it regularly to maintain performance and privacy. Overall, the DoorDash Order Ledger skill is a valuable tool for anyone looking to gain a deeper understanding of their DoorDash spending.
When to use it
Use this skill when you want to analyze your DoorDash ordering habits or inquire about past spending.
When not to use it
This skill is not suitable for tracking orders made outside the `dd-cli` environment or for users who do not require detailed spending analysis.
What you can build with it
Track Weekly Spending
Use the skill to generate a report of your DoorDash spending for the past week, helping you manage your budget.
Analyze Ordering Patterns
Run queries to see which types of orders you place most frequently, allowing for better decision-making on food choices.
Identify Failed Orders
Check the log for any failed `dd-cli` commands to troubleshoot issues with your ordering process.
How to install DoorDash Order Ledger
View source1. Install with the skills CLI
npx skills add davila7/claude-code-templates/doordash-order-ledger --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by davila7DoorDash Order Ledger
Every dd-cli command the agent runs is recorded by the doordash-audit-log hook
in ~/.claude/dd-guard/audit.jsonl — one versioned JSON line per event.
This skill teaches you to answer questions from that log instead of
guessing.
Install the bundle: hook
doordash/doordash-audit-log(the recorder), command/doordash-report(reconciled summaries), this skill (querying). Composes with doordash-spend-guard (shares the~/.claude/dd-guard/state directory) but runs standalone.
Line schema (v1)
{
"v": 1,
"ts": "2026-07-19T13:02:11",
"session_id": "abc123",
"cwd": "/Users/x/project",
"command": "dd-cli search --query \"ramen near me\"",
"event_type": "search | cart_mutation | checkout_url | history | login | other",
"cart_uuid": "…or null",
"order_uuid": "…or null",
"exit_ok": true
}
Commands are secret-stripped before persisting and truncated to 500 chars.
The v field guards future schema changes — check it before assuming
fields.
Query recipes (jq)
Answer from data, not memory:
# What did the agent do today?
jq -r 'select(.ts >= "2026-07-19") | "\(.ts) \(.event_type) \(.command)"' ~/.claude/dd-guard/audit.jsonl
# Checkout URLs issued this week (intents, not confirmed orders)
jq -r 'select(.event_type == "checkout_url" and .ts >= "2026-07-13")' ~/.claude/dd-guard/audit.jsonl
# Activity by type
jq -s 'group_by(.event_type) | map({type: .[0].event_type, n: length})' ~/.claude/dd-guard/audit.jsonl
# Which sessions touched carts?
jq -r 'select(.event_type == "cart_mutation") | .session_id' ~/.claude/dd-guard/audit.jsonl | sort | uniq -c
# Failed dd-cli calls (agent flailing?)
jq -r 'select(.exit_ok == false) | "\(.ts) \(.command)"' ~/.claude/dd-guard/audit.jsonl
When the user asks a money question ("how much this week?"), prefer
/doordash-report — it reconciles against real dd-cli order history and labels
intent-only numbers honestly. Raw checkout_url counts are intents: the
human may have abandoned the payment page.
Honest semantics
- checkout_url ≠ purchase. It records that a link was issued. Only
reconciliation against
order historyconfirms money moved. - Subtotals (when present via doordash-spend-guard's ledger) are pre-fee.
- The log records what went through Claude Code's Bash tool — orders placed by the human directly in a terminal or app are invisible to it.
Maintenance
- Rotation: when audit.jsonl exceeds ~5 MB, rotate:
mv audit.jsonl audit-$(date +%Y%m).jsonl && gzip audit-*.jsonl(keep the gzips; they are the history). - Never edit lines — append-only is the audit property. Corrections go in reports, not in the log.
- Privacy: this is a plaintext record of eating habits and schedules.
Keep
~/.claude/dd-guard/out of repos and backups you share. Mention this to the user the first time you query the log in a session.
Frequently asked questions about DoorDash Order Ledger
Similar skills
Business Pulse
Get a concise snapshot of your business health in one page.
Analytics Tracking
Set up and audit your analytics for actionable insights.
Ad Campaign Analyzer
Transform ad data into actionable insights for better ROI.
Metrics Review
Analyze product metrics for actionable insights.
Social Media Analyzer
Track and analyze your social media campaign performance.
Campaign Analytics
Optimize marketing campaigns with data-driven insights.
