doordash-order-ledger
できること
このスキルは、エージェントが実行したすべてのコマンドの記録を使い、DoorDashで何を注文し、いくら使ったかを調べます。食事の注文履歴について、事実を知りたい人向けです。
使う場面
- ✓今週や今月にDoorDashでいくら使ったかを知りたいとき。
- ✓過去のセッションでエージェントが注文した、または注文しようとした内容を知りたいとき。
- ✓監査ログから注文の傾向をまとめてほしいとき。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/doordash/doordash-order-ledger/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のAIが今月DoorDashで何を注文し、いくら使ったのかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは監査ログを読みます。ログには、各DoorDashのコマンドが、時刻とイベントの種類とともに記録されています。そのデータに対して問い合わせを行い、記録された情報から答えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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.
よくある質問
監査ログには何が記録されますか?
エージェントが実行した各コマンドを、時刻、イベントの種類、成功したかどうかとともに記録します。秘密の値は保存前に削除されます。
ほかの部品も必要ですか?
はい。このスキルは、同じバンドルに含まれる監査フックとレポートのコマンドと連携して動きます。
チェックアウトのリンクは、注文の確定と同じですか?
いいえ。ログではチェックアウトのリンクを、意図として記録します。利用者がそのリンクで注文を完了しない場合もあります。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 33k
- ランキング
- #8826
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
owasp-security
33kエージェントがWebアプリ、API、モバイル、コンテナ、AIエージェント向けの OWASP のセキュリティ指針を理解し、よくある弱点を見つけて修正案を出せるよう支援します。
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。