[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H8QX00JQ44HCPENHT1EVHF":3,"skill-same:01M6H8QX00JQ44HCPENHT1EVHF":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H8QX00JQ44HCPENHT1EVHF","retellai-performance-tuning",null,"Optimize Retell AI API performance with caching, batching, and connection pooling.\nUse when experiencing slow API responses, implementing caching strategies,\nor optimizing request throughput for Retell AI integrations.\nTrigger with phrases like \"retellai performance\", \"optimize retellai\",\n\"retellai latency\", \"retellai caching\", \"retellai slow\", \"retellai batch\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fretellai-pack\u002Fskills\u002Fretellai-performance-tuning\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"tuning","retellai performance tuning","performance tuning","performance","caching strategies","for","implementing","with","trigger","io","ai api","latency","strategies","caching","optimize","use","integrations","api","batch","code","2026-11-10 10:12:30",false,"---\nname: retellai-performance-tuning\ndescription: |\n  Optimize Retell AI API performance with caching, batching, and connection pooling.\n  Use when experiencing slow API responses, implementing caching strategies,\n  or optimizing request throughput for Retell AI integrations.\n  Trigger with phrases like \"retellai performance\", \"optimize retellai\",\n  \"retellai latency\", \"retellai caching\", \"retellai slow\", \"retellai batch\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# Retell AI Performance Tuning\n\n## Overview\nOptimize Retell AI voice agent latency and call quality. Focus on reducing voice-to-voice latency, LLM response time, WebSocket connection management, and agent configuration tuning for natural conversations.\n\n## Prerequisites\n- Retell AI account with API key\n- `retell-sdk` npm package installed\n- WebSocket infrastructure for real-time calls\n- Understanding of voice agent architecture\n\n## Instructions\n\n### Step 1: Optimize Agent LLM Configuration\n```typescript\nimport Retell from 'retell-sdk';\n\nconst retell = new Retell({ apiKey: process.env.RETELL_API_KEY! });\n\n\u002F\u002F Configure agent for low latency\nasync function createOptimizedAgent() {\n  return retell.agent.create({\n    agent_name: 'fast-responder',\n    response_engine: {\n      type: 'retell-llm',\n      llm_id: process.env.RETELL_LLM_ID!,\n    },\n    voice_id: 'eleven_labs_rachel', \u002F\u002F Pre-cached voice\n    language: 'en-US',\n    interruption_sensitivity: 0.8, \u002F\u002F Higher = faster interrupt detection\n    ambient_sound: null,           \u002F\u002F Disable for lower latency\n    responsiveness: 0.9,           \u002F\u002F Higher = responds faster\n    voice_speed: 1.1,              \u002F\u002F Slightly faster speech\n    voice_temperature: 0.3,        \u002F\u002F Lower = more deterministic\n    enable_backchannel: true,      \u002F\u002F \"uh-huh\" for natural flow\n    boosted_keywords: ['appointment', 'schedule', 'callback'],\n  });\n}\n```\n\n### Step 2: Optimize LLM Prompt for Speed\n```typescript\nasync function createOptimizedLLM() {\n  return retell.llm.create({\n    general_prompt: `You are a fast, helpful phone agent.\nRules for speed:\n- Keep responses under 2 sentences\n- Never use filler words\n- Ask one question at a time\n- Confirm details immediately\n- Use short acknowledgments`,\n    begin_message: 'Hi, how can I help you today?',\n    model: 'gpt-4o-mini',     \u002F\u002F Faster than gpt-4o\n    general_tools: [\n      {\n        type: 'end_call',\n        name: 'end_call',\n        description: 'End the call when conversation is complete',\n      },\n      {\n        type: 'custom',\n        name: 'book_appointment',\n        description: 'Book an appointment for the caller',\n        parameters: {\n          type: 'object',\n          properties: {\n            date: { type: 'string' },\n            time: { type: 'string' },\n            name: { type: 'string' },\n          },\n          required: ['date', 'time', 'name'],\n        },\n        url: process.env.BOOKING_WEBHOOK_URL!,\n      },\n    ],\n  });\n}\n```\n\n### Step 3: WebSocket Connection Pooling\n```typescript\nimport WebSocket from 'ws';\n\nconst connectionPool: Map\u003Cstring, WebSocket> = new Map();\n\nasync function getWebSocketConnection(callId: string): Promise\u003CWebSocket> {\n  const existing = connectionPool.get(callId);\n  if (existing?.readyState === WebSocket.OPEN) return existing;\n\n  const ws = new WebSocket(\n    `wss:\u002F\u002Fapi.retellai.com\u002Faudio-websocket\u002F${callId}`,\n    { headers: { Authorization: `Bearer ${process.env.RETELL_API_KEY}` } }\n  );\n\n  return new Promise((resolve, reject) => {\n    ws.on('open', () => {\n      connectionPool.set(callId, ws);\n      resolve(ws);\n    });\n    ws.on('error', reject);\n    ws.on('close', () => connectionPool.delete(callId));\n  });\n}\n```\n\n### Step 4: Call Analytics Caching\n```typescript\nimport { LRUCache } from 'lru-cache';\n\nconst callCache = new LRUCache\u003Cstring, any>({\n  max: 500,  # HTTP 500 Internal Server Error\n  ttl: 1000 * 60 * 15, \u002F\u002F 15 min - completed calls don't change  # 1000: 1 second in ms\n});\n\nasync function getCallDetails(callId: string) {\n  const cached = callCache.get(callId);\n  if (cached) return cached;\n\n  const call = await retell.call.retrieve(callId);\n  if (call.call_status === 'ended') {\n    callCache.set(callId, call); \u002F\u002F Only cache completed calls\n  }\n  return call;\n}\n\nasync function getCallMetrics(callIds: string[]) {\n  const calls = await Promise.all(callIds.map(getCallDetails));\n  return {\n    avgDuration: calls.reduce((s, c) => s + (c.end_timestamp - c.start_timestamp), 0) \u002F calls.length,\n    avgLatency: calls.reduce((s, c) => s + (c.latency_p50 || 0), 0) \u002F calls.length,\n    successRate: calls.filter(c => c.disconnection_reason === 'agent_goodbye').length \u002F calls.length,\n  };\n}\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| High voice latency | Complex LLM prompt | Shorten prompt, use gpt-4o-mini |\n| WebSocket disconnect | Network instability | Implement reconnection logic |\n| Unnatural pauses | Low responsiveness setting | Increase responsiveness to 0.8+ |\n| Missed interrupts | Low sensitivity | Increase interruption_sensitivity |\n\n## Examples\n\n### Latency Monitoring\n```typescript\nretell.on('call_analyzed', (event) => {\n  const latency = event.call_analysis?.latency_p95;\n  if (latency && latency > 1500) {  # 1500 = configured value\n    console.warn(`High latency call ${event.call_id}: ${latency}ms p95`);\n  }\n});\n```\n\n## Resources\n- [Retell AI API Reference](https:\u002F\u002Fdocs.retellai.com\u002Fapi-references)\n- [Retell Agent Configuration](https:\u002F\u002Fdocs.retellai.com\u002Fbuild-agent)\n- [Voice Latency Optimization](https:\u002F\u002Fdocs.retellai.com\u002Foptimize-latency)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale","# Retell AI Performance Tuning\n\n## Overview\nOptimize Retell AI voice agent latency and call quality. Focus on reducing voice-to-voice latency, LLM response time, WebSocket connection management, and agent configuration tuning for natural conversations.\n\n## Prerequisites\n- Retell AI account with API key\n- `retell-sdk` npm package installed\n- WebSocket infrastructure for real-time calls\n- Understanding of voice agent architecture\n\n## Instructions\n\n### Step 1: Optimize Agent LLM Configuration\n```typescript\nimport Retell from 'retell-sdk';\n\nconst retell = new Retell({ apiKey: process.env.RETELL_API_KEY! });\n\n\u002F\u002F Configure agent for low latency\nasync function createOptimizedAgent() {\n  return retell.agent.create({\n    agent_name: 'fast-responder',\n    response_engine: {\n      type: 'retell-llm',\n      llm_id: process.env.RETELL_LLM_ID!,\n    },\n    voice_id: 'eleven_labs_rachel', \u002F\u002F Pre-cached voice\n    language: 'en-US',\n    interruption_sensitivity: 0.8, \u002F\u002F Higher = faster interrupt detection\n    ambient_sound: null,           \u002F\u002F Disable for lower latency\n    responsiveness: 0.9,           \u002F\u002F Higher = responds faster\n    voice_speed: 1.1,              \u002F\u002F Slightly faster speech\n    voice_temperature: 0.3,        \u002F\u002F Lower = more deterministic\n    enable_backchannel: true,      \u002F\u002F \"uh-huh\" for natural flow\n    boosted_keywords: ['appointment', 'schedule', 'callback'],\n  });\n}\n```\n\n### Step 2: Optimize LLM Prompt for Speed\n```typescript\nasync function createOptimizedLLM() {\n  return retell.llm.create({\n    general_prompt: `You are a fast, helpful phone agent.\nRules for speed:\n- Keep responses under 2 sentences\n- Never use filler words\n- Ask one question at a time\n- Confirm details immediately\n- Use short acknowledgments`,\n    begin_message: 'Hi, how can I help you today?',\n    model: 'gpt-4o-mini',     \u002F\u002F Faster than gpt-4o\n    general_tools: [\n      {\n        type: 'end_call',\n        name: 'end_call',\n        description: 'End the call when conversation is complete',\n      },\n      {\n        type: 'custom',\n        name: 'book_appointment',\n        description: 'Book an appointment for the caller',\n        parameters: {\n          type: 'object',\n          properties: {\n            date: { type: 'string' },\n            time: { type: 'string' },\n            name: { type: 'string' },\n          },\n          required: ['date', 'time', 'name'],\n        },\n        url: process.env.BOOKING_WEBHOOK_URL!,\n      },\n    ],\n  });\n}\n```\n\n### Step 3: WebSocket Connection Pooling\n```typescript\nimport WebSocket from 'ws';\n\nconst connectionPool: Map\u003Cstring, WebSocket> = new Map();\n\nasync function getWebSocketConnection(callId: string): Promise\u003CWebSocket> {\n  const existing = connectionPool.get(callId);\n  if (existing?.readyState === WebSocket.OPEN) return existing;\n\n  const ws = new WebSocket(\n    `wss:\u002F\u002Fapi.retellai.com\u002Faudio-websocket\u002F${callId}`,\n    { headers: { Authorization: `Bearer ${process.env.RETELL_API_KEY}` } }\n  );\n\n  return new Promise((resolve, reject) => {\n    ws.on('open', () => {\n      connectionPool.set(callId, ws);\n      resolve(ws);\n    });\n    ws.on('error', reject);\n    ws.on('close', () => connectionPool.delete(callId));\n  });\n}\n```\n\n### Step 4: Call Analytics Caching\n```typescript\nimport { LRUCache } from 'lru-cache';\n\nconst callCache = new LRUCache\u003Cstring, any>({\n  max: 500,  # HTTP 500 Internal Server Error\n  ttl: 1000 * 60 * 15, \u002F\u002F 15 min - completed calls don't change  # 1000: 1 second in ms\n});\n\nasync function getCallDetails(callId: string) {\n  const cached = callCache.get(callId);\n  if (cached) return cached;\n\n  const call = await retell.call.retrieve(callId);\n  if (call.call_status === 'ended') {\n    callCache.set(callId, call); \u002F\u002F Only cache completed calls\n  }\n  return call;\n}\n\nasync function getCallMetrics(callIds: string[]) {\n  const calls = await Promise.all(callIds.map(getCallDetails));\n  return {\n    avgDuration: calls.reduce((s, c) => s + (c.end_timestamp - c.start_timestamp), 0) \u002F calls.length,\n    avgLatency: calls.reduce((s, c) => s + (c.latency_p50 || 0), 0) \u002F calls.length,\n    successRate: calls.filter(c => c.disconnection_reason === 'agent_goodbye').length \u002F calls.length,\n  };\n}\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| High voice latency | Complex LLM prompt | Shorten prompt, use gpt-4o-mini |\n| WebSocket disconnect | Network instability | Implement reconnection logic |\n| Unnatural pauses | Low responsiveness setting | Increase responsiveness to 0.8+ |\n| Missed interrupts | Low sensitivity | Increase interruption_sensitivity |\n\n## Examples\n\n### Latency Monitoring\n```typescript\nretell.on('call_analyzed', (event) => {\n  const latency = event.call_analysis?.latency_p95;\n  if (latency && latency > 1500) {  # 1500 = configured value\n    console.warn(`High latency call ${event.call_id}: ${latency}ms p95`);\n  }\n});\n```\n\n## Resources\n- [Retell AI API Reference](https:\u002F\u002Fdocs.retellai.com\u002Fapi-references)\n- [Retell Agent Configuration](https:\u002F\u002Fdocs.retellai.com\u002Fbuild-agent)\n- [Voice Latency Optimization](https:\u002F\u002Fdocs.retellai.com\u002Foptimize-latency)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale",{"name":5,"author":43,"license":14,"version":44,"description":45,"allowed-tools":46,"compatible-with":47},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize Retell AI API performance with caching, batching, and connection pooling.\nUse when experiencing slow API responses, implementing caching strategies,\nor optimizing request throughput for Retell AI integrations.\nTrigger with phrases like \"retellai performance\", \"optimize retellai\",\n\"retellai latency\", \"retellai caching\", \"retellai slow\", \"retellai batch\".\n","Read, Write, Edit","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fretellai-pack\u002Fskills\u002Fretellai-performance-tuning",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add micsapp\u002Fmicstec-skills --skill retellai-performance-tuning",{"tool":61,"command":62},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill retellai-performance-tuning",{"tool":64,"command":65},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill retellai-performance-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fretellai-pack\u002Fskills\u002Fretellai-performance-tuning\u002FSKILL.md",true,[],[70,94,114,133,151,176],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,35,86,87,88,89,90,91,30,92,93,23],"architecture","azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","team","environment","multi-environment","workspaces","instances","selection","azure api management","mode",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[],[101,102,103,104,78,105,37,106,107,108,109,110,35,86,30,111,112,92,113,24],"deployment","apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[],[121,122,123,124,78,81,35,86,125,33,126,127,128,129,130,92,131,132,24,23],"policy","authoring","apim policy authoring","security","access","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[],[140,124,141,35,127,142,78,101,143,144,145,146,86,147,92,148,149,150,93,23],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[158,159,160,103,161,162,163,164,35,165,166,167,168,169,170,171,172,173,174,175],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","edit","list","view","project","project work","token","line","sprints",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[178,183,184,185,186,187,188,33,189,190],"npm","js","calculate","node","math","user","compute","errors"]