Skip to content
Development
Command

/doordash-playbook

Manage saved DoorDash order playbooks (list, add from order history, remove, inspect) stored in ~/.claude/dd-cli/playbooks.json

From plugin
claude-code-templates
30k200 skills200 agents200 commands2 MCP
Install
$ npx -y skills add davila7/claude-code-templates --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/doordash-playbook

Context preview

What this command does when you run it.

Manage saved DoorDash order playbooks (list, add from order history, remove, inspect) stored in ~/.claude/dd-cli/playbooks.json

Command definition

doordash-playbook.md
allowed-tools: Bash(dd-cli:*), Bash(jq:*), Bash(cat:*), Bash(mkdir:*), Read, Write, Edit
argument-hint: [list | add <name> | rm <name> | show <name>]
description: Manage saved DoorDash order playbooks (list, add from order history, remove, inspect) stored in ~/.claude/dd-cli/playbooks.json

DoorDash Playbook Manager

Manage saved order playbooks: **$ARGUMENTS**

State file: `~/.claude/dd-cli/playbooks.json` (create with `mkdir -p ~/.claude/dd-cli` if missing).

Current State

  • Playbooks file: !`cat ~/.claude/dd-cli/playbooks.json 2>/dev/null || echo "(no playbooks yet)"`
  • dd-cli available: !`command -v dd-cli || echo "dd-cli NOT on PATH"`

Task

Parse `$ARGUMENTS` and run the matching subcommand:

`list` (default when no arguments)

Render a table of playbooks: name, restaurant, baseline subtotal, contexts, last used, times used. If empty, explain how to add one.

`add <name>`

1. Run `dd-cli order history` and show the recent orders. 2. Ask the user which order to save under `<name>` (never guess). 3. Ask for optional context words (e.g. "post-gym, workout"). 4. Write the playbook entry: `order_uuid`, `restaurant`, `items_summary` (name/qty/price per item as shown by history or the last `cart show`), `baseline_total`, `tolerance_pct: 10`, `contexts`, `last_used: today`, `times_used: 0`.

`rm <name>`

Show the entry, confirm with the user, then delete it from the JSON.

`show <name>`

Pretty-print the full entry, including stored items and baseline, and when it was last used.

Rules

  • Keep the JSON valid — read-modify-write the whole file, never append text.
  • `order_uuid` values come only from real `dd-cli order history` output.
  • This command only manages the state file; actual ordering/recall flows are

handled by the `doordash-order-playbooks` skill (install it alongside).

  • If dd-cli is missing or logged out, say so and stop — don't fabricate

history entries.

Read more
Ships withclaude-code-templates

Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.

Get the whole plugin, auto-invoked
Stats
30,155
Stars
18
Views
3,377
Forks
Active
Maintenance
Python
Language
MIT
License
1h ago
Last commit
1y ago
Created

Repo: davila7/claude-code-templates