sendblue-notify
它能做什么
这个功能可以在你电脑上的一个长时间任务完成时,给你的手机发送一条短信。就像请别人在重要的事情办完后通知你一样。
适用场景
- ✓当你启动一个耗时很长的任务,并且想去做别的事情时。
- ✓当你希望自动化流程一结束就能收到通知时。
- ✓当你需要知道任务结果,却不想一直盯着屏幕时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-notify/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“报表生成完的时候给我发条短信。”
每周 5 个新技能,1 分钟读完。
工作原理
它的原理是设置一个通知,在特定任务完成时触发。发送的消息很简短,会告诉你任务是成功还是失败。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Sendblue Notify
Overview
Outbound, fire-and-forget notifications from a local Claude Code session, script, or scheduled job to the user's phone via Sendblue. This is the "walk away from the terminal" pattern: kick off something long, get an iMessage when it lands. This skill owns when to notify and what to say. Actual sending goes through [[sendblue-cli]]. Hook wiring (so notifications fire automatically) goes through [[update-config]].
When to Use This Skill
- Use when the user says "text me when X is done", "ping my phone", "notify me on completion", "let me know when the build/deploy/migration finishes", or "send me an iMessage when…".
- Use when the user asks to wire a hook that texts on agent stop,
/loopiteration, or/schedulecompletion. - Use when an agent turn is genuinely long-running and the user has gone heads-down on something else.
- Do not use for short, interactive tasks where the user is watching the terminal — the notify is noise.
Prerequisites
The CLI must be installed and authenticated:
npx @sendblue/cli whoami # confirms creds
# or, if first run:
npx @sendblue/cli setup
The user's phone number must be a verified contact on the account. On the free plan, the contact has to text the Sendblue number once before outbound sends work — confirm with sendblue contacts before relying on notify in an unattended workflow.
Cache the destination number once per project rather than re-asking. A NOTIFY_NUMBER env var or a one-line .notify-number file is fine; defer storage strategy to whatever the surrounding project already does.
How It Works
Step 1: Decide whether notify is appropriate
Notify is for long, unattended work — not chatter. Good triggers:
- Agent turns over ~2 minutes (build, large refactor, migration, dataset crunch).
/loopand/schedulejobs that produce a discrete result.- CI / deploy completion when watched from the terminal.
- Multi-step playbooks where the user has gone heads-down on something else.
Bad triggers (do not silently wire these):
- Every
Stopevent, regardless of duration — produces spam, trains the user to ignore. - Read-only or sub-second commands.
- Anything inside a tight loop.
If the user asks for "notify me when done" on a short task, do the obvious one-shot inline send (Example 1) and do not install a global hook.
Step 2: Pick a delivery pattern
- One-shot inline send — default for a single ad-hoc task. No config changes.
Stophook — opt-in, project-scoped, for sessions the user explicitly wants on automatic notify. Always gate by duration.- End-of-
/loopor/scheduleping — append the send to the routine's body.
Step 3: Compose the notification copy
- One line, under ~140 chars — fits in the lock-screen preview.
- Lead with outcome — ✅/❌, "done", "failed", "needs review".
- Include something actionable — branch name, error tail, PR number, duration.
- No emojis the user didn't ask for beyond a single status glyph.
- No agent self-narration ("I have completed the task as requested" — just say what happened).
Examples
Example 1: One-shot inline send
For a single task, append the send to the command. This is the default — no config changes, no surprise behavior later.
Branch on the task's exit status with an if/else. Do not use a task && send-success || send-failure chain: if the task succeeds but the success-send itself returns non-zero, the || fires the failure message — so the user sees ❌ even though the task completed. The if/else keeps the outcome tied solely to the task.
if long_running_thing; then
npx @sendblue/cli send +15551234567 "✅ done: $(date +%H:%M)"
else
npx @sendblue/cli send +15551234567 "❌ failed: $(date +%H:%M)"
fi
Or, when the result is interesting, include a one-line summary:
RESULT=$(run-migration 2>&1 | tail -1)
npx @sendblue/cli send +15551234567 "migration done — $RESULT"
Example 2: Claude Code Stop hook (opt-in, scoped)
Register a Stop hook in .claude/settings.json (project-scoped) — never in global settings unless asked. Defer the actual file edit to [[update-config]]. The hook command itself should:
- Run cheaply (it fires on every
Stop). - Gate on duration — skip sends for turns under a threshold (e.g. 90s).
- Never fail the parent — pipe to
|| trueso a notify error doesn't surface as a hook failure.
…
常见问题
我的手机上需要安装什么吗?
不需要,通知是从运行任务的电脑发送到你手机号码的。你只需要在电脑上设置好 Sendblue 即可。
我可以自定义消息内容吗?
可以,你可以定义消息内容,让它更有用,例如告知结果,或者附带一些额外信息。
它适用于所有任务吗?
它最适合不需要你时刻关注的长时间任务。对于很快就能完成的任务,通知可能更多是打扰,而不是帮助。
详情
作者的原始描述
Text the user's phone when a long-running task, agent turn, or scheduled job finishes — via @sendblue/cli for outbound, optionally wired to a Claude Code Stop hook for automatic fire.
热度
- GitHub 星标
- 48k
- 排名
- #6295
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。