Enhances Claude Code for building with ElevenLabs — voice agents, text-to-speech, speech-to-text, and the full audio AI platform.
This plugin gives Claude deep knowledge of ElevenLabs APIs, SDKs, and best practices so it can help you build voice-powered applications correctly from the start.
- Live documentation — Fetches current ElevenLabs docs from
llms.txtso Claude always has up-to-date API patterns - Anti-pattern detection — Catches common mistakes (hardcoded API keys, missing required params, wrong model selection) before they're committed
- Guided workflows — Skills to scaffold voice agents, add text-to-speech, and test agents with simulated conversations
- Proactive assistance — Detects ElevenLabs-related work and suggests relevant skills automatically
claude plugin install /path/to/elevenlabs-claude-plugin- Install the plugin
- Run
/elevenlabs:initin your project to set up ElevenLabs knowledge - Start building — the plugin will guide you
| Command | Description |
|---|---|
/elevenlabs:init |
Set up ElevenLabs development knowledge for your project |
/elevenlabs:expert-advice |
Review your code against ElevenLabs best practices |
/elevenlabs:update-docs |
Refresh the documentation index from llms.txt |
/elevenlabs:help |
Show available commands and skills |
| Skill | Description |
|---|---|
build-agent |
Scaffold a conversational voice agent (Python, React, or Node.js) |
add-tts |
Add text-to-speech to an existing app with framework detection |
test-agent |
Test voice agents using the Simulate Conversation API |
The plugin includes three hooks that run automatically:
- SessionStart — Checks if the plugin is initialized and warns about stale docs
- UserPromptSubmit — Detects ElevenLabs-related prompts and suggests relevant skills (compound keywords only — no false positives)
- PreToolUse — Scans code edits for common ElevenLabs API anti-patterns
The plugin maintains a local knowledge base (.claude/elevenlabs/knowledge/) with:
- ElevenLabs SDK patterns for Python and JavaScript/TypeScript
- Common pitfalls and anti-patterns (machine-readable for hook consumption)
- Documentation index from
elevenlabs.io/docs/llms.txt
Skills fetch current documentation before generating code, ensuring Claude uses the latest API patterns. If the network is unavailable, the plugin falls back to a bundled snapshot with a staleness warning.
The PreToolUse hook reads pattern definitions dynamically from the knowledge base — no hardcoded patterns. When /elevenlabs:update-docs runs, the patterns stay in sync with the latest SDK.
This plugin follows the same proven architecture as the Wasp Claude Code plugin:
elevenlabs-claude-plugin/
├── .claude-plugin/plugin.json # Plugin metadata
├── commands/ # Slash commands (/elevenlabs:*)
├── hooks/ # Automatic hooks (SessionStart, UserPromptSubmit, PreToolUse)
├── scripts/ # Doc index updater + bundled snapshot
├── skills/ # Guided workflows (build-agent, add-tts, test-agent)
├── general-elevenlabs-knowledge.md # Knowledge base
└── test/ # Unit tests (Vitest)
npm install
npm testMIT