/sms8-sms-gateway:send-smsfrom sms8-sms-gateway
Sends SMS messages, OTPs, and configures webhooks via the SMS8 gateway. Useful for phone verification, inbound SMS handling, and checking message inboxes.
Ships in sms8-sms-gateway. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The user has the SMS8 MCP server installed. You can call seven tools to interact with their SMS account, which is powered by their own paired Android phone.
Trigger this skill whenever the user asks to:
| Tool | When to call it |
|---|---|
setup_sms8 | First time — validates the API key, returns devices + config the user can paste into their .env |
send_sms | Single SMS to one number. Returns the message ID. |
send_otp | Generate + send a verification code. 5-minute expiry, 5 attempts default. |
verify_otp | Compare a typed code against the most recent OTP issued to that phone |
get_messages | Recent inbox/sent — for delivery checks and reply flows |
list_devices | Inspect paired phones, pick a sender device |
create_webhook | Register a callback URL for inbound SMS + delivery events |
Always pass phone numbers in E.164 format: + followed by country code + national number, no spaces or dashes. Example: +14155551234. If the user gives you a domestic-format number, ask them for the country.
Call: send_sms
Args: { phone: "+14155551234", message: "Hello from Claude" }
If list_devices returns no devices, the user hasn't paired a phone yet — direct them to https://app.sms8.io/mcp-setup.php for the pairing QR.
send_otp with the user's phone number.verify_otp with the same phone + the typed code.verified: true, mark the phone confirmed and continue.verified: false, check reason — code_mismatch shows remaining attempts; expired or max_attempts means start over with a fresh send_otp.create_webhook with the endpoint URL.X-SMS8-Signature (HMAC-SHA256). Verify the signature in the handler.create_webhook — scaffold the handler from that.The Bearer token is already configured in the MCP server's transport. You do not need to pass an api_key argument in tool calls — the server reads it from the Authorization header. If a tool returns "Missing api_key" or "Invalid api_key", the user needs to update their SMS8_API_KEY environment variable and restart Claude Code.
Call setup_sms8 first — it returns a structured summary with their account info, device list, code samples, and dashboard links. Show the highlights from that response rather than re-listing capabilities from memory.
A common user request is to wrap an existing flow with SMS — e.g. "send an SMS on user registration success" or "add OTP verification to the login route". In these cases:
register, signup, login, password reset, checkout, order_complete, etc., depending on the prompt.setup_sms8's config.base_url (read SMS8_API_KEY from env, don't hardcode the literal key).throw or roll back the parent transaction. Log + continue.If the user has a route like POST /register:
// existing
$user = User::create($input);
$db->commit();
// Add — wrap the success path
$sms8 = getenv('SMS8_API_KEY');
if ($sms8 && !empty($user->phone)) {
@file_get_contents(
'https://app.sms8.io/services/send.php',
false,
stream_context_create(['http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\nAuthorization: Bearer $sms8",
'content' => http_build_query([
'number' => $user->phone,
'message' => "Welcome to {$appName}! Your account is ready.",
]),
]])
);
}
For Node/JS, use fetch to the same endpoint with Authorization: Bearer ${process.env.SMS8_API_KEY}. For Python, requests.post(..., headers={'Authorization': f'Bearer {os.environ["SMS8_API_KEY"]}'}).
Two route changes:
POST /signup — capture phone, then call send_otp (via MCP) instead of fully creating the account. Persist the phone+pending_user in a session, return "code sent".POST /verify-phone — call verify_otp (via MCP). If verified: true, create the account from the session and log them in. If false, render the error using reason and attempts_left from the response.The MCP server enforces rate limits automatically — don't re-implement them in the user's code.
SMS8_API_KEY env var.try/catch that aborts the parent flow when SMS fails. SMS is a side-effect, not a precondition.Authorization: Bearer header or POST body.send_sms returns "No active device". Send the user to https://app.sms8.io/devices.php with the pairing QR.localhost, RFC1918, and link-local addresses are rejected for safety.send_sms should be under ~1600 chars; longer messages are auto-split by the carrier but billed per segment (155 chars each).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (1fancy/sms8-sms-gateway) — no native marketplace selected
npx claudepluginhub p/1fancy-sms8-sms-gatewayOther plugins' skills for the same job