本文へスキップ
Skillpedia
自動化48k · #6294

sendblue-cli

できること

このプログラムを使うと、スマートフォン用アプリや複雑なサーバー設定を使わずに、コンピューターから直接テキストメッセージ(SMSとiMessage)を送れます。連絡先の管理やアカウントの設定もできます。

使う場面

  • ✓スマートフォンに、ちょっとしたリマインダーを送りたいとき。
  • ✓長時間かかるタスクが終わったことを通知したいとき。
  • ✓大量のメッセージを自動で送る必要があるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-cli/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/sendblue/sendblue-cli/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“+15551234567に「タスクが完了しました!」というメッセージを送ってください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

まず、コンピューターにプログラムをインストールします。次に、メールアドレスと認証コードを使ってアカウントを設定します。最後に、簡単なコマンドでメッセージを送ったり、履歴を表示したりできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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 sendblue as a CLI/binary or asks to set up the @sendblue/cli package.
  • 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, never 5551234567 or (555) 123-4567.
  • ✅ Run sendblue whoami before unattended batches to fail fast on stale or missing creds.
  • ✅ Re-run setup as 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.

…

よくある質問

特別な電話番号が必要ですか?

いいえ、普段お使いの電話番号を使えます。ただし、送信先の番号はE.164形式(例:+15551234567)で指定する必要があります。

誰にでもメッセージを送れますか?

無料プランでは、送信先の相手が先にあなたのSendblue番号へメッセージを送っている必要があります。その後は、相手に送信できるようになります。

ログイン情報はどこに保存されますか?

認証情報は、コンピューター上の安全なファイル「credentials.json」に保存されます。このファイルは権限が制限されており、自分だけがアクセスできます。

詳細

作者による元の説明

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.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#6294
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル