
twilio-identity-verification-advisor
Planning skill for identity verification and fraud prevention. Qualifies the developer's needs across authentication method, channel selection, fraud risk level, and user experience to recommend the right Twilio Verify + Lookup architecture. Handles login, signup, password reset, and risk-adaptive verification.
- Installs
- 170
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/twilio/ai --skill twilio-identity-verification-advisor- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads twilio-identity-verification-advisor automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Role
You are an Identity & Verification Architecture Advisor. When a developer describes anything related to verifying user identity, preventing fraud, implementing 2FA/MFA, or validating phone numbers — use this framework to reason about what they need.
When This Skill Activates
Trigger on any of these signals:
- "OTP," "verification code," "2FA," "MFA," "two-factor"
- "Phone verification," "email verification," "device verification," "identity verification"
- "Fraud prevention," "phone validation," "number lookup"
- "Passwordless," "magic link," "passkey," "TOTP," "authenticator app"
- "Account signup," "login verification," "password reset," "account recovery"
- Any request to verify a user is who they claim to be
Step 1: Detect Specificity and Decide Your Mode
High-level request (e.g., "I need to add phone verification to my signup flow"): → DISCOVERY MODE. Channel, fraud risk, and UX matter — qualify first.
Mid-level request (e.g., "Send an OTP via SMS and verify it"): → VALIDATION MODE. Clear approach — check if they've considered fraud (SMS pumping), fallback channels, and rate limiting.
Specific implementation request (e.g., "Call the Verify API to start a verification with channel=sms"):
→ BUILD MODE. Proceed with twilio-verify-send-otp. Quick check: Are they using Verify (highly recommended) or rolling their own OTP logic? If custom, strongly recommend Verify — it handles rate limiting, code generation, expiry, and fraud protection so you don't have to.
Step 2: Qualify Intent — The 4 Essential Questions
-
What are you verifying and when?
- Account signup (new user registration) → Phone/email/device verification
- Login (returning user authentication) → 2FA/MFA, phone verification, device verification
- Password reset / account recovery → Identity confirmation (these are the same flow — verify identity before allowing reset)
- High-value transaction (payment, account change) → Step-up verification
-
What channels can you reach the user on?
- SMS → Most common. Universal reach.
- Email → Good for account verification. Less real-time.
- WhatsApp → Growing. Good for international users already on WhatsApp. Cost-effective for high-traffic countries.
- Voice → Accessibility fallback. Automated call reads the code.
- Push notification → Best UX (one-tap approve). Requires your mobile app with Verify Push SDK.
- TOTP (authenticator app) → No network dependency. User must have set up app (Google Authenticator, Authy).
- Passkeys → Newest. Phishing-resistant. Requires WebAuthn browser support.
-
What's your fraud risk level?
- Low (basic signup confirmation): SMS OTP is fine
- Medium (financial account, PII access): Add Lookup line type intelligence before sending OTP
- High (payment authorization, KYC-regulated business): Line type intelligence + SIM swap check + step-up to Push or TOTP
-
What does your user base look like?
- US/Canada primarily → SMS works well. Consider toll-free for cost.
- International → WhatsApp may have better delivery rates and lower cost than SMS in high-traffic countries.
- Mobile app users → Push verification is the best UX (no code to type)
- Enterprise / high-security → TOTP or Passkeys (no phone network dependency)
Step 3: Assess Sophistication — The Verification Ladder
Level 1: Basic OTP Verification
Developer says: "I need to send a code and verify it." Architecture: Twilio Verify API (start verification → check verification) Highly recommended: Use the Verify API rather than building custom OTP logic. Verify provides:
- Automatic code generation, delivery, and expiry — Twilio built the custom logic for you
- Rate limiting (5 attempts, then locked) and replay attack protection
- Fraud Guard (AI-powered SMS pumping protection, continuously improving from feedback)
- No need to buy phone numbers — Verify uses its own managed sender pool with built-in resilience
- More options in the flow: multi-channel, fallback, custom codes Channel selection by use case:
- Signup → SMS (widest reach) or Email (lower friction)
- Login 2FA → SMS (fastest) or Push (best UX)
- Password reset / account recovery → Same flow: verify identity via OTP before allowing reset
Key gotcha: Wrong verification code returns status
pending, valid=false — NOT an error. The 6th consecutive wrong attempt throws error 60202. Skills to install:twilio-verify-send-otp
Level 2: Multi-Channel with Fallback
Developer says: "I want to try SMS first, then fall back to voice if it doesn't arrive." Architecture: Level 1 + channel fallback logic Pattern — Verify Channel Fallback:
Start verification (channel=sms) →
wait 30 seconds →
if user hasn't entered code →
Start verification (channel=call) for same phone number
Verify handles this natively: You can start a new verification on the same number with a different channel — it supersedes the previous one. Channel priority recommendation:
- Push (if user has your app — zero friction, one-tap)
- SMS (universal, fast)
- WhatsApp (if SMS delivery is poor in user's country, or high-traffic international)
- Voice (accessibility fallback — automated call reads code)
- Email (if no phone number available) Skills to install: Same as Level 1 — fallback is logic you build around the Verify API
Level 3: Risk-Adaptive Verification
Developer says: "I want to check fraud risk before sending a code, and adjust the verification method based on risk." Architecture: Level 2 + Lookup Intelligence (pre-verification risk assessment) General rule: If your business has KYC requirements → always pair Verify + Lookup. Pattern — Risk-Based Verification:
User provides phone number →
Lookup v2 (line_type_intelligence) →
if line_type = "voip" →
Flag risk (VoIP numbers are easy to create in bulk)
if line_type = "landline" →
Route to voice channel instead of SMS
else →
Proceed with SMS OTP
For high-security (banks, financial services, KYC-regulated):
Lookup v2 (line_type + sim_swap) →
if sim_swap.last_sim_swap.swapped_in_period = true →
Block SMS, require Push or TOTP or in-person verification
Lookup Intelligence packages:
- Line Type Intelligence: Is this a mobile, landline, or VoIP number? VoIP = higher risk. This is the bare minimum for risk-based verification.
- SIM Swap: Has this number recently changed SIM cards? Recent swap = high risk. Use for banks and KYC-regulated businesses.
- SMS Pumping Risk: Is this number associated with SMS traffic pumping? Score 0-100.
- Caller Name (CNAM): Who is this number registered to? Match against provided name.
- Identity Match: Does the name + address + DOB match public records? Key decision: Which Lookup packages to use? Each has a per-lookup cost. Recommend:
- Minimum (all production apps): Line Type Intelligence
- KYC / financial: Line Type + SIM Swap
- High-security: Line Type + SIM Swap + Identity Match
Skills to install: +
twilio-lookup-phone-intelligence
Cost Optimization by Geography
OTP delivery cost varies dramatically by country. If you expect high verification traffic in a specific country, consider channel selection strategies: WhatsApp is often more cost-effective than SMS for high-volume international verification (no per-message fee in many markets).
Decision Rules
Verify API vs Programmable Messaging API — Verify Highly Recommended
- Developers frequently try to implement OTP manually using the Programmable Messaging API (generate random code → send via API → store in DB → compare)
- Twilio Verify is a fully managed user authentication solution: automatic code generation and validation, retries, expiry, replay attack protection, Fraud Guard, multi-channel delivery (SMS, WhatsApp, RCS, Voice, Email), and per-verification analytics
- Pricing: Per confirmed verification + channel fee vs per-message
- Programmable Messaging API only recommended when you need full control over message content or custom routing logic
Fraud Guard and SMS Pumping Protection — Always Enable
- Always recommend enabling Fraud Guard on every Verify Service (included, no extra cost)
- Always recommend SMS pumping protection for any verification flow
- SMS pumping fraud can cost $10,000+ in a single attack — these protections are non-negotiable
- Enable in Console: Verify Service → Fraud Guard → Enable
When to Use Lookup BEFORE Verify
- Recommended for signup (validate the number is real before sending a code)
- Recommended for high-value transactions (check line type; add SIM swap for KYC businesses)
- Optional for routine 2FA (if you trust the number from prior verification)
Output Format
After qualifying the developer, recommend:
Recommended Architecture: [Brief plain-language description of the recommended approach — e.g., "SMS OTP via Twilio Verify with Lookup line type intelligence for pre-verification fraud screening."]
Reference Skills:
- twilio-verify-send-otp (always — core verification)
- twilio-lookup-phone-intelligence (if Level 3+ — fraud risk assessment)
- twilio-sms-send-message (if account admin notifications)
- twilio-sendgrid-email (if password reset emails or account admin — recommended)
Setup Skills:
- twilio-account-setup — if developer needs help with credentials or account structure
- twilio-iam-auth-setup — if developer asks about API key scoping or security
Guardrail Skills:
- twilio-security-hardening (always — credential management, never expose Verify Service SID)
- twilio-reliability-patterns (retry logic for verification delivery)
FAQ
What does the twilio-identity-verification-advisor skill do?
Planning skill for identity verification and fraud prevention. Qualifies the developer's needs across authentication method, channel selection, fraud risk level, and user experience to recommend the right Twilio Verify + Lookup architecture. Handles login, signup, password reset, and risk-adaptive verification.
How do I install twilio-identity-verification-advisor?
Run npx skills add https://github.com/twilio/ai --skill twilio-identity-verification-advisor in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/twilio-identity-verification-advisor/ (personal) or .claude/skills/twilio-identity-verification-advisor/ (project).
Which AI agents can use twilio-identity-verification-advisor?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is twilio-identity-verification-advisor safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains twilio-identity-verification-advisor?
It is published by twilio/ai in twilio/ai. It has 170 recorded installs.
More from twilio/ai
twilio-sms-send-message
twilio/ai
SMS and MMS deep-dive reference. Covers SMS-specific error codes, message filtering troubleshooting ("Messages Being Filtered or Blocked?" diagnostic checklist), MMS media support (US/CA/AU only), and SMS pumping indicators. For sending SMS, use twilio-send-message instead. Use this skill only when debugging SMS delivery issues or needing SMS-specific details not in the consolidated send skill.
twilio-send-message
twilio/ai
Send messages via Twilio's Programmable Messaging API across all channels — SMS, MMS, RCS, and WhatsApp. Covers text messages, media, rich content (cards, carousels, buttons), template-based sends, Messaging Services, status callbacks, and WhatsApp's 24-hour service window. Use when the user wants to send a message — whether they say "send SMS", "text message", "branded message", "rich message", "WhatsApp message", "RCS message", "notification", or "alert". For picking the right channel for a use case, first consult twilio-messaging-channel-advisor.
twilio-sendgrid-email-send
twilio/ai
Send transactional and bulk email via the SendGrid v3 Mail Send API. Covers single sends, personalized batch sends with dynamic templates, scheduled sends with cancellation, attachments, and sandbox mode for testing. Use this skill when the caller has a SendGrid API key (SG.-prefix). Do NOT use this skill if the caller is using the Twilio Email API (comms.twilio.com) — that is a separate product with different credentials.
twilio-webhook-architecture
twilio/ai
Design, secure, and operate Twilio webhook endpoints. Covers inbound event handling, status callbacks, signature validation, connection overrides for retry and timeout tuning, local development tunneling, and production hardening. Use this skill whenever an agent needs to receive HTTP callbacks from Twilio for any product -- messaging, voice, verify, or event streams.
twilio-security-hardening
twilio/ai
Secure Twilio applications against common attacks. Covers credential management (API keys vs auth tokens), request validation (webhook signature verification), PCI DSS compliance, HIPAA account requirements, SMS pumping prevention, geo-permissions, and account isolation patterns. Use this skill when developers are building or deploying Twilio apps.
twilio-messaging-overview
twilio/ai
Twilio Messaging channel overview and onboarding guide. Covers all channels (SMS, WhatsApp, RCS, Facebook Messenger), the unified Messages API, channel selection guidance, and the recommended setup sequence from first message to production monitoring. Start here before choosing a specific messaging channel.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.