sent-templates — скилл для Claude Code: что делает и как установить
Находит, проверяет статус и удаляет шаблоны сообщений Sent через MCP-инструменты. Пригодится при поиске утверждённых шаблонов и очистке базы.
npx skills add sentdm/sent-plugin --skill sent-templates -a claude-codeЧто делает sent-templates
Скилл работает с готовыми записями через вызовы templates.list, templates.get, templates.get_by_name и templates.delete. При поиске по названию агент выдаёт кандидатов, если имя совпадает сразу для нескольких языков или каналов. Текст тела шаблона не дублируется без нужды — вывод фокусируется на идентификаторах, статусах, категориях и языках.
Авторизация опирается на клиентский OAuth 2.1 с PKCE. Для удаления шаблон сначала запрашивается заново через templates.get, после чего агент показывает превью параметров и запрашивает явное подтверждение перед выполнением templates.delete. Без предварительного чтения удаление заблокировано.
Для написания текста сообщений скилл не предназначен: он передаёт задачи составления в waba-template-author, а конструирование интерфейсов — в template-builder-ui.
Какие задачи решает
- найти одобренный шаблон Sent по названию или идентификатору
- проверить статус, язык и канал существующего шаблона
- безопасно удалить устаревший шаблон с предварительным просмотром параметров
- отфильтровать список записей Sent с учётом профиля отправителя
Примеры запросов агенту
- Найди статус и канал для шаблона order_confirmation в Sent
- Выведи список шаблонов для профиля отправителя с пагинацией
- Удали шаблон с идентификатором tmpl_12345 после сверки данных
Как установить sent-templates
1Через Skills CLI (Vercel)
npx skills add sentdm/sent-plugin --skill sent-templates -a claude-code2Вручную: положить файлы
~/.claude/skills/sent-templates/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sent-templates/
1Через Skills CLI (Vercel)
npx skills add sentdm/sent-plugin --skill sent-templates -a codex2Вручную: положить файлы
.agents/skills/sent-templates/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sentdm/sent-plugin --skill sent-templates -a cursor2Вручную: положить файлы
.cursor/skills/sent-templates/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sentdm/sent-plugin sent-templates2Вручную: положить файлы
.github/skills/sent-templates/SKILL.md1Через Skills CLI (Vercel)
npx skills add sentdm/sent-plugin --skill sent-templates -a gemini-cli2Командой платформы
gemini skills install https://github.com/sentdm/sent-plugin --path skills/sent-templatesВручную: положить файлы
.devin/skills/sent-templates/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add sentdm/sent-plugin --skill sent-templates -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о sent-templates
Как установить sent-templates в Claude Code?
Выполните команду npx skills add sentdm/sent-plugin --skill sent-templates -a claude-code. Конфигурация навыка сохранится по пути ~/.claude/skills/sent-templates/SKILL.md.
Что делает скилл sent-templates?
Он ищет, читает и удаляет существующие шаблоны сообщений Sent через MCP. Скилл показывает метаданные вроде языка, канала и статуса утверждения.
Как скилл защищает от случайного удаления шаблонов?
Перед удалением инструмент обязательно запрашивает свежие данные шаблона и показывает превью с организацией и Sender Profile. Вызов templates.delete запускается строго после отдельного подтверждения пользователя.
Исходный текст
SKILL.md · MIT
--- name: sent-templates description: Lists, finds by name or ID, inspects, or deletes existing Sent templates with the Sent MCP tools. Use when a user asks to browse templates, find an approved template, check template language, channel, category, or status, retrieve a template record, or delete a template. Use waba-template-author to write WhatsApp content and template-builder-ui to design template interfaces. --- # Sent Templates Operate existing template records with `templates.list`, `templates.get`, `templates.get_by_name`, and `templates.delete`. ## Establish connection and scope Use client-managed OAuth 2.1/PKCE and never request or expose credentials. Surface the active organization and Sender Profile before deletion; use `sent-account-readiness` if the connection context does not expose both. Avoid repeating template body text or sample data unnecessarily. Prefer template identifiers, names, languages, channels, categories, and statuses in summaries. An organization grant may select an owned Sender Profile with the tool schema's optional `profileId`; omit it to act as the authenticated account. Validate ownership with `sender_profiles.list` or `sender_profiles.get`, and use the same selector for preflight reads, mutations, and follow-up reads. Profile grants cannot use this selector. Reauthorize for a different organization or a profile outside the grant. Never invent scope fields or request credentials. ## Find and inspect templates - Use `templates.list` for filtered discovery and pagination. - Use `templates.get` for an exact template identifier. - Use `templates.get_by_name` when the user supplies a name. If a name can match more than one language, channel, or scope, present the candidates and resolve one exact record before continuing. These tools inspect existing records. For authoring or classification, hand off to `waba-template-author`; for a tenant-facing creation experience, hand off to `template-builder-ui`. ## Delete a template 1. Resolve the request to one exact template. 2. Fetch that target first with `templates.get` or `templates.get_by_name`. Never delete from a guessed identifier, broad filter, or stale list result. 3. Show a delete preview with the selected organization, Sender Profile, exact template identifier, name, language, channel, category, and status. State that deletion is destructive; do not repeat its body. 4. Ask for explicit confirmation to delete this exact target. Earlier or general approval is not sufficient. 5. Call `templates.delete` immediately after confirmation. A change to target, scope, or record invalidates confirmation. Never call `templates.delete` without fetching the target and obtaining explicit confirmation immediately before the call. Treat every retry as a new mutation: refetch the target, show a fresh preview, and obtain new explicit confirmation. If the result is ambiguous, re-read the target when possible. Report uncertainty and do not retry automatically.
© sentdm · MIT · sentdm/sent-plugin