twilio-sms
Twilio SMS CLI: buy/list/keep numbers, send/check messages, credential routing.
What this skill does
# Twilio SMS Use for Twilio phone-number and SMS work: create/buy numbers, list owned numbers, keep/label numbers, send texts, and check inbound/outbound messages. ## Safety - Never print Account SIDs, auth tokens, API secrets, TOTP codes, or full 1Password item JSON. - Do not store real phone numbers, SIDs, names, or account-specific item IDs in this skill. - Use `$one-password` for secret reads. `op` stays tmux-only. - If desktop 1Password access is needed, unset service-account auth for those commands: `env -u OP_SERVICE_ACCOUNT_TOKEN op ...`. - Print credential shape only: field present, length, prefix class if useful. - Public writes or logs: avoid leaking message bodies unless the user asked to read/check SMS. ## Credential Route 1. Check Twilio CLI/profile: - `twilio --version` or `npx -y twilio-cli --version` - `twilio profiles:list` or `npx -y twilio-cli profiles:list` 2. Check exact env presence only: - `TWILIO_ACCOUNT_SID` - `TWILIO_AUTH_TOKEN` - optional API key/secret vars 3. If only partial env exists, search 1Password metadata first. 4. Prefer an item with fields matching: - `TWILIO_ACCOUNT_SID` - `TWILIO_AUTH_TOKEN` - optional `TWILIO_FROM_NUMBER` 5. If `op` only sees a restricted vault, retry desktop-backed reads with `env -u OP_SERVICE_ACCOUNT_TOKEN`. 6. Verify auth before any purchase/send: ```bash curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID.json" ``` ## CLI Setup Twilio CLI profile creation requires account auth token, not just API key creds: ```bash npx -y twilio-cli profiles:create "$TWILIO_ACCOUNT_SID" \ --auth-token "$TWILIO_AUTH_TOKEN" \ --profile default --force --silent npx -y twilio-cli profiles:use default ``` Use `npx -y twilio-cli` when `twilio` is not installed. ## Numbers List owned: ```bash npx -y twilio-cli api:core:incoming-phone-numbers:list \ --properties phoneNumber,friendlyName,capabilities ``` Search US local SMS-capable inventory: ```bash npx -y twilio-cli api:core:available-phone-numbers:local:list \ --country-code US --sms-enabled --voice-enabled --limit 5 ``` If the CLI shape is awkward or missing flags, use REST: ```bash curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/AvailablePhoneNumbers/US/Local.json?SmsEnabled=true&VoiceEnabled=true&PageSize=5" ``` Buy one candidate: ```bash curl -sS -u "$TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN" \ -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/IncomingPhoneNumbers.json" \ --data-urlencode "PhoneNumber=$PHONE_NUMBER" ``` Verify ownership/capabilities after purchase. Twilio JSON uses lowercase keys: ```text capabilities.sms capabilities.mms capabilities.voice ``` Mark numbers the user wants to keep: ```bash npx -y twilio-cli api:core:incoming-phone-numbers:update \ --sid "$PHONE_NUMBER_SID" \ --friendly-name "KEEP - <purpose>" ``` Retention rule: a number is kept while it remains in the Twilio account and billing is healthy. Do not release/delete unless explicitly asked. ## SMS Send: ```bash npx -y twilio-cli api:core:messages:create \ --from "$FROM_NUMBER" \ --to "$TO_NUMBER" \ --body "$BODY" \ -o json ``` Fetch status: ```bash npx -y twilio-cli api:core:messages:fetch --sid "$MESSAGE_SID" -o json ``` Check inbound to a number: ```bash npx -y twilio-cli api:core:messages:list \ --to "$NUMBER" --limit 20 -o json ``` Check outbound from a number: ```bash npx -y twilio-cli api:core:messages:list \ --from "$NUMBER" --limit 20 -o json ``` Twilio CLI JSON can return an array for single-resource commands. Parse defensively: ```bash jq 'if type=="array" then .[0] else . end' ``` ## Notes - International SMS may show an alphanumeric or carrier sender instead of the purchased US number. - US SMS can be compliance-gated. If sending to US recipients fails, check A2P/10DLC registration state before retrying blindly. - Trial accounts may restrict recipients.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.