360 Secure SkillHub
360 安全技能中心

ntfy-notify

该 Skill 提供 send_ntfy.sh 脚本,封装 curl 请求调用 ntfy 推送服务。可指定主题、消息、标题、1-5 优先级、逗号分隔标签、点击跳转链接、操作按钮和附件地址;省略消息时自动生成带时间戳的默认文本。

bigcat-byebye
bigcat-byebye
热度 86.50
最近更新 2026-05-11 17:27:29
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add ntfy-notify
Metadata
name
ntfy-notify
description
Send ntfy.sh notifications with curl, including advanced headers like title, priority, tags, click links, action buttons, and image attachments. Use when a user asks to send basic or rich ntfy notifications to a topic.

ntfy-notify

Send notifications to ntfy topics.

Author

Default topic

  • CaptainDragonflyBot-TopicTest001

Script

Use:

skills/ntfy-notify/scripts/send_ntfy.sh

Parameters

  • --topic topic name
  • --message body text
  • --title notification title
  • --priority 1-5
  • --tags comma-separated tags
  • --click URL opened on tap
  • --actions ntfy actions header string (supports buttons)
  • --attach URL to an image/file shown as attachment
  • --filename optional attachment filename hint

Button format

Pass buttons via --actions as a variable string.

Example format:

view, Open docs, https://docs.openclaw.ai; http, Trigger API, https://example.com/hook

Examples

Basic (explicit message):

skills/ntfy-notify/scripts/send_ntfy.sh --message "你好,老爷"

Default message (omit --message, script auto-generates timestamp text):

skills/ntfy-notify/scripts/send_ntfy.sh

Rich notification with buttons and image:

skills/ntfy-notify/scripts/send_ntfy.sh \
  --title "Deploy finished" \
  --message "Build #42 is ready" \
  --priority 4 \
  --tags "rocket,white_check_mark" \
  --click "https://example.com/build/42" \
  --actions "view, Open build, https://example.com/build/42; view, Open docs, https://docs.openclaw.ai" \
  --attach "https://picsum.photos/1200/630"