AgentSkillsCN

uni-twilio

通过 uni CLI 实现 Twilio 短信消息传递。当用户希望发送短信、查询短信状态,或列出已发送的短信时,可使用此功能。 需配置 TWILIO_ACCOUNT_SID、TWILIO_AUTH_TOKEN 以及 TWILIO_PHONE_NUMBER。

SKILL.md
--- frontmatter
name: uni-twilio
description: |
  Twilio SMS messaging via uni CLI. Use when user wants to send SMS, check message status, or list sent messages.
  Requires TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and TWILIO_PHONE_NUMBER.
allowed-tools: Bash(uni:*), Bash(~/.local/bin/uni:*)

Twilio (uni)

Send and manage SMS messages from the terminal.

Authentication

bash
uni twilio auth <ACCOUNT_SID> <AUTH_TOKEN> -p +15551234567
uni twilio auth --status              # Check configuration
uni twilio auth --logout              # Remove credentials

# Or use environment variables
export TWILIO_ACCOUNT_SID="ACxxx"
export TWILIO_AUTH_TOKEN="xxx"
export TWILIO_PHONE_NUMBER="+15551234567"

Get credentials from: https://console.twilio.com

Send SMS

bash
uni twilio send +15559876543 "Hello from uni CLI!"
uni twilio send +15559876543 "Meeting at 3pm" -f +15551111111  # Custom from number

List Messages

bash
uni twilio messages              # List recent messages
uni twilio messages -n 50        # More messages
uni twilio messages SMxxxxxxx    # View specific message details

Notes

  • Phone numbers must include country code (+1 for US)
  • From number must be a Twilio phone number in your account
  • Message SIDs shown in output as [SMxxx]
  • Status: queued → sent → delivered (or failed)