Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

setup-notifications-via-wecom

БесплатноЗапускает вложенные скриптыНе проверен

Set up and send technical status notifications through WeCom (Enterprise WeChat) webhooks. Use this skill whenever the user needs to send notifications…

daymadeот daymade★ 1 556 звёзд на GitHub

Об этом скилле

Setup Notifications via WeCom

Overview

This skill helps you send clear, unambiguous technical notifications through a WeCom group bot webhook. Use the setup and sending workflows below:

  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, using the host network configuration. Recipient identity is explicit configuration: self may send automatically; others requires human confirmation; missing identity fails fast.

When integrating an existing Alibaba Cloud SLS notification pipeline or a recurring digest, read the SLS adapter guide. Reuse the project's sampler, scheduler and SLS sync owner; the bundled sender continues to own ordinary plain-text sends.

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. Classify the exact target and bind the canonical sender without exposing or rewriting the webhook value:

    uv run --no-project python scripts/set_recipient.py \
      --scope self --label "My private self channel"
    

    Use self only when the configured webhook is visible only to the user. Use others for every other person or group. Do not guess when the target is unknown. The command also records this sender's absolute path and digest; after the sender is upgraded, rerun the command before sending again.

  5. Test connectivity by sending a test message (run from the skill directory):

    uv run --no-project python 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]
- 已采取:[正在做的动作]
-
Полный SKILL.md на GitHub

Установить setup-notifications-via-wecom в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonreferences/historical-unknown-reconciliation.mdreferences/message_best_practices.mdreferences/sls-recurring-notifications.mdscripts/send_wecom.pyscripts/set_recipient.py

FAQ

Что делает скилл setup-notifications-via-wecom?

Set up and send technical status notifications through WeCom (Enterprise WeChat) webhooks. Use this skill whenever the user needs to send notifications, alerts, backup completion reports, or status updates via WeCom; when they mention 企业微信, 企微机器人, webhook, or alerting; or when a message needs to be clear, unambiguous, and technically precise rather than vague or condescending.

Как установить скилл setup-notifications-via-wecom?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл setup-notifications-via-wecom запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить setup-notifications-via-wecom с