Building Livekit Agents
livekit-examples/agent-starter-python
Builds voice and chat AI agents with LiveKit Agents and LiveKit Cloud.
Production-ready Retell AI SDK patterns for voice agent applications.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .claude/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .claude/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .agents/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .agents/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .cursor/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .cursor/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jeremylongshore/tons-of-skills-marketplace.git --path skills/.curated/retellai-sdk-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .gemini/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .gemini/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .github/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .github/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jeremylongshore/tons-of-skills-marketplace retellai-sdk-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/.curated/retellai-sdk-patterns .opencode/skills/retellai-sdk-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "retellai-sdk-patterns" agent skill from https://github.com/jeremylongshore/tons-of-skills-marketplace/tree/main/skills/.curated/retellai-sdk-patterns into .opencode/skills/retellai-sdk-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "retellai-sdk-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
retellai-sdk-patternsProduction-ready Retell AI SDK patterns for voice agent applications.
Retellai SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Production-ready Retell AI SDK patterns for voice agent applications. Use when building production voice agents, implementing retry logic, or establishing patterns. Trigger with phrases like "retell patterns", "voice agent patterns", "retell best practices".
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/code-patterns.md`). Compatibility notes: Designed for Claude Code
It sits in AI & LLM Engineering, covering Speech recognition and synthesis and Error handling. It works with Vercel AI SDK. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadWriteEditFrom allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
npmjs.comdocs.retellai.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
RETELL_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Designed for Claude Code
From compatibility in the SKILL.md frontmatter.
Retellai SDK Patterns loads about 1.2k tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 70 tokens; SKILL.md has 180 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 180 words, ~1,160 tokens.
.claude/skills/retellai-sdk-patterns/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Production-ready patterns for Retell AI: client singletons, typed agent configurations, call management, and error handling.
retellai-install-authretell-sdk installedimport Retell from 'retell-sdk';
let _retell: Retell | null = null;
export function getRetellClient(): Retell {
if (!_retell) {
_retell = new Retell({ apiKey: process.env.RETELL_API_KEY! });
}
return _retell;
}interface AgentConfig {
name: string;
voiceId: string;
prompt: string;
functions?: FunctionConfig[];
maxCallDurationMs?: number;
endCallAfterSilenceMs?: number;
}
async function createAgent(config: AgentConfig) {
const retell = getRetellClient();
const llm = await retell.llm.create({
model: 'gpt-4o',
general_prompt: config.prompt,
functions: config.functions,
});
const agent = await retell.agent.create({
response_engine: { type: 'retell-llm', llm_id: llm.llm_id },
voice_id: config.voiceId,
agent_name: config.name,
max_call_duration_ms: config.maxCallDurationMs || 300000,
end_call_after_silence_ms: config.endCallAfterSilenceMs || 10000,
});
return { agentId: agent.agent_id, llmId: llm.llm_id };
}async function makeCallWithRetry(
fromNumber: string, toNumber: string, agentId: string, maxRetries = 2
) {
const retell = getRetellClient();
for (let attempt = 0; attempt <= maxRetries; attempt++) {
try {
const call = await retell.call.createPhoneCall({
from_number: fromNumber,
to_number: toNumber,
override_agent_id: agentId,
});
return call;
} catch (err: any) {
if (attempt === maxRetries || err.status < 500) throw err;
await new Promise(r => setTimeout(r, 2000 * (attempt + 1)));
}
}
}async function runCallCampaign(
numbers: string[], agentId: string, concurrency = 3, delayMs = 2000
) {
const results: Array<{ number: string; callId?: string; error?: string }> = [];
const queue = [...numbers];
const active = new Set<Promise<void>>();
while (queue.length > 0 || active.size > 0) {
while (active.size < concurrency && queue.length > 0) {
const number = queue.shift()!;
const p = (async () => {
try {
const call = await makeCallWithRetry(process.env.RETELL_PHONE_NUMBER!, number, agentId);
results.push({ number, callId: call.call_id });
} catch (err: any) {
results.push({ number, error: err.message });
}
await new Promise(r => setTimeout(r, delayMs));
})();
active.add(p);
p.finally(() => active.delete(p));
}
if (active.size > 0) await Promise.race(active);
}
return results;
}| Pattern | Use Case | Benefit |
|---|---|---|
| Singleton | All SDK calls | One client instance |
| Typed config | Agent creation | Type safety, defaults |
| Retry wrapper | Call failures | Automatic recovery |
| Campaign manager | Outbound calls | Rate-limited concurrency |
Generate a request identifier at the application edge and persist its state before invoking the Retell SDK. If the network response is lost, retrieve the existing result by that identifier or operator-visible correlation data before attempting another call. Keep retries bounded and limited to operations whose outcome can be established; this prevents a transient client failure from creating multiple customer calls.
Apply in retellai-core-workflow-a for agent building.
© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/.curated/retellai-sdk-patterns of jeremylongshore/tons-of-skills-marketplace.
Open the folder on GitHubat commit cfae287
Retellai SDK Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Retellai SDK Patterns this skilljeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Building Livekit Agentslivekit-examples/agent-starter-python | 264 | 1 repos | ~2.4k | Automated safety check: Notes | MIT | |
| Cline Prompt Cache Ladder CheckOnlyTerp/prompt-cache-skills | 114 | — | ~2k | Automated safety check: Pass | Custom licence | |
| Qv SDK Update Modelstetherto/qvac | 685 | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Reviewing Changerapidaai/voice-ai | 745 | — | ~751 | Automated safety check: Pass | Custom licence | |
| AI SDKvercel-labs/ai-facts | 168 | 20 repos | ~1.2k | Automated safety check: Pass | None |
livekit-examples/agent-starter-python
Builds voice and chat AI agents with LiveKit Agents and LiveKit Cloud.
OnlyTerp/prompt-cache-skills
Verifies how Cline marks Anthropic prompt-cache breakpoints on the wire, then adds a tools breakpoint and tunes the cache TTL in its AI SDK code.
tetherto/qvac
Regenerates SDK model constants from the live QVAC registry and opens a [mod] PR.
rapidaai/voice-ai
Perform an evidence-based review of a fixed change boundary.
vercel-labs/ai-facts
Answer questions about the AI SDK and help build AI-powered features.
mem0ai/mem0
Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.
jeremylongshore/tons-of-skills-marketplace
Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.
jeremylongshore/tons-of-skills-marketplace
Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.
jeremylongshore/tons-of-skills-marketplace
Execute proactive auto-loading: automatically detects and loads agents.md files.
jeremylongshore/tons-of-skills-marketplace
Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.
jeremylongshore/tons-of-skills-marketplace
Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.
jeremylongshore/tons-of-skills-marketplace
Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.
Works with
Categories
Production-ready Retell AI SDK patterns for voice agent applications. Retellai SDK Patterns is an agent skill from jeremylongshore/tons-of-skills-marketplace. Production-ready Retell AI SDK patterns for voice agent applications.
Retellai SDK Patterns fits situations like: building production voice agents; implementing retry logic; establishing patterns; with phrases like retell patterns.
Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a claude-code`. Or copy the skill folder (skills/.curated/retellai-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/retellai-sdk-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a codex`. Or copy the skill folder (skills/.curated/retellai-sdk-patterns in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/retellai-sdk-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill retellai-sdk-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/retellai-sdk-patterns, .gemini/skills/retellai-sdk-patterns, .github/skills/retellai-sdk-patterns and .opencode/skills/retellai-sdk-patterns in your project.
Going by SKILL.md and its folder, Retellai SDK Patterns needs credentials named RETELL_API_KEY. Our summary lists: A credential in RETELL_API_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit. Compatibility (from SKILL.md): Designed for Claude Code.
SKILL.md names 2 domains. As links in the text: npmjs.com and docs.retellai.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Retellai SDK Patterns is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 552 tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Retellai SDK Patterns: Building Livekit Agents (livekit-examples/agent-starter-python, 264 stars), Cline Prompt Cache Ladder Check (OnlyTerp/prompt-cache-skills, 114 stars), Qv SDK Update Models (tetherto/qvac, 685 stars) and Reviewing Change (rapidaai/voice-ai, 745 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.
Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.