Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

elevenlabs-sdk-patterns

Skill by jeremylongshore

Applies production-ready ElevenLabs SDK patterns for TypeScript and Python. Covers singleton clients, typed TTS wrappers, error classification, retry queues and multi-tenant factories. Aimed at developers building audio AI applications.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install elevenlabs-sdk-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/elevenlabs-sdk-patterns ~/.claude/skills/elevenlabs-sdk-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install elevenlabs-sdk-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives coding assistants a set of production-ready patterns for the ElevenLabs TypeScript and Python SDKs. It covers a singleton client that fails fast when ELEVENLABS_API_KEY is missing, a typed text-to-speech wrapper with named voice presets, and error classification into stable codes with a retryable flag.

Retries run through a p-queue sized to the plan's concurrent-request limit, with exponential backoff and jitter for retryable errors only. A multi-tenant factory keeps one client per tenant in a Map, and a Python async singleton covers non-blocking backends. The skill is written for developers building audio AI applications and teams setting coding standards. Its full code lives in a reference file.

Written from the project's SKILL.md and checked against it.

What it can do

  • Singleton clientCreates one lazily initialized ElevenLabsClient and checks for the API key at startup.
  • Type-safe TTS serviceWraps textToSpeech.convert behind a typed TTSOptions interface and named voice presets.
  • Error classificationMaps SDK errors to ElevenLabsServiceError codes with a retryable flag based on HTTP status.
  • Retry with concurrency queueRoutes calls through p-queue with exponential backoff and jitter for retryable errors.
  • Multi-tenant client factoryKeeps one ElevenLabs client per tenant in a Map so customer API keys stay isolated.
  • Python async serviceMirrors the singleton and streaming-to-file pattern using AsyncElevenLabsClient.

What you need

  • ELEVENLABS_API_KEY set in the environment
  • @elevenlabs/elevenlabs-js installed for TypeScript
  • elevenlabs package installed for Python
  • p-queue for the concurrency queue pattern

Try asking

  • Set up a singleton ElevenLabs client that checks for the API key
  • Add error classification for ElevenLabs API errors in TypeScript
  • Wrap my ElevenLabs TTS calls in a retry queue with backoff

Good to know

  • Only retryable codes are retried; other errors throw immediately
  • The multi-tenant factory is intended for SaaS platforms
  • Queue concurrency should match the plan's concurrent-request limit

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/elevenlabs-sdk-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEdit

  • SKILL.md6 KB
  • references/implementation.md8 KB

Alternatives to elevenlabs-sdk-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

elevenlabs-sdk-patterns: common questions

Which ElevenLabs errors are retried?

Only rate_limited, concurrent_limit, server_error and network_error are retried. auth_failed, quota_exceeded, voice_not_found and invalid_request throw immediately.

Does this skill support Python?

Yes. It includes an async singleton using AsyncElevenLabsClient and a streaming generator for Python backends.

What output format does text-to-speech use by default?

The source says mp3_44100_128 is the default output format for TTS calls.

How do I install elevenlabs-sdk-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is elevenlabs-sdk-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is elevenlabs-sdk-patterns safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to elevenlabs-sdk-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

elevenlabs-sdk-patterns Install

Add to stack

Loading.