twilio-communications
Build communication features with Twilio: SMS messaging, voice calls, WhatsApp Business API, and user verification (2FA). Covers the full spectrum from simple notifications to complex IVR systems and multi-channel authentication."
npx skills add sickn33/agentic-awesome-skills --skill twilio-communications --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Provides a Twilio-focused toolkit for SMS delivery, verification (2FA), IVR/Voicemail flows using TwiML, and WhatsApp messaging, covering notifications, authentication, and multi-channel interactions.
How it works
- SMS pattern shows sending via Twilio Client, validating E.164 numbers, and computing message segments; returns success with message_sid and status or an error mapped from TwilioRestException.
- Twilio Verify pattern implements a verification flow with a service SID, ability to send_verification via a chosen channel (SMS, call, email, or WhatsApp), and check_verification to validate codes; errors map to specific codes.
- TwiML IVR pattern builds a basic IVR using Flask routes and TwiML verbs (<Say>, <Play>, <Gather>, <Dial>, <Record>, <Redirect>), including a validation decorator for Twilio requests and outbound call examples.
- WhatsApp pattern outlines sending WhatsApp messages using the same Messages API as SMS with WhatsApp-specific rules and number formats; initializes a Twilio Client for sending messages.
When to use it
- Use SMS pattern for user notifications, transactional messages, and alerts; respects default rate limits and segmentation behavior.
- Use Twilio Verify for phone number verification at signup, 2FA, and high-security flows, with multi-channel support.
- Use TwiML IVR to build phone menu systems, automated support, and appointment confirmations with voicemail and transcription hooks.
- Use WhatsApp pattern for customer support, order notifications with templates, and interactive flows with rich media.
What it can touch
- Twilio REST API via the Python Client (twilio.rest import Client)
- Environment variables for credentials and numbers (TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER, TWILIO_VERIFY_SID, TWILIO_WHATSAPP_NUMBER)
- Webhook endpoints for status callbacks and TwiML endpoints
- Web framework components (Flask) for IVR routing
Caveats
- Critical risk level stated; be mindful of compliance, rate limits, and error handling requirements.
- Anti-pattern notes warn against poor validation, hardcoded credentials, and missing delivery callbacks.
- Specific error mappings for common TwilioRestException codes are provided in the SMS and Verify sections.
# Twilio Communications Build communication features with Twilio: SMS messaging, voice calls, WhatsApp Business API, and user verification (2FA). Covers the full spectrum from simple notifications to complex IVR systems and multi-channel authentication. Critical focus on compliance, rate limits, and error handling. ## Patterns ### SMS Sending Pattern Basic pattern for sending SMS messages with Twilio. Handles the fundamentals: phone number formatting, message delivery, and delivery status callbacks. Key considerations: - Phone numbers must be in E.164 format (+1234567890) - Default rate limit: 80 messages per second (MPS) - Messages over 160 characters are split (and cost more) - Carrier filtering can block messages (especially to US numbers) **When to use**: Sending notifications to users,Transactional messages (order confirmations, shipping),Alerts and reminders from twilio.rest import Client from twilio.base.exceptions import TwilioRestException import os import re class TwilioSMS: """ SMS sending with proper error handling and validation. """ def __init__(self): self.client = Client( os.environ["TWILIO_ACCOUNT_SID"], os.environ["TWILIO_AUTH_TOKEN"] ) self.from_number = os.envir
- Patterns
- SMS Sending Pattern
- Antipatterns
- Twilio Verify Pattern (2FA/OTP)
- TwiML IVR Pattern
- WhatsApp Business API Pattern
- Webhook Handler Pattern
- Rate Limit and Retry Pattern
- Sharp Edges
- Sending to Users Who Opted Out (Error 21610)
- Track opt-out status in your database
- Include opt-out instructions
- Phone Unreachable But Valid (Error 30003)
- Implement retry logic for transient failures
What does the twilio-communications skill do?
Build communication features with Twilio: SMS messaging, voice calls, WhatsApp Business API, and user verification (2FA). Covers the full spectrum from simple notifications to complex IVR systems and multi-channel authentication."
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill twilio-communications --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.