notify-wecom — скилл для Claude Code: отправка сообщений в WeCom
Отправляет одно разовое сообщение в групповой бот WeCom (Enterprise WeChat). Пригодится, когда нужно быстро уведомить команду без шаблонов и настройки.
npx skills add daymade/claude-code-skills --skill notify-wecom -a claude-codeЧто делает notify-wecom
Скилл берёт вебхук из общего файла конфигурации ~/.config/setup-notifications-via-wecom/config.json и шлёт туда одно сообщение. Никаких шаблонов, карточек и упоминаний через @ — только обычный текст. Лимит длины сообщения — 4096 байт в UTF-8.
Перед отправкой скилл читает recipient_scope и recipient_label. Если scope равен self, сообщение уходит без запроса подтверждения. Если others — сначала показывается точная метка получателя и текст, и только потом отправка. Непонятный или отсутствующий scope считается ошибкой конфигурации: скилл останавливается и просит разобраться с адресатом, а не угадывает.
Это лёгкий спутник скилла setup-notifications-via-wecom. Ставить его отдельно можно, но тогда файл конфигурации придётся создать вручную. Скилл наследует прокси-политику хоста и проекта и не переключает маршрут сам. Успешная авторизация ещё не доказывает доставку: нулевой errcode подтверждает только приём на стороне API.
Какие задачи решает
- отправить разовое уведомление в группу WeCom
- сообщить команде о завершении бэкапа или сборки
- проверить, что вебхук настроен и отвечает
- отправить многострочный текст одной командой
- разграничить отправку себе и отправку другим с подтверждением
Примеры запросов агенту
- /notify-wecom Claude 备份完成 ✅
- /notify-wecom 告警:build 失败,请检查
- /notify-wecom "第一行\n第二行\n第三行"
Как установить notify-wecom
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill notify-wecom -a claude-code2Вручную: положить файлы
~/.claude/skills/notify-wecom/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/notify-wecom/
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill notify-wecom -a codex2Вручную: положить файлы
.agents/skills/notify-wecom/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill notify-wecom -a cursor2Вручную: положить файлы
.cursor/skills/notify-wecom/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install daymade/claude-code-skills notify-wecom2Вручную: положить файлы
.github/skills/notify-wecom/SKILL.md1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill notify-wecom -a gemini-cli2Командой платформы
gemini skills install https://github.com/daymade/claude-code-skills --path notify-wecomВручную: положить файлы
.devin/skills/notify-wecom/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill notify-wecom -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о notify-wecom
Как установить notify-wecom в Claude?
Выполните npx skills add daymade/claude-code-skills --skill notify-wecom -a claude-code. После этого файл скилла окажется по пути ~/.claude/skills/notify-wecom/SKILL.md.
Что делает notify-wecom?
Читает вебхук и параметры получателя из общего файла конфигурации и отправляет одно текстовое сообщение в групповой бот WeCom. Шаблоны и структурированные карточки он не поддерживает.
Что нужно для работы скилла?
Файл ~/.config/setup-notifications-via-wecom/config.json с полями webhook_url, recipient_scope и recipient_label. Если файла нет, скилл печатает команду настройки и останавливается.
Исходный текст
SKILL.md · MIT
--- name: notify-wecom description: >- Send a single one-off message to a WeCom (Enterprise WeChat) group bot. Use this skill whenever the user says "/notify-wecom", "send a quick WeCom message", "企微通知一下", "临时发一条企业微信", or any one-shot notification that does not need a reusable template or setup workflow. argument-hint: "[message]" --- # /notify-wecom Send a single message to a WeCom group bot. ## Human confirmation boundary Read the explicit `recipient_scope` and `recipient_label` from the shared config. `self` is the user's own delivery channel and may send without authorization. `others` requires the active human-confirmation gate with the exact label and message. Missing/invalid scope is a configuration error: stop and classify the target; do not guess. A local alert/outbox item still needs identity/content validation before either route. ## Usage ``` /notify-wecom Claude Code 备份完成 ✅ ``` The skill reads the webhook URL from the shared config file: ``` ~/.config/setup-notifications-via-wecom/config.json ``` If the config is missing, it prints the one-line setup command and stops. ## Prerequisite This skill is a lightweight companion to `setup-notifications-via-wecom`. Either: - Install `setup-notifications-via-wecom` first (recommended — it provides the webhook setup steps and its bundled sender), or - Create the config file manually as shown below. ## What It Does 1. Reads `~/.config/setup-notifications-via-wecom/config.json` for `webhook_url`, `recipient_scope`, and `recipient_label`. 2. Inherits the host/project HTTP(S) proxy and no_proxy policy; never forces direct access. 3. If scope is `self`, sends without an authorization prompt. If scope is `others`, presents the exact label and message for human confirmation. 4. Sends via the WeCom webhook using the sender from `setup-notifications-via-wecom` (or an equivalent inline curl call). 5. Reports success or the exact WeCom error; authorization alone is not delivery proof. ## Examples ``` /notify-wecom 服务上线成功 🚀 /notify-wecom 告警:build 失败,请检查 /notify-wecom 今日同步完成,0 缺失 0 滞后 ``` ## Multi-line Messages For multi-line messages, wrap in triple quotes or use a file: ``` /notify-wecom "第一行 第二行 第三行" ``` ## Failure Modes - **Config missing**: Run the setup step from `setup-notifications-via-wecom`, or create the config file manually. - **Recipient or sender identity missing/invalid**: Use `setup-notifications-via-wecom`'s `set_recipient.py` command; never infer self versus others from the webhook URL, and never trust a script merely because its basename is `send_wecom.py`. - **Webhook key invalid**: WeCom returns an `errcode`; the skill prints it. - **Network failure**: Inspect the approved route; do not clear required proxies or switch paths automatically. Follow the sender Skill’s network guidance. ## Limitations - Plain text only. No markdown cards, images, or @mentions. - Message length limit is 4096 bytes (UTF-8). - No templating — use `setup-notifications-via-wecom` for structured backup/alert/status messages. - A prepared pending item is not a delivery receipt; a zero `errcode` proves API acceptance. Recipient receipt and native SLS delivery require their own evidence.
© daymade · MIT · daymade/claude-code-skills