Skip to content
Back to skills

Twilio

ASecurity

Twilio provides programmable communication tools. This skill details the SMS and Voice APIs, emphasizing webhooks for incoming messages and TwiML for call routing.

  • 13 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
ai-agentsbashapisecurity

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 8 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill twilio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Twilio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Twilio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-twilio/badge)](https://www.skillsdirectory.com/skills/ashish7802-twilio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Twilio API Skill

## Overview
Twilio provides programmable communication tools. This skill details the SMS and Voice APIs, emphasizing webhooks for incoming messages and TwiML for call routing.

## Installation
```bash
npm install twilio
pip install twilio
```

## Authentication
Authenticate using Account SID and Auth Token. Keep these strictly server-side.

## Core Concepts
- **TwiML**: XML-based language that instructs Twilio on how to handle calls and SMS.
- **Message SID**: Unique identifier for tracking message delivery status.

## Common Workflows
1. Instantiate Twilio client.
2. Call `messages.create` with `to`, `from`, and `body`.
3. Poll or use status webhooks to confirm delivery.

## Error Handling
Handle the `TwilioRestException`. Code 21211 means 'Invalid 'To' Phone Number'. Handle gracefully in the UI.

## Security
Validate incoming webhooks using `twilio.validateRequest` to ensure requests actually originated from Twilio.

## Rate Limits
Standard SMS throughput is 1 message per second per long code. Toll-free and short codes have higher limits.

## Best Practices
Use Messaging Services instead of hardcoded numbers to automatically handle compliance, opt-outs, and sender ID rotation.

## Troubleshooting
If international SMS fails, check your Geo-Permissions in the Twilio Console.

## References
- [API Reference](https://www.twilio.com/docs/api)

## Why use this skill
Use this when your agent works with **twilio** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Using outdated SDK or API versions from training data
- Inventing environment variable names
- Omitting error handling and retry logic

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- [`sendgrid`](../sendgrid/SKILL.md) — related to

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md1.9 KB
  • examples/basic.ts39 B
  • examples/example.py71 B
  • examples/example.ts114 B
  • prompts/send-sms.md131 B
  • prompts/system.md41 B
  • tests/skill.test.ts29 B
  • tests/validation.test.ts104 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.