360 Secure SkillHub
360 安全技能中心

Universal Notify

提供 scripts/notify.sh,通过 --channel 选择 ntfy.sh、Gotify、通用 Webhook、SMTP 邮件、Telegram Bot 或 Pushover 发送通知,支持 --message、--title 与 low/normal/high/urgent 优先级;除 ntfy.sh 外各渠道需自备凭据,依赖 curl。

josunlp
josunlp
热度 94.67
最近更新 2026-05-11 15:57:11
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 工作流 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add universal-notify
Metadata
name
universal-notify
description
Send notifications through multiple channels with a single script. Supports ntfy.sh (free, no signup), Gotify (self-hosted), generic webhooks, email (SMTP/curl), Telegram Bot API, and Pushover. Use when sending alerts, monitoring notifications, deployment notices, or any event that needs to reach a human through their preferred channel. Unified interface with priority levels (low/normal/high/urgent).

Universal Notify

Send notifications via scripts/notify.sh:

# ntfy.sh (free, no auth needed)
scripts/notify.sh --channel ntfy --topic myalerts --message "Disk 90%!" --priority urgent

# Gotify (self-hosted)
scripts/notify.sh --channel gotify --url https://gotify.local --token TOKEN --message "Deploy done"

# Webhook (generic JSON POST)
scripts/notify.sh --channel webhook --url https://hooks.example.com/abc --message "Event fired"

# Email
scripts/notify.sh --channel email --smtp smtp://mail:587 --from a@x.com --to b@y.com --subject "Alert" --message "Check server"

# Telegram
scripts/notify.sh --channel telegram --bot-token BOT:TOK --chat-id 12345 --message "Hello"

# Pushover
scripts/notify.sh --channel pushover --app-token X --user-key Y --message "Alert" --priority high

Common Options

All channels support --message (required), --title (optional), and --priority low|normal|high|urgent (default: normal).

Requirements

  • curl (standard on most systems)
  • No API keys needed for ntfy.sh — other channels require their respective credentials