Skip to main content

send-notify

Send notifications to the user. TRIGGER when user says "notify me", "send notification", "alert me".

Informations de source

Dépôt
archibate/dotfiles-opencode
Dernière activité de la source
23 mars 2026 à 03:29
Langue détectée de SKILL.md
anglais
Étoiles
108
Forks
21

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
send-notify
description
Send notifications to the user. TRIGGER when user says "notify me", "send notification", "alert me".
# Send Notification ## Environment Detection Check which method is available: ```bash # Linux desktop echo $DISPLAY # ntfy.sh remote echo $NTFY_SH_PRIVATE_TOPIC # macOS uname -s ``` ## Methods | Condition | Method | |-----------|--------| | `$DISPLAY` non-empty | Linux desktop (`notify-send`) | | `uname -s` = `Darwin` | macOS (`terminal-notifier`) | | `$NTFY_SH_PRIVATE_TOPIC` non-empty | Remote via ntfy.sh | | None of the above | Fallback: write to `/tmp/claude-notify` | ### Linux Desktop ```bash notify-send -a "claude" -u critical "Claude" "<message>" ``` ### macOS ```bash terminal-notifier -title "Claude" -message "<message>" ``` ### Remote via ntfy.sh User must set up topic first: ```bash export NTFY_SH_PRIVATE_TOPIC="your-secret-topic-name" ``` Send: ```bash curl -s -d "<message>" "https://ntfy.sh/$NTFY_SH_PRIVATE_TOPIC" ``` **Privacy:** ntfy.sh topics are public. Never include sensitive data in notifications. ### Fallback ```bash echo "$(date -Iseconds): <message>" >> /tmp/claude-notify ```
Voir sur GitHub