setup-notifications-via-wecom

daymade/claude-code-skills

Настройка и отправка технических уведомлений через вебхуки WeCom (корпоративный WeChat).

Звёзды1 537
Форки237
Авторdaymade
Маркетплейс@daymade-skills
В маркетплейсе58 плагинов
Компонентов37
Обновлённоя 18 2026

Установка

SKILL.md

Setup Notifications via WeCom

Overview

This skill helps you send clear, unambiguous technical notifications through a WeCom group bot webhook. It covers two things:

  1. One-time setup: store the webhook URL, test connectivity, and create a reusable sender script.
  2. Send messages: craft messages that distinguish state from delta, define every number, and avoid the misleading patterns that made earlier backup-sync notifications confusing.

The bundled script scripts/send_wecom.py handles the actual HTTP call, including the proxy-unset rule required for Tencent services in mainland China.

When to Use This Skill

Trigger this skill when the user:

  • Says "send a WeCom notification", "企业微信通知", "企微机器人", or "webhook 通知".
  • Wants to set up alerting for a backup, sync, cron job, or service status.
  • Asks you to write a status/alert message and you need to make it clear and unambiguous.
  • Mentions a message was confusing or misleading and wants it fixed.

Quick Start: Configure the Webhook

  1. Check existing config:

    cat ~/.config/setup-notifications-via-wecom/config.json
    

    If it exists and contains webhook_url, skip to Send a Message.

  2. Get the webhook URL from the WeCom group bot settings. It looks like:

    https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY
    
  3. Store it privately (outside the skill bundle, so it survives updates):

    mkdir -p ~/.config/setup-notifications-via-wecom
    echo '{"webhook_url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY"}' \
      > ~/.config/setup-notifications-via-wecom/config.json
    chmod 600 ~/.config/setup-notifications-via-wecom/config.json
    
  4. Test connectivity by sending a test message (run from the skill directory):

    uv run --with requests scripts/send_wecom.py --message "WeCom webhook test ✅"
    

    If you see the message in the WeCom group, setup is done.

Message Best Practices

These rules come from real corrections. Apply them to every notification.

1. Headline First

The first line must say what happened. Do not bury the conclusion.

Claude Code 备份同步完成 ✅

2. Distinguish State vs Delta

  • State: current totals (e.g., source has 1075 main sessions, backup has 2328).
  • Delta: what changed in this run (e.g., 13 main sessions + 230 other files were added since 03:00).

Never say "synced 1075 sessions" if only 13 were new today.

3. Define Every Number

Every count must be accompanied by what it counts. Prefer:

- 源目录主 session:1075 个
- 备份主 session:2328 个

Avoid undefined terms like "session" alone — it may include workflow journals, subagent files, or tool outputs.

4. Use Plain Location Names, Not Jargon

Prefer:

  • "电脑上" / "源目录"
  • "备份里" / "备份仓库"

Avoid:

  • "当前"
  • "含历史"
  • "旧 session" (unless defined)

5. Omit Noise

Do not include commit hashes, file paths, internal documentation references, or verbose explanations unless the user explicitly asks for them.

6. Be Technically Precise, Not Condescending

Use correct technical terms and define them. Do not translate everything into "大白话" simplifications that hide precision.

7. Include Verification Metrics

When the user asked "does it miss anything?", answer directly:

- 验证:0 缺失,0 滞后

8. End with a Next Action

Tell the user whether they need to do anything:

- 下一步:无需操作,下次自动同步 03:00

Notification Templates

Backup Sync Completion

Use when a backup/sync job finishes and you need to report completeness.

Claude Code 备份同步完成 ✅

- 自动同步:今日 03:00 正常执行
- 本次手动同步:补充 03:00 后的增量
  - 主 session:13 个
  - 子代理/工具输出/工作流:230 个
  - 合计:243 个文件
- 验证:0 缺失,0 滞后
- 当前状态:
  - 源目录主 session:1075 个
  - 备份主 session:2328 个
- 下一步:无需操作,下次自动同步 03:00

Alert

Use when something requires immediate action. Do not use this template for routine "all good" updates.

🚨 [P?] [服务/任务名] [症状]

- 影响:[谁/什么受影响,程度如何]
- 严重程度:[P1–P5 等级]
- 开始时间:[YYYY-MM-DD HH:MM TZ]
- 已采取:[正在做的动作]
- 下一步:[建议动作或预计下次更新时间]
- 相关链接:[dashboard/runbook,可选]

Rules:

  • Alert on symptoms, not causes (e.g., "API error rate > 10%" not "CPU 99%").
  • If the recipient cannot do anything concrete, do not send it as an alert.
  • Be honest about uncertainty; do not guess at root cause.

Status Update

Use for routine "all good" updates.

[任务名] 状态正常 ✅

- 检查时间:2026-06-24 03:00 CST
- 关键指标:
  - 源目录主 session:1075 个
  - 备份主 session:2328 个
- 本次变更:无
- 下一步:无需操作

Send a Message

Option A: Use the bundled script directly

uv run --with requests scripts/send_wecom.py \
  --message "你的消息内容"

For multiline messages, use a file:

cat > /tmp/wecom_msg.txt <<'EOF'
Claude Code 备份同步完成 ✅

- 验证:0 缺失,0 滞后
EOF

uv run --with requests scripts/send_wecom.py \
  --file /tmp/wecom_msg.txt

Option B: Inline curl

If you prefer not to use the script:

env -u http_proxy -u https_proxy -u all_proxy -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY \
  curl -s -X POST 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "msgtype": "text",
    "text": {
      "content": "YOUR_MESSAGE"
    }
  }'

Critical: Tencent services (WeChat/WeCom) must bypass the local proxy. The env -u ... prefix is required.

Workflow: Add WeCom Notification to a Script

When a user asks "let my backup script send WeCom notifications", do the following:

  1. Confirm the webhook is configured (see Quick Start).
  2. Identify the notification type (backup-complete, alert, status-update, custom).
  3. Collect the exact numbers and their definitions from the script output.
  4. Craft the message using the templates above.
  5. Call scripts/send_wecom.py with the message.
  6. Verify the message arrived in the WeCom group.

What This Skill Does NOT Do

  • It does not create or manage WeCom group bots — get the webhook key from WeCom first.
  • It does not handle rich media messages (markdown cards, news, images) — only plain text.
  • It does not retry indefinitely — the script retries transient errors 3 times and then fails.
  • It does not send messages without the proxy-unset guard.

Troubleshooting

Connection closed or timeout

WeCom endpoints may fail if local proxy env vars leak into the request. The script and inline curl examples already unset them. If it still fails:

env | grep -i proxy

Unset any that are set before running the sender.

Message not received, but curl returned 200

Check the response body. WeCom returns 200 even for errors like invalid key or message-too-long. The script prints the full response; read it.

Config file not found

Run the setup step again. The script expects ~/.config/setup-notifications-via-wecom/config.json with a webhook_url field.

References

  • references/message_best_practices.md — condensed checklist distilled from this session's corrections.
  • scripts/send_wecom.py — the sender script.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: setup-notifications-via-wecom](https://darkplay.ru/ai/plugins/daymade-claude-code-skills-setup-notifications-via-wecom)

Похожие плагины и другие разделы каталога

Похожие плагины в категории «Интеграции»

Та же категория — сравните, что ещё подойдёт под вашу задачу.

open-designnexu-io · MCP-сервер Open Design (stdio). 139 навыков и инструменты для проектов, файлов и…
108 160 ★
ruflo-federationruvnet · Федерация агентов между установками с безопасностью zero-trust, потоком данных с…
240 комп.
ruflo-iot-cognitumruvnet · Жизненный цикл IoT-устройств, обнаружение аномалий телеметрии, управление парком…
240 комп.
agentic-bundle-aas-agent-mcp-buildersickn33 · Установите набор редакционных навыков "AAS Agent & MCP Builder" для Claude Code.
49 917 ★
agentic-bundle-integration-apissickn33 · Установите набор редакционных навыков "Integration & APIs" для Claude Code.
49 917 ★
appwriteanthropics · Инструменты Appwrite для Claude Code: навыки работы с SDK, MCP-серверы Appwrite и команды…
100 комп.
atlassiananthropics · Подключение к продуктам Atlassian, включая Jira и Confluence. Поиск и создание задач…
100 комп.
auth0anthropics · Корпоративная аутентификация, простая во внедрении. Добавляйте вход, SSO, MFA и контроль…
100 комп.
base44anthropics · Создание и развёртывание full-stack приложений Base44 с управлением проектами через CLI и…
100 комп.
confidenceanthropics · Доступ к фича-флагам, экспериментам и инструментам миграции Confidence прямо из Claude…
100 комп.
Популярное в разделе «Плагины»

Самые востребованные плагинов раздела по установкам и звёздам.

mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
41 комп.
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
16 комп.
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
1 комп.
claude-apianthropics · Навык по документации Claude API и SDK для создания приложений на базе LLM.
17 комп.
document-skillsanthropics · Набор инструментов для обработки документов: Excel, Word, PowerPoint и PDF.
17 комп.
example-skillsanthropics · Набор примеров навыков, демонстрирующих разные возможности: создание навыков, разработку…
17 комп.
ponytailDietrichGebert · Настаивает на самом простом работающем решении. YAGNI, сначала стандартная библиотека…
9 комп.
prompts.chatf · Доступ к тысячам AI-промптов и навыков прямо в AI-ассистенте для программирования. Поиск…
6 комп.
agent-sdk-devanthropics · Набор для разработки с Claude Agent SDK.
34 комп.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

setup-matt-pocock-skillsmattpocock · Настройка репозитория для инженерных навыков: трекер задач, метки триажа и структура…
1 200 000 устан.
wizardmattpocock · Сгенерировать bash-мастер для ручной процедуры: URL, значения, .env и секреты.
644 900 устан.
setup-pre-commitmattpocock · Настройка Husky pre-commit хуков с lint-staged (Prettier), проверкой типов и тестами в…
556 800 устан.
lark-sharedlarksuite · Для задач настройки и авторизации lark-cli: auth login/status/logout, идентичность…
494 000 устан.
setup-ts-deep-modulesmattpocock · Подключение dependency-cruiser в TypeScript-репозиторий, чтобы каждый пакет был глубоким…
434 300 устан.
cloudflare-email-servicecloudflare · Отправка и приём транзакционных писем через Cloudflare Email Service (Email Sending и…
120 800 устан.
onboardingcoreyhaines31 · Помогает оптимизировать онбординг после регистрации, активацию пользователей и первое…
85 400 устан.
ci-cd-and-automationaddyosmani · Автоматизирует настройку CI/CD: сборка, деплой, проверки качества и запуск тестов в…
71 600 устан.
expo-tailwind-setupexpo · Настройка Tailwind CSS v4 в Expo с react-native-css и NativeWind v5
54 300 устан.
vue-best-practicesvuejs-ai · Обязателен для задач Vue.js. Рекомендует Composition API с `` и TypeScript. Охватывает…
45 800 устан.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8