getting-started
Skill2 starsChanged 8 months agoMITView on GitHub
Set up a new Twilio serverless project from scratch. Use when starting a new project, scaffolding directory structure, or configuring deployment.
- Reads credentials
- Installs packages
22 other projects use a version of this.
Adopted by
Most recently taken up by
- orgiggly/claude-plugintheir own version, first seen Sep 23, 2026
- acquia/acquia-skillstheir own version, first seen Aug 31, 2026
- davekilleen/Dextheir own version, first seen Aug 31, 2026
- NVIDIA/xr-aitheir own version, first seen Aug 10, 2026
- CheehooLabs/SpureeSkillstheir own version, first seen Aug 7, 2026
- Duckz289/Pipeline-to-proposal-Plugin-STANDARDtheir own version, first seen Jul 27, 2026
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- davekilleen/Dex★ 492same name
- GoogleCloudPlatform/race-condition★ 234same name
- aivrar/portable-hermes-agent★ 232same name
- NVIDIA/xr-ai★ 93same name
- claude-world/director-mode-lite★ 80same name
- dylantarre/design-system-skills★ 50same name
- crewAIInc/skills★ 44same name
- aks129/HealthClawGuardrails★ 30same name
- ayrshare/ayrshare-social-media-api-claude-plugin★ 19same name
- CheehooLabs/SpureeSkills★ 18same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- adversarial-reviewSkill
- agent-connectSkill
- agent-teams-guideSkill
- agent-testingSkill
- android-sdkSkill
- brainstormSkill
- branded-callingSkill
- callbacksSkill
- compliance-regulatorySkill
- conferenceSkill
- context-engineeringSkill
- context-hubSkill
- conversational-intelligenceSkill
- conversation-relay-referenceSkill
- conversation-relaySkill
- conversationrelaySkill
- conversations-v2Skill
- customer-memorySkill
- deepgramSkill
- deep-validationSkill
- elastic-sip-trunkingSkill
- env-doctorSkill
- event-streamsSkill
- hooks-referenceSkill
- iamSkill
- ios-sdkSkill
- ivr-crawlerSkill
- ivr-migratorSkill
- lookupSkill
- media-streamsSkill
- memory-systemsSkill
- messaging-services-referenceSkill
- messaging-servicesSkill
- messagingSkill
- multi-agent-patternsSkill
- operational-gotchasSkill
- paymentsSkill
- paySkill
- phone-numbersSkill
- proxySkill
- real-time-transcriptionSkill
- recordingsSkill
- segmentSkill
- sendgrid-emailSkill
- sip-byocSkill
- sipSkill
- sync-referenceSkill
- syncSkill
- taskrouter-referenceSkill
- taskrouterSkill
- tdd-workflowSkill
- tool-boundariesSkill
- twilio-cliSkill
- twilio-invariantsSkill
- verify-referenceSkill
- verifySkill
- video-patternsSkill
- videoSkill
- voice-insightsSkill
- voice-referenceSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 111
Before deploying, check you're targeting the right account:
- Very specific: line 146
Add recordings: Use <Start><Recording> in TwiML (see voice skill)
- Very specific: line 147
Add IVR: Use <Gather> for speech/DTMF input (see voice skill)
- Very specific: line 148
Add AI agent: Use <Connect><ConversationRelay> (see conversation-relay skill)
- Very specific: line 149
Add routing: Use TaskRouter for skills-based routing (see taskrouter skill)
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Getting Started with Twilio Serverless
Guide for scaffolding a new Twilio serverless project from an empty directory to first deploy.
Prerequisites
- Node.js 18+
- Twilio account with Account SID and Auth Token
- Twilio CLI:
npm install -g twilio-cli - Serverless plugin:
twilio plugins:install @twilio-labs/plugin-serverless
Project Setup
1. Initialize
mkdir my-twilio-project && cd my-twilio-project
npm init -y
npm install twilio @twilio-labs/serverless-runtime-types2. Create Directory Structure
my-twilio-project/
├── functions/ # Serverless functions (auto-routed as endpoints)
│ └── hello.js # → /hello endpoint
├── assets/ # Static files (HTML, audio, images)
├── .env # Environment variables (never commit)
├── .twiliodeployinfo # Deploy state (auto-generated, gitignore)
└── package.json3. Create .env
# Required for deployment (twilio-run reads these WITHOUT the TWILIO_ prefix)
ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AUTH_TOKEN=your-auth-token
# Also set prefixed versions for your function code
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=your-auth-token
TWILIO_PHONE_NUMBER=+1xxxxxxxxxxImportant: twilio-run (the serverless runtime) reads ACCOUNT_SID and AUTH_TOKEN without the TWILIO_ prefix. If you only have TWILIO_ACCOUNT_SID, deployment fails with "Missing Credentials". Add both versions.
4. Create First Function
// functions/hello.js
// ABOUTME: Simple hello world endpoint for testing deployment
// ABOUTME: Returns JSON greeting — verifies serverless runtime is working
exports.handler = function (context, event, callback) {
const twiml = new Twilio.twiml.VoiceResponse();
twiml.say({ voice: 'Google.en-US-Neural2-F' }, 'Hello from Twilio!');
callback(null, twiml);
};5. Add Scripts to package.json
{
"scripts": {
"start": "twilio serverless:start --live",
"start:ngrok": "twilio serverless:start --ngrok --live --detailed-logs",
"deploy:dev": "twilio serverless:deploy --runtime node22",
"deploy:prod": "twilio serverless:deploy --production --runtime node22"
}
}6. Create .gitignore
node_modules/
.env
.twiliodeployinfoLocal Development
# Start local server (port 3000)
npm start
# Start with ngrok tunnel (required for webhooks)
npm run start:ngrokThe local server auto-reloads on file changes with --live.
First Deploy
npm run deploy:devThis creates a service on your-project-XXXX-dev.twil.io. The output shows your function URLs.
Verify CLI Profile
Before deploying, check you're targeting the right account:
twilio profiles:listThe active profile (marked with *) determines which account gets the deployment.
Function Access Levels
| Suffix | Access | Use Case |
*.js | Public | Webhooks, TwiML endpoints |
*.protected.js | Protected | Callbacks (requires valid Twilio signature) |
*.private.js | Private | Helpers (only callable from other functions) |
Environment Variables in Functions
Access .env values via context:
exports.handler = function (context, event, callback) {
const phoneNumber = context.TWILIO_PHONE_NUMBER;
const client = context.getTwilioClient();
// ...
};context.getTwilioClient() returns an authenticated Twilio REST client using the account credentials.
Common Next Steps
After first deploy:
- Configure webhooks: Point your Twilio phone number's voice/SMS URL to your deployed function
- Add recordings: Use
<Start><Recording>in TwiML (seevoiceskill) - Add IVR: Use
<Gather>for speech/DTMF input (seevoiceskill) - Add AI agent: Use
<Connect><ConversationRelay>(seeconversation-relayskill) - Add routing: Use TaskRouter for skills-based routing (see
taskrouterskill)
Troubleshooting
| Problem | Cause | Fix |
| "Missing Credentials" on deploy | .env has TWILIO_ACCOUNT_SID but not ACCOUNT_SID | Add unprefixed ACCOUNT_SID and AUTH_TOKEN |
| Deploy goes to wrong account | CLI profile mismatch | Run twilio profiles:list, switch with twilio profiles:use <name> |
| Function returns 403 | .protected.js requires Twilio signature | Use .js for public endpoints or call from Twilio |
.twiliodeployinfo conflicts | Deploying to different service | Delete .twiliodeployinfo and redeploy |
| Env vars reset after deploy | serverless:deploy doesn't preserve runtime env vars | Re-set with twilio serverless:env:set after deploy |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

