twilio-communications

twilio-communications is a skill for Claude Code, Codex from LiHongwei-cn/lihongwei-cn. It costs 47 tokens per session (10,133 once invoked), scanned A, original, MIT.

A guide to adding Twilio communication features such as text messages, phone calls, WhatsApp messages, and two-factor verification. Twilio is a service developers use to send messages and make calls through code.

In plain words
What is it for?
Use it to send notifications, order updates, alerts, reminders, verification codes, or to build phone menus and other call-based systems.
Why use it?
It helps avoid common communication problems involving phone-number formats, message delivery, carrier filtering, rate limits, and errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to send notifications, order updates, alerts, reminders, verification codes, or to build phone menus and other call-based systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lihongwei-cn/lihongwei-cn/twilio-communications
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LiHongwei-cn/lihongwei-cn --skill twilio-communications
Clone the repo
git clone --depth 1 https://github.com/LiHongwei-cn/lihongwei-cn

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for twilio-communications

README.md
[![agentmods](https://agentmods.dev/badge/skills/lihongwei-cn/lihongwei-cn/twilio-communications/github.svg)](https://agentmods.dev/skills/lihongwei-cn/lihongwei-cn/twilio-communications)
Your own site
<a href="https://agentmods.dev/skills/lihongwei-cn/lihongwei-cn/twilio-communications"><img src="https://agentmods.dev/badge/skills/lihongwei-cn/lihongwei-cn/twilio-communications/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for twilio-communications

Your own site · 80×15
<a href="https://agentmods.dev/skills/lihongwei-cn/lihongwei-cn/twilio-communications"><img src="https://agentmods.dev/badge/skills/lihongwei-cn/lihongwei-cn/twilio-communications.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.10133
Opus 5 $0.00023 $0.05067
Sonnet 5 $0.00009 $0.02027
Haiku 4.5 $0.00005 $0.01013

Measured 9d ago against content hash 84015ea95d49, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

twilio-communications scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mundo-cloud/skills/integration-apis/twilio-communications/SKILL.md · 1,587 lines

How it starts

The opening of the file, as written. The whole thing — 1,587 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.environ["TWILIO_PHONE_NUMBER"]

def validate_e164(self, phone: str) -> bool:
    """Validate phone number is in E.164 format."""
    pattern = r'^\+[1-9]\d{1,14}$'
    return bool(re.match(pattern, phone))

def send_sms(
    self,
    to: str,
    body: str,
    status_callback: str = None
) -> dict:
    """
    Send an SMS message.

    Args:
        to: Recipient phone number in E.164 format
        body: Message text (160 chars = 1 segment)
        status_callback: URL for delivery status webhooks

    Returns:
        Message SID and status
    """
    # Validate phone number format
    if not self.validate_e164(to):
        return {
            "success": False,
            "error": "Phone number must be in E.164 format (+1234567890)"
        }

Read the full file on GitHub · 1,587 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 1,587 lines · 47 tokens per session scan A 84015ea95d49

Subscribe to this mod's changes

twilio-communications is a skill published in the GitHub repository LiHongwei-cn/lihongwei-cn (5 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 10,133 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.