# Ntfy

> Use this skill when sending notifications via ntfy.sh or self-hosted ntfy servers.

- **Type:** Skill
- **Install:** `agentstack add skill-uvwt-agentdock-ntfy`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [uvwt](https://agentstack.voostack.com/s/uvwt)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [uvwt](https://github.com/uvwt)
- **Source:** https://github.com/uvwt/agentdock/tree/main/skill-sources/ntfy
- **Website:** https://uvwt.github.io/agentdock-docs/

## Install

```sh
agentstack add skill-uvwt-agentdock-ntfy
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# ntfy Notifications Skill

把 [ntfy.sh](https://ntfy.sh) 开源 HTTP 通知服务封装为 AgentDock 原生 Skill，用于 Dock 通知推送。

## 能力

- `send`：向 ntfy topic 发送推送通知。支持标题、优先级、标签、点击 URL、图标和 Markdown 正文。
- `event`：发送格式化的 Dock 运行事件通知，自动拼接 severity / device / service / time 等上下文。
- `health`：验证 ntfy server URL 与 topic 配置；`live: true` 会真实发送一条健康检查通知。
- `subscribe`：轮询拉取 topic 最近的消息（JSON 格式），支持 `since` 和 `limit` 参数。

## 配置

默认连接 `https://ntfy.sh`。可设置 `NTFY_SERVER_URL` 环境变量或在调用中传 `server_url` 指向自建 ntfy server。

Topic 名称从 `NTFY_TOPIC` 环境变量或调用参数 `topic` 获取。

### 认证（可选）

- **Token 认证**：设置 `NTFY_TOKEN` 环境变量，使用 `Authorization: Bearer ` 头。
- **Basic Auth**：设置 `NTFY_USERNAME` 和 `NTFY_PASSWORD` 环境变量。
- 无认证时使用公开 ntfy.sh 服务（topic 公开可见）。

可通过 `NTFY_ENV_FILE` 或调用参数 `env_file` 指定 `.env` 文件。

## 安全约束

- `server_url` 仅允许 `http` / `https`，禁止 URL 内嵌用户名和密码。
- 认证凭据只从环境变量 / `.env` 读取，不接受 action input 传入。
- Token 和密码在输出中自动脱敏。
- 不依赖第三方 Python 包。

## 辅助脚本执行

Skill 本体是本说明文档。确需调用包内辅助脚本时，在 Skill 包根目录使用相对路径执行；运行宿主负责切换到包根目录并把所需变量注入当前子进程。

```bash
printf '%s' '{"skill_action":""}' | python3 run.py
```

输入必须是 JSON 对象。写操作仍按本文档中的确认规则执行。

| 动作 | 用途 |
|---|---|
| `send` | Send a push notification to an ntfy topic. Supports title, priority, tags, click URL, icon, and Markdown-formatted body. |
| `event` | Send a formatted Dock event notification through ntfy. |
| `health` | Verify ntfy configuration and optionally perform a live connectivity check. |
| `subscribe` | Poll an ntfy topic for recent messages (JSON format). Returns the latest messages without establishing a long-lived connection. |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [uvwt](https://github.com/uvwt)
- **Source:** [uvwt/agentdock](https://github.com/uvwt/agentdock)
- **License:** Apache-2.0
- **Homepage:** https://uvwt.github.io/agentdock-docs/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-uvwt-agentdock-ntfy
- Seller: https://agentstack.voostack.com/s/uvwt
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
