Send Notify

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

archibate 770f783 1.1 KB Updated

File contents

Send Notification

Environment Detection

Check which method is available:

# 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

notify-send -a "claude" -u critical "Claude" "<message>"

macOS

terminal-notifier -title "Claude" -message "<message>"

Remote via ntfy.sh

User must set up topic first:

export NTFY_SH_PRIVATE_TOPIC="your-secret-topic-name"

Send:

curl -s -d "<message>" "https://ntfy.sh/$NTFY_SH_PRIVATE_TOPIC"

Privacy: ntfy.sh topics are public. Never include sensitive data in notifications.

Fallback

echo "$(date -Iseconds): <message>" >> /tmp/claude-notify

archibate/dotfiles-opencode/tree/main/optional-skills/send-notify commit 770f78368a

Frequently asked questions

npx skillmds@latest add archibate/send-notify