agent-debugging
БесплатноБез исполняемых скриптовНе проверенDebug and troubleshoot ElevenLabs conversational AI agents and Twilio calls. Use when diagnosing agent issues, analyzing failed calls, troubleshooting audio…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Agent Debugging Skill
Systematic debugging and troubleshooting framework for ElevenLabs Conversational AI + Twilio integration on the Next Level Real Estate platform. This skill provides diagnostic procedures, root cause analysis techniques, and resolution strategies.
When to Use This Skill
Invoke this skill when you need to:
- ✅ Debug agent configuration issues
- ✅ Analyze failed or poor-quality calls
- ✅ Troubleshoot audio/latency problems
- ✅ Investigate conversation breakdowns
- ✅ Review and interpret error logs
- ✅ Diagnose context injection failures
- ✅ Identify performance bottlenecks
- ✅ Generate diagnostic reports
Debugging Methodology
The 5-Step Debug Process
1. OBSERVE → Gather symptoms and error data
2. REPRODUCE → Confirm issue is consistent
3. ISOLATE → Narrow down to specific component
4. DIAGNOSE → Identify root cause
5. FIX → Implement and verify solution
Common Issues & Solutions
Issue Category 1: Agent Configuration
Problem: Agent Not Starting/Responding
Symptoms:
- Agent status shows "inactive" or "error"
- Conversation fails to start
- No greeting heard on call
- Error: "Agent not found" or "Invalid agent ID"
Diagnostic Steps:
# 1. Check agent exists and is active
Use mcp__elevenlabs__elevenlabs_get_agent with:
{
"agentId": "your_agent_id"
}
# Expected output:
# - status: "active"
# - voiceId: valid voice ID
# - modelId: valid model
# - systemPrompt: non-empty
# 2. Verify voice is valid
Use mcp__elevenlabs__elevenlabs_get_voice with:
{
"voiceId": "voice_from_agent_config"
}
# 3. Check agent configuration file
Read .claude/agents/elevenlabs-agent-manager.md
# Look for:
# - Syntax errors in frontmatter
# - Invalid tool names
# - Malformed YAML
Common Root Causes:
| Root Cause | Symptoms | Solution |
|---|---|---|
| Invalid voice ID | Agent fails to start | Use list_voices to find valid ID |
| Voice not available for TTS | "Voice not supported" error | Select voice with availableForTts: true |
| Empty system prompt | Generic/confused responses | Add detailed system prompt |
| Wrong model ID | "Model not found" error | Use: eleven_flash_v2_5, eleven_turbo_v2_5, or eleven_multilingual_v2 |
| Agent not deployed | "Agent not found" | Re-create agent or verify agent ID |
Fix Template:
// Validate and fix agent configuration
const agentConfig = {
name: "Fixed Lead Qualifier",
voiceId: "21m00Tcm4TlvDq8ikWAM", // Verified valid voice
modelId: "eleven_flash_v2_5", // Verified valid model
greeting: "Hi, this is Sarah from Next Level Real Estate.",
systemPrompt: `[Complete, detailed prompt here]`, // Non-empty
tcpaCompliance: true,
recordingConsent: true
}
// Create new agent with validated config
const agent = await createAgent(agentConfig)
console.log(`Agent created: ${agent.agentId}`)
Problem: Agent Gives Incorrect/Off-Topic Responses
Symptoms:
- Agent doesn't follow system prompt instructions
- Responses are generic or unrelated
- Agent doesn't use injected context
- Agent goes off-topic frequently
Diagnostic Steps:
# 1. Review agent's system prompt
Use mcp__elevenlabs__elevenlabs_get_agent to retrieve full config
# 2. Check if prompt is too vague
# BAD: "You are a helpful assistant"
# GOOD: "You are Sarah, a real estate professional. Your goal is to..."
# 3. Analyze conversation transcript
Use mcp__elevenlabs__elevenlabs_get_conversation with conversationId
# Look for:
# - Agent ignoring prompt instructions
# - Generic responses instead of specific
# - Missing context usage
Root Cause Analysis:
## System Prompt Issues
### Too Vague
❌ "You are helpful"
✅ "You are Sarah, a wholesale real estate buyer. Qualify leads by asking about motivation, timeline, and property condition."
### Missing Constraints
❌ No "WHAT NOT TO DO" section
✅ Include explicit constraints: "DON'T discuss pricing until property details gathered"
### No Examples
❌ Abstract instructions only
✅ Include example conversations showing desired behavior
### Context Not Referenced
❌ Prompt doesn't mention lead data
✅ "You will receive lead data including name, property address, and motivation. Use these naturally."
Fix:
// Update agent with improved prompt
await updateAgent(agentId, {
systemPrompt: `
You are Sarah, a professional real estate investor representative for Next Level Real Estate.
OBJECTIVE:
Qualify motivated sellers in under 3 minutes by gathering property details, assessing motivation, and scheduling viewings.
CONTEXT PROVIDED:
- Lead name and contact info
- Property address
- Estimated value
- Source of inquiry
USE THIS CONTEXT NATURALLY:
"Hi [name], I'm following up on your inquiry about [address]..."
KEY QUESTIONS TO ASK:
1. "What's prompting you to consider selling?"
2. "How soon are you looking to move?"
3. "Can you describe the property's current condition?"
CONVE
Установить agent-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepВложенные файлы
FAQ
Что делает скилл agent-debugging?
Debug and troubleshoot ElevenLabs conversational AI agents and Twilio calls. Use when diagnosing agent issues, analyzing failed calls, troubleshooting audio problems, investigating conversation breakdowns, reviewing error logs, or optimizing underperforming agents. Includes transcript analysis, error diagnosis, and performance troubleshooting.
Как установить скилл agent-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic