Manage outbound notifications across WhatsApp, Telegram, email. Handle templates, scheduling, delivery tracking, rate limiting.
用于所有渠道(WhatsApp、Telegram、电子邮件)的集中式外发通知管理。
notification-system/
├── SKILL.md # 本文件
├── templates/ # 按渠道和类型分类的消息模板
│ ├── whatsapp/ # WhatsApp 模板
│ ├── telegram/ # Telegram 模板
│ └── email/ # 电子邮件模板
├── queue/ # 待处理通知队列
├── logs/ # 投递日志
├── rate-limiters.json # 速率限制配置
└── config/ # 渠道配置
| 渠道 | 配置 | 速率限制 |
|---|---|---|
| channels.whatsapp | 60 条/分钟,1000 条/天 | |
| Telegram |
每个渠道的默认限制:
速率限制配置:notification-system/rate-limiters.json
所有模板支持:
{{recipient}} - 目标名称/ID
{{date}} - 当前日期
{{time}} - 当前时间
{{subject}} - 消息主题
{{body}} - 消息正文
{{cta_url}} - 行动号召链接
{{sender_name}} - 商家/发送者名称
{{company}} - 公司名称
通知存储在 notification-system/queue/pending.json 队列中:
json
{
id: uuid,
channel: whatsapp|telegram|email,
target: recipient-id,
template: template-name,
variables: {},
scheduled_at: ISO8601 或 null,
created_at: ISO8601,
priority: high|normal|low,
status: pending|sent|failed|delivered,
attempts: 0,
last_error: null
}
定时通知存储在 notification-system/queue/scheduled.json 中,采用类似 cron 的调度方式。
使用 cron 作业配合 notification-system/process-queue.js 处理定时项目。
日志存储在 notification-system/logs/delivery-YYYY-MM-DD.json 中:
json
{
id: notification-uuid,
timestamp: ISO8601,
channel: whatsapp,
target: +1...,
template: appointment-confirm,
status: delivered|sent|failed,
latency_ms: 450,
error: null
}
模板存储在 notification-system/templates/{channel}/{type}.md 中:
templates/
├── whatsapp/
│ ├── appointment-confirm.md
│ ├── appointment-reminder.md
│ ├── payment-received.md
│ ├── status-update.md
│ ├── broadcast-promotion.md
│ └── support-acknowledged.md
├── telegram/
│ ├── system-alert.md
│ ├── status-report.md
│ ├── daily-brief.md
│ └── broadcast.md
└── email/
├── invoice.md
├── welcome.md
└── notification.md
处理待处理通知:
bash
node notification-system/process-queue.js
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 notification-system-1776014349 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 notification-system-1776014349 技能
skillhub install notification-system-1776014349
文件大小: 11.76 KB | 发布时间: 2026-4-13 11:13