Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计提醒

agent-notifyAgent 通知

Agent Skill

agent-notify 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,508

周安装

316

GitHub Stars

公开资料未说明

下载量

2,629
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-notify(Agent 通知)
来源仓库:https://github.com/miluer-tcq/agent-notify
安装命令:
openclaw skills install agent-notify
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install agent-notify

简介

agent-notify 为 AI 编码代理提供跨平台通知声音与任务栏闪烁功能。

  • 适用于 Claude Code、OpenClaw、Cursor 等多种代理环境的通知提醒。
  • 支持播放警报声音与视觉效果,增强任务完成感知。
  • 安装命令为 openclaw skills install agent-notify,需确认权限与维护状态。
  • 使用前请核实是否会触发联网、命令执行或文件读写操作。

SKILL.md

name
Agent Notify
description
Cross-platform notification sound and taskbar flash for AI coding agents (Claude Code, OpenClaw, Codex, Kiro, Cursor, etc.). Plays alert sounds and visual notifications when the agent needs confirmation or completes tasks. Auto-detects the agent environment and configures hooks accordingly. Use this skill whenever the user mentions notification sounds, alert beeps, taskbar flash, completion alerts, or wants to know when the agent finishes or needs attention — even if they just say something vague like "I want a sound" or "how do I get notified". Also trigger on any mention of configuring, enabling, disabling, or customizing audio/visual alerts for any AI coding agent. Works on Windows, macOS, and Linux.
author
Miluer-tcq
version
1.0.0
license
GPL-3.0
triggers

Agent Notify Skill

You are an assistant that helps users configure cross-platform notification sounds and taskbar/dock alerts for AI coding agents. When triggered, you MUST follow the instructions below precisely.

Language Detection

Detect the user's language from their message. If they write in Chinese, respond in Chinese. If they write in English, respond in English. Match the user's language throughout the entire interaction.

Step 1: Offer Two Modes

Present two options to the user:

English:

🔔 Agent Notify — Setup

Choose a setup mode:

1️⃣  Quick Setup (recommended) — One-click install with default settings
    • Notification on: confirmation requests + task completion
    • Default system sounds
    • Taskbar flash: 5 times

2️⃣  Custom Setup — Choose your own settings
    • Pick which events trigger notifications
    • Configure custom sound files
    • Adjust taskbar flash count

Enter 1 or 2:

Chinese:

🔔 Agent Notify — 配置向导

请选择配置模式:

1️⃣  一键配置(推荐)— 使用默认设置快速安装
    • 通知触发:确认请求 + 任务完成
    • 默认系统提示音
    • 任务栏闪烁:5 次

2️⃣  自定义配置 — 自由选择设置
    • 选择哪些事件触发通知
    • 配置自定义提示音文件
    • 调整任务栏闪烁次数

请输入 1 或 2:

Step 2A: Quick Setup

If user chooses 1, proceed directly to Step 3: Install.

Use these defaults:

  • Hooks: Notification (type: confirm), Stop (type: done)
  • Sounds: system defaults
  • Taskbar flash count: 5

Step 2B: Custom Setup

If user chooses 2, walk through these options interactively:

2B-1: Select Hook Events

Present available hook events:

Available notification triggers:

[1] ✅ Confirmation requests (Notification hook) — when Claude asks for permission
[2] ✅ Task completion (Stop hook) — when Claude finishes responding
[3] ❌ Error alerts — when a tool call fails
[4] ❌ Pre-tool notification (PreToolUse) — before each tool execution
[5] ❌ Post-tool notification (PostToolUse) — after each tool execution

Enter numbers to toggle (e.g., 1,2,3), or press Enter to keep defaults:

2B-2: Custom Sounds

Ask if user wants custom sound files:

Custom sound files (leave blank for system defaults):

• Confirmation sound path: [blank = system default]
• Completion sound path: [blank = system default]
• Error sound path: [blank = system default]

Supported formats:
  Windows: .wav
  macOS: .aiff, .mp3, .wav
  Linux: .oga, .wav, .mp3

2B-3: Taskbar Flash Count

Taskbar flash count [default: 5]:

Step 3: Install

After collecting settings (default or custom), perform the installation:

3.1 Detect OS and Agent Environment

Run this command to detect the operating system:

uname -s 2>/dev/null || echo "Windows"
  • If output contains Darwin → macOS
  • If output contains Linux → Linux
  • If output contains MINGW, MSYS, CYGWIN, or Windows → Windows

Then detect which AI coding agent the user is running. This determines the config directory and hooks format:

# Detect agent config directory (first existing one wins)
for dir in ~/.claude ~/.codex ~/.openclaw ~/.kiro ~/.cursor; do
  if [ -d "$dir" ]; then echo "$dir"; break; fi
done

On Windows, also check:

for dir in "$USERPROFILE/.claude" "$USERPROFILE/.codex" "$USERPROFILE/.openclaw"; do
  if [ -d "$dir" ]; then echo "$dir"; break; fi
done

Set AGENT_HOME to the detected directory (e.g., ~/.claude). If none found, default to ~/.claude and create it.

The supported agents and their known config paths:

AgentConfig DirSettings FileHooks Support
Claude Code~/.claudesettings.json✅ Full (Notification, Stop, PreToolUse, PostToolUse)
OpenClaw~/.openclawsettings.json✅ Same hooks format as Claude Code
Codex (OpenAI)~/.codexsettings.json⚠️ May differ — check docs
Kiro (AWS)~/.kirosettings.json⚠️ May differ — check docs
Cursor~/.cursorvaries⚠️ Different hooks system

If the detected agent is not Claude Code or OpenClaw, warn the user that hooks compatibility is not guaranteed and ask if they want to proceed. The notification scripts themselves (sound + taskbar flash) work universally — only the hooks integration is agent-specific.

3.2 Copy Notification Script

Find the skill directory by searching for this skill.md file:

for base in ~/.claude/skills ~/.codex/skills ~/.openclaw/skills ~/.kiro/skills ~/.cursor/skills; do
  found=$(find "$base" -name "skill.md" -path "*/agent-notify/*" 2>/dev/null | head -1)
  [ -n "$found" ] && echo "$(dirname "$found")" && break
done

On Windows (Git Bash / MSYS2), also try:

for base in "$USERPROFILE/.claude/skills" "$USERPROFILE/.codex/skills" "$USERPROFILE/.openclaw/skills"; do
  found=$(find "$base" -name "skill.md" -path "*/agent-notify/*" 2>/dev/null | head -1)
  [ -n "$found" ] && echo "$(dirname "$found")" && break
done

If the find command fails or returns nothing, ask the user where they installed the skill.

Copy the script to $AGENT_HOME/ (not hardcoded ~/.claude/):

For Windows:

cp "<skill_dir>/scripts/notify-windows.ps1" "$AGENT_HOME/notify.ps1"

For macOS:

cp "<skill_dir>/scripts/notify-macos.sh" "$AGENT_HOME/notify.sh"
chmod +x "$AGENT_HOME/notify.sh"

For Linux:

cp "<skill_dir>/scripts/notify-linux.sh" "$AGENT_HOME/notify.sh"
chmod +x "$AGENT_HOME/notify.sh"

3.3 Write Config

Write the user's configuration to $AGENT_HOME/notify-config.json:

Construct the config JSON from the user's chosen settings and write it. For example, with defaults:

cat > "$AGENT_HOME/notify-config.json" << 'EOF'
{
  "hooks": {
    "Notification": { "enabled": true, "type": "confirm" },
    "Stop": { "enabled": true, "type": "done" }
  },
  "sounds": {
    "confirm": "",
    "done": "",
    "error": ""
  },
  "taskbar": {
    "flashCount": 5,
    "enabled": true
  }
}
EOF

Substitute actual values from user's choices (sound paths, flash count, enabled hooks).

3.4 Update Agent Settings

Read the existing $AGENT_HOME/settings.json file, then merge the hooks configuration into it.

IMPORTANT: Do NOT overwrite existing settings. Merge the hooks key into the existing JSON, preserving all other fields (env, permissions, model, statusLine, etc.).

Build hook commands based on OS. Replace $AGENT_HOME with the actual detected path in the commands below:

Windows hooks:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "powershell.exe -ExecutionPolicy Bypass -File \"$AGENT_HOME/notify.ps1\" -Type confirm -ConfigPath \"$AGENT_HOME/notify-config.json\""
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "powershell.exe -ExecutionPolicy Bypass -File \"$AGENT_HOME/notify.ps1\" -Type done -ConfigPath \"$AGENT_HOME/notify-config.json\""
          }
        ]
      }
    ]
  }
}

macOS/Linux hooks:

{
  "hooks": {
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash $AGENT_HOME/notify.sh confirm $AGENT_HOME/notify-config.json"
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "bash $AGENT_HOME/notify.sh done $AGENT_HOME/notify-config.json"
          }
        ]
      }
    ]
  }
}

If user selected additional hooks in custom mode (error, PreToolUse, PostToolUse), add those hook entries as well with the appropriate type parameter.

For agents that don't support the Claude Code hooks format, inform the user and offer to just install the notification scripts manually. They can then integrate with their agent's own hook/event system.

3.5 Test

Run a test notification:

Windows:

powershell.exe -ExecutionPolicy Bypass -File "$AGENT_HOME/notify.ps1" -Type confirm -ConfigPath "$AGENT_HOME/notify-config.json"

macOS/Linux:

bash "$AGENT_HOME/notify.sh" confirm "$AGENT_HOME/notify-config.json"

3.6 Report Success

English:

✅ Agent Notify installed successfully!

Agent: [detected agent name]
Config: $AGENT_HOME/

Configured notifications:
  • 🔔 Confirmation requests → [sound type]
  • ✅ Task completion → [sound type]

Files installed:
  • $AGENT_HOME/notify.[ps1|sh]
  • $AGENT_HOME/notify-config.json
  • $AGENT_HOME/settings.json (hooks added)

⚠️  Please restart your agent for hooks to take effect.

To uninstall, say: "disable notification" or "关闭提示音"
To reconfigure, say: "configure notify" or "配置提示音"

Chinese:

✅ Agent Notify 安装成功!

运行环境:[检测到的 agent 名称]
配置目录:$AGENT_HOME/

已配置的通知:
  • 🔔 确认请求 → [提示音类型]
  • ✅ 任务完成 → [提示音类型]

已安装文件:
  • $AGENT_HOME/notify.[ps1|sh]
  • $AGENT_HOME/notify-config.json
  • $AGENT_HOME/settings.json(已添加 hooks)

⚠️  请重启你的 agent 使 hooks 生效。

卸载请说:"关闭提示音" 或 "disable notification"
重新配置请说:"配置提示音" 或 "configure notify"

Important Notes

  • $AGENT_HOME refers to the detected agent config directory (e.g., ~/.claude, ~/.codex, ~/.openclaw). Always use the actual resolved path in commands, not the variable name.
  • On Windows, $HOME in hook commands is expanded by the shell (Git Bash/MSYS2). If the user's environment doesn't expand $HOME, use the full absolute path instead (e.g., C:/Users/username/.claude/notify.ps1).
  • On macOS, the Dock bounce uses Python's AppKit.NSApplication.requestUserAttention_() which is available by default. If PyObjC is not available, the fallback printf '\a' (terminal bell) will trigger a Dock bounce in most terminal apps.
  • On Linux, notify-send handles both the desktop notification and the visual alert. If it's not installed, only the sound will play.
  • For agents other than Claude Code / OpenClaw, the hooks format may differ. If auto-configuration fails, the notification scripts can still be used standalone — just call them directly from whatever hook/event system the agent provides.

Uninstall / Disable

When user triggers with disable-related keywords (关闭提示音, disable notification, etc.):

  1. Detect $AGENT_HOME using the same logic as Step 3.1
  2. Read $AGENT_HOME/settings.json
  3. Remove ALL hook entries that reference notify.ps1 or notify.sh
  4. Write back the cleaned settings.json
  5. Remove $AGENT_HOME/notify.ps1 or $AGENT_HOME/notify.sh
  6. Remove $AGENT_HOME/notify-config.json
  7. Confirm:

English:

✅ Agent Notify has been uninstalled.

Removed:
  • $AGENT_HOME/notify.[ps1|sh]
  • $AGENT_HOME/notify-config.json
  • Notification hooks from $AGENT_HOME/settings.json

⚠️  Please restart your agent for changes to take effect.

Chinese:

✅ Agent Notify 已卸载。

已移除:
  • $AGENT_HOME/notify.[ps1|sh]
  • $AGENT_HOME/notify-config.json
  • $AGENT_HOME/settings.json 中的通知 hooks

⚠️  请重启你的 agent 使更改生效。

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.73%
按下载量换算2,464

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills