sendblue-cli
Skill này làm gì
Chương trình này cho phép bạn gửi tin nhắn văn bản (SMS và iMessage) trực tiếp từ máy tính, không cần ứng dụng điện thoại hay thiết lập máy chủ phức tạp. Nó cũng giúp quản lý danh bạ và thiết lập tài khoản của bạn.
Khi nào nên dùng
- ✓Khi bạn muốn gửi một lời nhắc nhanh đến điện thoại của mình.
- ✓Khi muốn báo cho bạn biết một tác vụ dài đã hoàn thành.
- ✓Khi bạn cần gửi tin nhắn hàng loạt tự động.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-cli/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
“Gửi tin nhắn đến +15551234567 với nội dung “Công việc đã hoàn thành!””
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trước tiên, bạn cài chương trình trên máy tính. Sau đó, bạn thiết lập tài khoản bằng email và mã xác minh. Cuối cùng, bạn dùng các lệnh đơn giản để gửi tin nhắn hoặc xem lịch sử.
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 CLI
Overview
@sendblue/cli is a Node CLI that creates a Sendblue account, provisions an iMessage-enabled number, and sends messages. It is the fastest way to text from a shell, script, or Claude Code hook — no API client, no webhook server, no credentials in env vars. Credentials live at ~/.sendblue/credentials.json (mode 600) and Node.js 18+ is required.
When to Use This Skill
- Use when the user wants to text a phone number from a script, shell, hook, or agent turn (e.g. "text me when X finishes", "ping my phone", "notify on completion").
- Use when the user mentions
sendblueas a CLI/binary or asks to set up the@sendblue/clipackage. - Prefer this skill over [[sendblue-api]] when the work happens in a shell context, one-shot script, cron job, or agent hook.
- Reach for [[sendblue-api]] instead when writing application code that integrates Sendblue, receiving inbound webhooks, or needing features the CLI does not expose (send styles, reactions, group messages, status callbacks, media uploads).
How It Works
Step 1: Install
npm install -g @sendblue/cli # global, exposes `sendblue`
# or one-shot:
npx @sendblue/cli <command>
Step 2: Set up an account
sendblue setup runs interactively by default. For CI/scripts, run it in two phases — the first call sends an 8-digit verification code by email, the second consumes it.
sendblue setup --email you@example.com # sends code
sendblue setup --email you@example.com --code 12345678 \
--company my-co --contact +15551234567 # completes setup
| Flag | Notes |
|---|---|
--email |
Email address |
--code |
8-digit verification code (from the email) |
--company |
Lowercase, hyphens/underscores, 3–64 chars |
--contact |
First contact, E.164 |
Step 3: Send messages
sendblue send +15551234567 'Hello from Sendblue!'
sendblue messages --inbound --limit 20
Phone numbers must be E.164 (+ + country code + digits, no spaces or dashes).
Step 4: Manage contacts and plan
On the free plan, a contact must text your Sendblue number once before outbound sends to that contact will work. After sendblue setup ... --contact +15551234567, have that contact send any text to the printed Sendblue number, then run sendblue contacts to confirm verification.
Command Reference
| Command | Purpose |
|---|---|
sendblue setup |
Create account, verify email, set company name, add first contact |
sendblue login |
Log in to an existing account |
sendblue send <number> <message> |
Send an iMessage |
sendblue messages [--inbound|--outbound] [-n <number>] [-l <count>] |
List recent messages |
sendblue add-contact <number> |
Register a contact |
sendblue contacts |
List contacts and their verification status |
sendblue status |
Account/plan info |
sendblue whoami |
Show current credentials and verify validity |
Examples
Example 1: Notify when a long task finishes
long_running_thing && sendblue send +15551234567 "✅ done: $(date)"
Example 2: Read recent inbound for a specific contact
sendblue messages -n +15551234567 --inbound --limit 50
Example 3: Verify creds are good before a batch send
sendblue whoami || sendblue login
Example 4: Wire to a Claude Code Stop hook
To text yourself at the end of every agent turn, register a Stop hook in settings.json that shells out to sendblue send. Defer the actual hook wiring to [[update-config]] and the trigger logic to [[sendblue-notify]] — this skill only owns the CLI invocation.
Best Practices
- ✅ Use E.164 numbers everywhere.
+15551234567, never5551234567or(555) 123-4567. - ✅ Run
sendblue whoamibefore unattended batches to fail fast on stale or missing creds. - ✅ Re-run
setupas the same OS user that owns~/.sendblue/credentials.json. - ❌ Don't
sudo— it writes creds to root's home and the next non-sudo run won't see them. - ❌ Don't embed creds in env vars when the CLI already reads them from the per-user credentials file.
Limitations
- Outbound-first: there is no built-in webhook server for inbound. Use [[sendblue-api]] webhooks for full inbound handling.
…
Câu hỏi thường gặp
Tôi có cần số điện thoại đặc biệt không?
Không, bạn dùng số điện thoại thông thường, nhưng số người nhận phải theo định dạng E.164 (ví dụ: +15551234567).
Tôi có thể gửi tin nhắn cho bất kỳ ai không?
Với gói miễn phí, người nhận cần đã gửi một tin nhắn đến số Sendblue của bạn trước. Sau đó bạn mới có thể gửi cho họ.
Thông tin đăng nhập của tôi được lưu ở đâu?
Thông tin xác thực được lưu trong một file bảo mật trên máy tính, tên là `credentials.json`, với quyền hạn chế để chỉ bạn có thể truy cập.
Chi tiết
Mô tả gốc của tác giả
Send iMessage and SMS from the shell via the @sendblue/cli npm package — outbound sends, contact management, and account setup with no API client or webhook server required.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6294
- 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.