← 返回 Skills 市场
1tsnakers

Cross Platform Notifier

作者 1TSnakers · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
59
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cross-platform-notifier
功能描述
Triggers native system notifications across Windows, macOS, and Linux (including WSL) to alert the user when tasks are complete.
使用说明 (SKILL.md)

Cross-Platform Notifier

This skill provides a unified way to send visual alerts to the user's desktop regardless of their operating system. It is designed to bridge the gap between different OS notification systems and specifically handles the complexity of WSL (Windows Subsystem for Linux).

Implementation

The skill uses a wrapper script notify.sh that detects the host operating system and chooses the appropriate native tool.

Note: As of v1.0.0, this skill has been verified on Windows (including WSL) and follows standard AppleScript/Linux conventions for other platforms.

The Unified Command

To send a notification, execute the following shell command:

./skills/cross-platform-notifier/scripts/notify.sh "Your message here" "Your title here"

(Note: Ensure the script has execution permissions: chmod +x scripts/notify.sh)

How it Works (Under the Hood)

  • Windows: Uses PowerShell's System.Windows.Forms.MessageBox for a reliable pop-up.
  • macOS: Uses osascript (AppleScript) to trigger a native alert box.
  • Linux (Native): Uses notify-send for standard desktop banners.
  • WSL: Detects the Microsoft kernel and calls powershell.exe to bridge the notification back to the Windows host desktop.

Usage Guidelines

When to use

  • Task Completion: After a long background process finishes.
  • Urgent Blockers: When a decision is needed to proceed.
  • Confirmation: To alert the user that a high-impact action has been completed.

When NOT to use

  • Casual Conversation: Do not use for standard chat.
  • High-Frequency Events: Avoid "spamming" notifications.
  • Silent Work: If a task is meant to be subtle, stay silent.

Examples

Scenario: Finished a heavy data process ./skills/cross-platform-notifier/scripts/notify.sh "I've finished analyzing those files! 🦞" "Analysis Complete"

Scenario: Error in background build ./skills/cross-platform-notifier/scripts/notify.sh "The build failed. Please check the logs. ⚠️" "Error Alert"

安全使用建议
Reasonable to install for task-completion alerts. Use it with simple, trusted notification text; avoid piping raw logs, filenames from untrusted sources, or user-supplied strings into the message/title unless the script is hardened to escape PowerShell and AppleScript arguments.
能力标签
crypto
能力评估
Purpose & Capability
The stated purpose is to show native desktop notifications, and the artifact only provides documentation plus a small shell wrapper that calls OS notification mechanisms.
Instruction Scope
Runtime instructions are narrow and user-directed, but the macOS and Windows/WSL branches interpolate notification text into osascript/PowerShell command strings, so callers should avoid passing untrusted or attacker-controlled text as the message/title.
Install Mechanism
There is no package installer, dependency setup, or automatic startup behavior; the only install-related instruction is to make the helper script executable.
Credentials
Use of PowerShell, osascript, and notify-send is proportionate for cross-platform notifications, including WSL host notifications.
Persistence & Privilege
No persistence, credential access, background worker, network exfiltration, or privilege escalation behavior was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cross-platform-notifier
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cross-platform-notifier 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with cross-platform desktop notification support: - Sends native notifications on Windows, macOS, Linux, and WSL. - Uses a single shell script (`notify.sh`) to auto-detect the OS and trigger appropriate alerts. - Supports custom message and title for each notification. - Documentation includes usage guidelines and practical examples.
元数据
Slug cross-platform-notifier
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cross Platform Notifier 是什么?

Triggers native system notifications across Windows, macOS, and Linux (including WSL) to alert the user when tasks are complete. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。

如何安装 Cross Platform Notifier?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cross-platform-notifier」即可一键安装,无需额外配置。

Cross Platform Notifier 是免费的吗?

是的,Cross Platform Notifier 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cross Platform Notifier 支持哪些平台?

Cross Platform Notifier 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cross Platform Notifier?

由 1TSnakers(@1tsnakers)开发并维护,当前版本 v1.0.0。

💬 留言讨论