360 Secure SkillHub
360 安全技能中心

Universal Notify

核心功能:通过单个bash脚本`notify.sh`,统一接口调用ntfy.sh(免注册)、Gotify、Webhook、邮箱、Telegram、Pushover等多渠道发送通知,支持四级优先级。典型场景:适用于系统告警、监控通知、部署告知等需触达人员的事件。输入为带渠道参数的bash命令,输出对应渠道通知,依赖curl,部分渠道需配置凭证。

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

安装技能

复制下面的话术发给你的 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