Skip to content

About

Claude Code plugin for ElevenLabs — voice agents, TTS, STT, and the full audio AI platform

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

ElevenLabs Plugin for Claude Code

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.

What It Does

  • Live documentation — Fetches current ElevenLabs docs from llms.txt so 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

Installation

claude plugin install /path/to/elevenlabs-claude-plugin

Quick Start

  1. Install the plugin
  2. Run /elevenlabs:init in your project to set up ElevenLabs knowledge
  3. Start building — the plugin will guide you

Commands

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

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

Hooks

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

How It Works

Knowledge Base

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

Live Doc Fetching

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.

Anti-Pattern Detection

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.

Architecture

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)

Development

npm install
npm test

License

MIT

About

Claude Code plugin for ElevenLabs — voice agents, TTS, STT, and the full audio AI platform

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages