/jezweb:sub-agent-patternsfrom jezweb
Build conversational AI voice agents with ElevenLabs Platform. Covers agent configuration, tools, knowledge base, SDK integration (React, React Native, Swift), testing, and deployment. Helps troubleshoot deprecated packages, webhook errors, CSP violations, and tool parsing.
Ships in jezweb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build a production-ready conversational AI voice agent. Produces a configured agent with tools, knowledge base, and SDK integration.
npm install @elevenlabs/react # React SDK
npm install @elevenlabs/client # JavaScript SDK (browser + server)
npm install @elevenlabs/react-native # React Native SDK
npm install @elevenlabs/elevenlabs-js # Full API (server only)
npm install -g @elevenlabs/agents-cli # CLI ("Agents as Code")
DEPRECATED: @11labs/react, @11labs/client — uninstall if present.
Server-only warning: @elevenlabs/elevenlabs-js uses Node.js child_process and won't work in browsers. Use @elevenlabs/client for browser environments, or create a proxy server.
Dashboard: https://elevenlabs.io/app/conversational-ai → Create Agent
CLI (Agents as Code):
elevenlabs-cli init my-agent
# Edit agent.config.ts with agent settings
elevenlabs-cli deploy
Configure:
assets/system-prompt-template.mdTools let the agent take actions during conversation:
// Client-side tools (run in browser)
const clientTools = {
navigate: {
description: "Navigate to a page",
parameters: { type: "object", properties: { url: { type: "string" } } },
handler: async ({ url }) => { window.location.href = url; return "Navigated"; }
}
};
// Server-side tools (webhooks)
// Configure in dashboard: Settings → Tools → Add Webhook
See references/tool-examples.md for patterns.
Upload documents for the agent to reference:
React — copy and customise assets/react-sdk-boilerplate.tsx:
import { useConversation } from '@elevenlabs/react';
const { startConversation, stopConversation, status } = useConversation({
agentId: 'your-agent-id',
signedUrl: '/api/elevenlabs/auth',
clientTools,
onEvent: (event) => { /* transcript, agent_response, tool_call */ },
});
React Native — see assets/react-native-boilerplate.tsx
Widget embed — see assets/widget-embed-template.html
Swift — see assets/swift-sdk-boilerplate.swift
# Test locally
elevenlabs-cli test my-agent
# Simulate conversation
elevenlabs-cli simulate my-agent --scenario "Book appointment for tomorrow"
# Deploy
elevenlabs-cli deploy my-agent
Before deploying, run a dry-run first: elevenlabs-cli deploy my-agent --dry-run to review changes.
For conversation simulation, create a JSON test scenario based on assets/simulation-template.json.
Never expose API keys in client code. Use a server endpoint:
// Server endpoint
app.get('/api/elevenlabs/auth', async (req, res) => {
const response = await fetch('https://api.elevenlabs.io/v1/convai/conversation/get-signed-url', {
headers: { 'xi-api-key': process.env.ELEVENLABS_API_KEY },
body: JSON.stringify({ agent_id: 'your-agent-id' }),
method: 'POST'
});
const { signed_url } = await response.json();
res.json({ signed_url });
});
Create version branches for testing different configurations:
Pass user context to the agent's system prompt:
const { startConversation } = useConversation({
agentId: 'your-agent-id',
dynamicVariables: {
user_name: 'John',
account_type: 'premium',
}
});
System prompt references them as {{user_name}}.
assets/react-sdk-boilerplate.tsx — React integration templateassets/react-native-boilerplate.tsx — React Native templateassets/swift-sdk-boilerplate.swift — Swift/iOS templateassets/javascript-sdk-boilerplate.js — Vanilla JS templateassets/widget-embed-template.html — Embeddable widgetassets/system-prompt-template.md — System prompt guideassets/agent-config-schema.json — Config schema referenceassets/ci-cd-example.yml — CI/CD pipeline templatereferences/api-reference.md — Full API endpointsreferences/tool-examples.md — Client and server tool patternsreferences/system-prompt-guide.md — Prompt engineering for agentsreferences/cli-commands.md — CLI referencereferences/workflow-examples.md — End-to-end workflow examplesreferences/testing-guide.md — Testing and simulationreferences/cost-optimization.md — Pricing and optimisationreferences/compliance-guide.md — Data residency and complianceassets/agent-config-schema.json (opens in a new tab)assets/ci-cd-example.yml (opens in a new tab)assets/javascript-sdk-boilerplate.js (opens in a new tab)assets/react-native-boilerplate.tsx (opens in a new tab)assets/react-sdk-boilerplate.tsx (opens in a new tab)assets/simulation-template.json (opens in a new tab)assets/swift-sdk-boilerplate.swift (opens in a new tab)assets/system-prompt-template.md (opens in a new tab)assets/widget-embed-template.html (opens in a new tab)references/api-reference.md (opens in a new tab)references/cli-commands.md (opens in a new tab)references/compliance-guide.md (opens in a new tab)references/cost-optimization.md (opens in a new tab)references/system-prompt-guide.md (opens in a new tab)references/testing-guide.md (opens in a new tab)references/tool-examples.md (opens in a new tab)references/workflow-examples.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ulpi-io/plugin-marketplace --plugin jezweb100 skills in this plugin
/accessibilityAudit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible"./agent-developmentThis skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins./ai-sdk-coretailwind-theme-builder