← スキル一覧に戻る

sending-notifications
by WarrenZhu050413
A personal plugin marketplace for Claude Code
⭐ 5🍴 0📅 2025年12月3日
SKILL.md
name: "Sending Notifications" description: "Send macOS notifications using display dialog method that works reliably in tmux."
Sending Notifications
Reliable Method (Display Dialog)
Use display dialog for guaranteed visible notifications. Works in tmux with reattach-to-user-namespace.
Template
reattach-to-user-namespace osascript -e 'tell application "System Events"
activate
display dialog "{message}" with title "{emoji} {title}" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
Examples
Task completion:
reattach-to-user-namespace osascript -e 'tell application "System Events"
activate
display dialog "Task completed successfully!" with title "✅ Done" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
Error:
reattach-to-user-namespace osascript -e 'tell application "System Events"
activate
display dialog "Check the logs for details" with title "❌ Error" buttons {"OK"} default button 1 with icon stop giving up after 5
end tell'
Email:
reattach-to-user-namespace osascript -e 'tell application "System Events"
activate
display dialog "Angela has responded to your email" with title "📧 Email Alert" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
Script finished:
reattach-to-user-namespace osascript -e 'tell application "System Events"
activate
display dialog "Your long-running task has finished" with title "🎉 Done" buttons {"OK"} default button 1 with icon note giving up after 5
end tell'
Icon Options
with icon note- Information (ℹ️)with icon caution- Warning (⚠️)with icon stop- Error (🛑)
Common Emojis
- 📧 Email | ✅ Success | ❌ Error | ⚠️ Warning
- 🔔 Alert | 📬 Inbox | 🎉 Done | 🔍 Found
- 💾 Save | 🚀 Launch | ⏰ Reminder | 📊 Stats
Notes
giving up after 5- Auto-dismisses after 5 seconds- Modal dialog appears center screen (more intrusive than banners)
- Works reliably in tmux with
reattach-to-user-namespace - No notification permission setup required
- Always use single quotes for osascript -e '...'
IMPORTANT: Send notification at end of message using above format.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です