doordash-order-ledger
Skill này làm gì
Skill này giúp agent tra cứu những gì nó đã đặt trên DoorDash và chi phí, dựa trên nhật ký ghi lại mọi lệnh đã chạy. Skill dành cho người muốn biết sự thật về lịch sử đặt đồ ăn của mình.
Khi nào nên dùng
- ✓Khi bạn hỏi đã chi bao nhiêu tiền cho DoorDash trong tuần này hoặc tháng này.
- ✓Khi bạn muốn biết agent đã đặt hoặc đã thử đặt gì trong các phiên trước.
- ✓Khi bạn muốn có bản tóm tắt thói quen đặt hàng từ nhật ký kiểm toán.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-order-ledger/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tháng này AI của tôi đã đặt gì trên DoorDash, và tôi phải trả bao nhiêu tiền?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc nhật ký kiểm toán, ghi lại từng lệnh DoorDash cùng thời gian và loại sự kiện, rồi chạy truy vấn trên nhật ký để trả lời câu hỏi của bạn bằng dữ liệu đã ghi nhận.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
DoorDash 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.
Câu hỏi thường gặp
Nhật ký kiểm toán ghi lại những gì?
Mỗi lệnh agent chạy, kèm dấu thời gian, loại sự kiện và việc lệnh có thành công hay không. Các giá trị bí mật được xóa trước khi lưu.
Có cần cài thêm thành phần nào khác không?
Có. Skill hoạt động cùng một hook kiểm toán và một lệnh báo cáo đi kèm trong cùng gói.
Liên kết thanh toán có giống đơn đã đặt không?
Không. Nhật ký ghi liên kết thanh toán như một ý định, và người dùng có thể không bao giờ hoàn tất nó.
Chi tiết
Mô tả gốc của tác giả
Accountability layer for agent-driven DoorDash ordering. Works with the doordash-audit-log hook (which appends every dd-cli invocation to an append-only audit log) and the /doordash-report command to answer "what has my AI been ordering and what did it cost" from data instead of memory. Use when the user asks about their DoorDash spending, ordering patterns, what the agent did in past sessions, or wants jq recipes for querying the audit log. Covers log schema, query patterns, rotation, and privacy guidance.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8826
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.