sendblue-notify
Skill này làm gì
Tính năng này gửi tin nhắn văn bản đến điện thoại của bạn khi một tác vụ chạy lâu trên máy tính kết thúc. Nó giống như yêu cầu được thông báo khi điều gì đó quan trọng đã hoàn tất.
Khi nào nên dùng
- ✓Khi bạn bắt đầu một tác vụ mất nhiều thời gian và muốn làm việc khác.
- ✓Khi bạn muốn được thông báo ngay khi một quy trình tự động kết thúc.
- ✓Khi bạn cần biết kết quả của một tác vụ mà không phải nhìn chằm chằm vào màn hình.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-notify/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Nhắn tin cho tôi khi báo cáo hằng tháng được tạo xong.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Tính năng hoạt động bằng cách thiết lập một thông báo sẽ kích hoạt khi một tác vụ cụ thể hoàn thành. Tin nhắn được gửi rất ngắn gọn và cho biết tác vụ thành công hay thất bại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
…
Câu hỏi thường gặp
Tôi có cần cài đặt gì trên điện thoại không?
Không, thông báo được gửi đến số điện thoại của bạn từ máy tính đang chạy tác vụ. Bạn chỉ cần đã thiết lập Sendblue trên máy tính đó.
Tôi có thể chọn nội dung tin nhắn không?
Có, bạn có thể định nghĩa nội dung tin nhắn sao cho hữu ích, cho biết kết quả và có thể kèm thêm một số thông tin bổ sung.
Nó có hoạt động với mọi tác vụ không?
Tốt nhất là dùng cho các tác vụ dài không cần bạn theo dõi liên tục. Với tác vụ ngắn, thông báo có thể gây phiền hơn là hữu ích.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6295
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.