env-doctor
Skill2 starsChanged 8 months agoMITView on GitHub
Twilio development skill: env-doctor
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- abigayleh/claude-workflow-plugintheir own version, first seen Sep 27, 2026
- angelgabrieljacintohuayllasco/clipboard-skillstheir own version, first seen Sep 20, 2026
- YuAICode/ai-skillstheir own version, first seen Jun 7, 2026
- tellmefrankie/ai-investment-skillstheir own version, first seen May 13, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- tellmefrankie/ai-investment-skills★ 20same name
- YuAICode/ai-skills★ 1same name
- abigayleh/claude-workflow-plugin★ 0same name
- angelgabrieljacintohuayllasco/clipboard-skills★ 0same name
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
- event-streamsSkill
- getting-startedSkill
- 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
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Run the diagnostic script:
“Common” is measured: kept by at least 6 in 10 of the 3 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
name: env-doctor description: Diagnose shell and .env credential conflicts. Use when hitting 401 errors, auth failures after switching Twilio accounts, or mysterious environment variable issues.
Environment Doctor
Diagnose shell vs .env conflicts that cause mysterious Twilio auth failures. Run this when:
- A new user clones the repo and gets 401 errors
- API calls fail after switching between Twilio accounts or projects
- Regional routing errors appear unexpectedly
- MCP tools return auth failures but CLI works (or vice versa)
Usage
Run the diagnostic script:
./scripts/env-doctor.shWhat It Checks
| Check | What It Detects |
| 1. Project .env | Missing .env file |
| 2. Credential conflicts | TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER mismatch between shell env and .env file |
| 3. Regional routing | Orphaned TWILIO_REGION/TWILIO_EDGE in shell that silently redirect all API calls to regional endpoints |
| 4. API key auth | TWILIO_API_KEY/TWILIO_API_SECRET mismatch between shell and .env |
| 5. Environment isolation | Whether direnv is installed and .envrc is allowed |
Common Scenarios
New user gets 401 after cloning
They have TWILIO_ACCOUNT_SID from a previous project in their shell. The .env has different credentials. Shell wins → wrong account → 401.
Fix: unset TWILIO_ACCOUNT_SID TWILIO_AUTH_TOKEN or install direnv.
Regional 401 errors
User previously set TWILIO_REGION=au1 for regional testing. They commented it out in .env but the shell still has it. All API calls silently route to AU1 endpoints where US1 credentials fail.
Fix: unset TWILIO_REGION TWILIO_EDGE — commenting out .env lines doesn't unset shell vars.
MCP tools fail but CLI works
The MCP server inherits env at launch. If shell had stale vars when Claude Code started, MCP uses those. CLI reads .env fresh each invocation.
Fix: Restart Claude Code entirely after fixing env vars.
Integration
- Runs automatically before
npm start(viaprestarthook inpackage.json) - Referenced in CLAUDE.md Documentation Protocol section
- Also available via
/preflight(Check 2.8)
Exit Codes
0— Clean (or warnings only)1— Conflicts detected that will cause auth failures
$ARGUMENTS
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.

