elevenlabs-sdk-patterns
Installation
SKILL.md
ElevenLabs SDK Patterns
Overview
Production-ready patterns for the ElevenLabs TypeScript and Python SDKs. Covers singleton clients, type-safe TTS wrappers, error classification, retry with a concurrency queue, and multi-tenant client factories. Adopt them incrementally — the singleton client alone fixes the most common mistakes; add error classification and the queue as throughput grows.
The full, copy-ready code for all six patterns lives in references/implementation.md. This file gives the high-level workflow plus the essential skeleton so you can follow it end to end, then drill into the reference for depth.
Prerequisites
@elevenlabs/elevenlabs-jsinstalled (TypeScript) orelevenlabs(Python)ELEVENLABS_API_KEYexported in the environment (never hardcode the key)- Familiarity with async/await patterns and error handling best practices