ntfy-notifier
Skill1 starsChanged 3 months agoMITView on GitHub
Use when the user wants push notifications to their phone or desktop from a script, cron job, or agent task — via ntfy's HTTP pub/sub topics — without setting up Firebase, APNS, or a mobile SDK. Covers the public ntfy.sh server and self-hosting via Docker.
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-test-suiteSkill
- ascii-artSkill
- caddy-reverse-proxySkill
- changelog-generatorSkill
- color-palette-generatorSkill
- cron-taskSkill
- csv-toolkitSkill
- discord-bot-buildSkill
- docker-umbrellaSkill
- dotfiles-manageSkill
- email-sendSkill
- env-config-managerSkill
- excalidraw-diagramSkill
- file-organizerSkill
- forgejo-self-hostSkill
- frontend-design-toolkitSkill
- generate-dockerfileSkill
- gif-searchSkill
- git-backupSkill
- github-actions-ciSkill
- hallmark-readmeSkill
- http-api-testerSkill
- invoice-generatorSkill
- json-formatterSkill
- log-analyzerSkill
- markdown-linterSkill
- markdown-to-pdfSkill
- markdown-to-slidesSkill
- mcp-server-buildSkill
- media-id-mappingSkill
- movie-catalogue-siteSkill
- movie-night-calendarSkill
- ocr-documentsSkill
- ollama-localSkill
- openapi-generatorSkill
- password-generatorSkill
- pdf-extractSkill
- portfolio-upkeepSkill
- qr-code-generatorSkill
- regex-testerSkill
- resume-builderSkill
- rss-monitorSkill
- searxng-self-hostSkill
- skill-publishSkill
- skill-registry-catalogSkill
- skills-portfolio-scaffoldSkill
- snippet-managerSkill
- sqlite-dashboardSkill
- streaming-provider-embedsSkill
- tailscale-deploySkill
- telegram-bot-buildSkill
- tmdb-metadataSkill
- uptime-kuma-self-hostSkill
- watchlist-syncSkill
- webhook-receiverSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Use the public ntfy server at https://ntfy.sh.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ntfy-notifier
Overview
Send push notifications to any device using ntfy — a simple HTTP-based pub/sub notification service. No SDK, no mobile app integration, no APNS/FCM setup. Just HTTP POST to a topic URL and the notification appears on any subscribed device.
When to Use
- The user wants push notifications for their scripts or agent tasks.
- The user wants alerts on their phone when a cron job fails or a deploy completes.
- The user wants a simple notification channel without setting up Firebase, APNS, or email.
- The user says "send me a notification", "alert my phone", or "I want push notifications from my scripts".
Setup
Option A: Public server (fastest)
Use the public ntfy server at https://ntfy.sh. No setup needed — just pick a topic name and start sending.
- Install the ntfy app on your phone:
- iOS: App Store → "ntfy"
- Android: Play Store → "ntfy" or F-Droid
- Open the app, tap "+", subscribe to a topic (e.g.,
my-alerts-abc123) - Send a notification to that topic from any device
Option B: Self-hosted (private)
# docker-compose.yml
version: "3"
services:
ntfy:
image: binwiederhier/ntfy:latest
container_name: ntfy
restart: unless-stopped
ports:
- "8090:80"
volumes:
- ntfy-data:/var/lib/ntfy
command: serve
volumes:
ntfy-data:docker compose up -dIn the phone app, set the server URL to http://your-server:8090 and subscribe to a topic.
Sending Notifications
curl (simplest)
# Basic notification
curl -d "Deploy complete" ntfy.sh/my-alerts-abc123
# With title and priority
curl \
-H "Title: Server Alert" \
-H "Priority: high" \
-H "Tags: warning,server" \
-d "CPU usage at 95%" \
ntfy.sh/my-alerts-abc123Python
import requests
# Basic
requests.post("https://ntfy.sh/my-alerts-abc123", data="Build complete")
# With options
requests.post("https://ntfy.sh/my-alerts-abc123",
data="Disk space critical: 2% remaining",
headers={
"Title": "Disk Alert",
"Priority": "urgent",
"Tags": "warning,disk",
"Actions": "view, Open Dashboard, https://grafana.example.com"
}
)With actions (buttons in the notification)
curl \
-H "Title: Deploy Ready" \
-H "Actions: view, Open PR, https://github.com/me/repo/pull/42; http, Approve, https://api.example.com/approve" \
-d "PR #42 is ready for review" \
ntfy.sh/my-alerts-abc123The notification shows buttons: "Open PR" (opens URL) and "Approve" (sends HTTP request).
Topics and Subscriptions
Topics are pub/sub channels identified by a name. No registration — anyone with the topic name can publish or subscribe.
- Pick a unique topic name —
my-alerts-abc123is better thanalerts(which anyone could read) - Subscribe on your phone — open the ntfy app, add the topic
- Subscribe via CLI —
ntfy subscribe my-alerts-abc123 - Subscribe via curl —
curl -s ntfy.sh/my-alerts-abc123/sse(Server-Sent Events stream)
Priority Levels
| Priority | Behavior |
default | Normal notification, no sound |
high | Notification sound, may bypass Do Not Disturb |
urgent | Notification sound, bypasses Do Not Disturb, may repeat |
curl -H "Priority: urgent" -d "Server is DOWN" ntfy.sh/my-alerts-abc123Common Patterns
| Pattern | Command |
| Script success | curl -d "Backup complete" ntfy.sh/my-topic |
| Script failure | curl -H "Priority: high" -d "Backup FAILED" ntfy.sh/my-topic |
| Cron job heartbeat | curl -d "Job ran OK" ntfy.sh/my-topic (send after each run) |
| Deploy notification | curl -H "Title: Deploy" -d "v1.2.3 live" ntfy.sh/my-topic |
| With action button | curl -H "Actions: view, Logs, https://..." -d "Build failed" ntfy.sh/my-topic |
Common Pitfalls
- Public topics are public. Anyone who guesses your topic name can read your notifications. Use a long, random topic name (e.g.,
alerts-k7m3x9p2q4), never a plain word likealerts. For sensitive notifications, self-host. - No authentication on the public server. The public ntfy.sh server doesn't require auth — anyone can publish to any topic they can guess. If you need auth, self-host and configure access control.
- Rate limiting on the public server. ntfy.sh rate-limits to roughly 60 requests/hour per IP. For higher volume (e.g., per-line log streaming), self-host instead.
- Topic name collisions. Two unrelated users on the same topic name (e.g., both picking "test") will see each other's notifications. Always use a unique, hard-to-guess topic name.
- No delivery guarantees by default. ntfy is fire-and-forget — if no client is subscribed when a message is sent, it's lost unless message caching is enabled on a self-hosted server.
- Self-hosted push silently fails on iOS without HTTPS. iOS requires HTTPS for background push delivery. Put a self-hosted ntfy instance behind Caddy or nginx with TLS, or iOS clients won't receive notifications when the app is backgrounded.
Verification Checklist
- A test
curl -d "test" ntfy.sh/<topic>(or self-hosted equivalent) returns HTTP 200 - The notification actually arrives on the subscribed device/app, not just a 200 from the API
- Topic name is long/random enough that it isn't guessable (not
alerts,test,notify) - Priority level matches the alert's urgency (
urgentfor outages,defaultfor routine heartbeats) - For self-hosted setups: the server is reachable over HTTPS if iOS clients are involved
- Any
Actionsbuttons open the correct URL / fire the correct HTTP request when tapped
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

