notify
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNotify Skill
通知Skill
Send notifications via ntfy.sh to alert the user about completed tasks, errors, or any important events.
通过ntfy.sh发送通知,提醒用户任务完成、错误或任何重要事件。
Usage
使用场景
Use this skill when:
- A long-running task has completed
- An error or issue needs attention
- The user explicitly asks to be notified
- Any event that warrants alerting the user
在以下情况使用此Skill:
- 长时间运行的任务已完成
- 出现需要关注的错误或问题
- 用户明确要求接收通知
- 任何需要提醒用户的事件
How to Send Notifications
如何发送通知
Execute the following command with an appropriate message using fish shell:
bash
fish -c 'curl -d "<MESSAGE>" "ntfy.sh/$NTFY_SUB_TOPIC"'Replace with a concise, descriptive message about the event.
<MESSAGE>Note: is a private fish shell variable, so the command must be run via .
$NTFY_SUB_TOPICfish -c使用fish shell执行以下命令,并传入合适的消息:
bash
fish -c 'curl -d "<MESSAGE>" "ntfy.sh/$NTFY_SUB_TOPIC"'将替换为关于事件的简洁描述性消息。
<MESSAGE>注意:是一个私有fish shell变量,因此必须通过运行该命令。
$NTFY_SUB_TOPICfish -cMessage Guidelines
消息撰写指南
- Keep messages short and actionable (under 100 characters when possible)
- Include relevant context (e.g., task name, file, error type)
- Use clear language
- 保持消息简短且具有可操作性(尽可能控制在100字符以内)
- 包含相关上下文(例如任务名称、文件、错误类型)
- 使用清晰易懂的语言
Example Messages
示例消息
- "Build completed successfully"
- "Tests passed: 42/42"
- "Error: TypeScript compilation failed in src/index.ts"
- "PR #123 is ready for review"
- "Task complete: Database migration finished"
- "构建已成功完成"
- "测试通过:42/42"
- "错误:src/index.ts中TypeScript编译失败"
- "PR #123已准备好待审核"
- "任务完成:数据库迁移已结束"