一键导入
twilio
Manage Twilio SMS, calls, phone numbers and usage via REST API
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage Twilio SMS, calls, phone numbers and usage via REST API
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage Cloudflare zones, DNS records, Workers, Pages and cache via API
Manage Cloudinary media assets, transformations and upload via REST API
Monitor infrastructure, query metrics, manage monitors and events via Datadog API
Manage DigitalOcean droplets, domains, databases, apps and volumes via API v2
Manage Firebase projects, Firestore, Auth users and Hosting via REST API
Manage Intercom conversations, contacts, articles and help center via REST API
| name | twilio |
| description | Manage Twilio SMS, calls, phone numbers and usage via REST API |
| user-invocable | true |
| argument-hint | ["phone number or SID"] |
Connect to the Twilio REST API to manage messages, calls, phone numbers, usage and account info. Pure Ruby, zero gems — stdlib only.
scripts/
├── auth.rb # Basic Auth (account_sid:auth_token) + twilio_request helper (required by all scripts)
├── check_setup.rb # Check if credentials exist (outputs OK or SETUP_NEEDED)
├── save_token.rb # Save and validate Twilio credentials
├── messages.rb # List messages (optional --to or --from filter)
├── message.rb # Get message details by SID
├── send_sms.rb # Send an SMS message (requires confirmation)
├── calls.rb # List calls
├── numbers.rb # List incoming phone numbers
├── account.rb # Get account info
└── usage.rb # Get usage records
ruby ~/.claude/skills/twilio/scripts/check_setup.rb
If the output is OK, proceed to the Flow section.
If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.
Step 1 — Ask the user to get their credentials:
You need your Twilio Account SID and Auth Token. You can find both on the Twilio Console dashboard:
Look for Account SID and Auth Token near the top of the page. Copy both values.
Step 2 — When the user pastes the credentials, save them:
ruby ~/.claude/skills/twilio/scripts/save_token.rb 'ACCOUNT_SID' 'AUTH_TOKEN'
If the script outputs an error, the credentials are invalid. Ask the user to double-check and try again.
If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.
The argument $ARGUMENTS may contain a phone number or message/call SID.
ruby ~/.claude/skills/twilio/scripts/account.rb
Present the account info to the user and ask what they want to do.
List messages:
ruby ~/.claude/skills/twilio/scripts/messages.rb
ruby ~/.claude/skills/twilio/scripts/messages.rb --to '+15551234567'
ruby ~/.claude/skills/twilio/scripts/messages.rb --from '+15559876543'
Get message details:
ruby ~/.claude/skills/twilio/scripts/message.rb MESSAGE_SID
Send SMS (requires user confirmation):
Ask the user to confirm: "Do you want to send an SMS from FROM_NUMBER to TO_NUMBER with this message?" Only execute after a "yes".
ruby ~/.claude/skills/twilio/scripts/send_sms.rb --from '+15551234567' --to '+15559876543' --body 'Hello from hitank!'
List calls:
ruby ~/.claude/skills/twilio/scripts/calls.rb
List phone numbers:
ruby ~/.claude/skills/twilio/scripts/numbers.rb
Get usage records:
ruby ~/.claude/skills/twilio/scripts/usage.rb
If $ARGUMENTS looks like a phone number, search messages with --to or --from that number. If it looks like a message SID (starts with SM), get message details. If it looks like a call SID (starts with CA), mention it.
~/.config/twilio/credentials (outside the repo, never commit)account_sid:auth_tokenhttps://api.twilio.com/2010-04-01