doordash-profile — команда для Claude Code
Команда doordash-profile хранит списки аллергенов и диет в JSON для проверки корзины DoorDash через doordash-allergy-shield.
MIT 22 установок обновлён 2026-10-24
npx claude-code-templates@latest --command doordash/doordash-profileЧто делает doordash-profile
Команда управляет файлом ~/.claude/doordash-profile/dietary.json. В нём фиксируются пищевые привычки, ограничения и аллергены конкретных людей. Риски делятся на три уровня: anaphylaxis, avoid и preference. Этот профиль считывает защитный хук doordash-allergy-shield прямо перед оплатой заказа.
Управлять записями можно через подкоманды show, add <person>, edit <person> и rm <person>. Ассистент опрашивает пользователя по шагам и не пытается угадывать аллергии по истории заказов. Чтобы понизить уровень опасности anaphylaxis до более мягкого, придётся вручную напечатать название аллергена ещё раз. Для работы скрипту нужны утилиты jq и cat в окружении Bash. Учтите: после любых правок уже проверенные корзины придётся сканировать повторно.
Какие задачи решает
- зафиксировать пищевые аллергии и диеты людей в локальном JSON
- задать строгий уровень риска anaphylaxis для блокировки опасных заказов
- обновить профиль питания через интерактивный опрос в консоли
Примеры запросов агенту
- /doordash-profile show
- /doordash-profile add Alex
- /doordash-profile edit Maria
Как установить doordash-profile
1Через claude-code-templates
npx claude-code-templates@latest --command doordash/doordash-profile2Вручную: положить файлы
.claude/commands/doordash-profile.mdВызов — /doordash-profile. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/doordash-profile.mdВызов — /prompts:doordash-profile. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/doordash-profile.prompt.mdВручную: положить файлы
.gemini/commands/doordash-profile.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о doordash-profile
Как установить doordash-profile в Claude Code?
Выполните команду npx claude-code-templates@latest --command doordash/doordash-profile или сохраните файл по пути .claude/commands/doordash-profile.md.
Что делает doordash-profile?
Команда создаёт и обновляет файл ~/.claude/doordash-profile/dietary.json. В нём хранятся диеты, нелюбимые блюда и аллергии, по которым внешний хук проверяет состав блюд в корзине DoorDash.
Чем уровень anaphylaxis отличается от avoid?
Позиции с аллергенами категории anaphylaxis хук блокирует при оформлении без возможности пропустить предупреждение. Для уровня avoid достаточно явного согласия пользователя в чате.
Исходный текст
doordash-profile.md · MIT
---
allowed-tools: Bash(cat:*), Bash(mkdir:*), Bash(jq:*), Read, Write, Edit
argument-hint: [show | add <person> | edit <person> | rm <person>]
description: Manage the dietary profile (allergens with severity tiers, diets, dislikes) used by doordash-allergy-shield to vet DoorDash carts
---
# Dietary Profile Manager
Manage the doordash-allergy-shield dietary profile: **$ARGUMENTS**
State: `~/.claude/doordash-profile/dietary.json`. This command is the sanctioned
way to edit it — the vetting flows treat the profile as human-confirmed
input, so every change here must be explicitly confirmed by the user.
## Current State
- Profile: !`cat ~/.claude/doordash-profile/dietary.json 2>/dev/null || echo "(no profile yet)"`
## Task
Parse `$ARGUMENTS` and run the matching subcommand:
### `show` (default when no arguments)
Render the profile as a table per person: allergens (with severity),
diets, dislikes. Explain the severity tiers:
- `anaphylaxis` — hook-enforced at checkout, never overridable in-session
- `avoid` — conflicts require explicit acknowledgment
- `preference` — mentioned, not gated
### `add <person>`
Interview the user for the new person:
1. Allergens — for each, ask the severity tier explicitly. Never assume
severity; if the user says "allergic to X" without qualifying, ask
"would exposure be dangerous (anaphylaxis-tier) or is it avoid-level?"
2. Diets (vegetarian, vegan, halal, kosher, gluten-free, ...).
3. Dislikes.
4. Read back the complete entry and confirm before writing.
### `edit <person>`
Show the person's current entry, ask what to change, confirm the final
entry before writing. Severity downgrades of an `anaphylaxis` entry require
the user to type the allergen name back explicitly — make deliberate
friction for the dangerous direction.
### `rm <person>`
Show the entry, confirm, remove.
## Rules
- Keep the JSON schema exactly as doordash-allergy-shield documents it
(`people.<name>.allergens[].{name,severity}`, `diets[]`, `dislikes[]`) —
the checkout-gate hook parses this file.
- Read-modify-write the whole file; never append or shell-redirect into it.
- Never invent or infer allergens from past orders — this file is
human-declared only.
- After any change, remind the user that already-vetted carts were vetted
against the OLD profile; re-vet before checking out.
© davila7 · MIT · davila7/claude-code-templates