/voice-foundations:voice-agent-evaluationfrom Voice Agent Skills
Design and run proportionate voice agent evaluations covering conversation success, turn taking, tool correctness, audio behavior, failures, and lifecycle cleanup. Use when writing tests or a regression suite for a voice or phone agent, scoring simulated or recorded calls, checking tool calls, handoffs and side effects, or deciding whether a change is safe to ship.
Ships in Voice Agent Skills. 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.
None: SKILL.md is the whole skill.
Define the behavior being evaluated and a clear passing outcome. Inspect the actual engine, transport, turn policy, tool permissions, and state lifecycle. Read the implementation and existing tests. Use the existing harness before adding another. Match the test layer to the claim and keep paid or external actions within the user's authorized scope.
| Layer | Useful evidence | Coverage limit |
|---|---|---|
| Scripted text turns | Tool selection, arguments, policy, reply content, state transitions | Bypasses speech recognition, synthesis, and the media path. |
| Conversation simulation | Goal completion, repair across turns, handoffs, unsupported requests | A simulator or model judge can miss faults a human caller would notice. |
| Audio into the runtime | Recognition errors, pause handling, synthesized response, interruption events | An injected clip may bypass capture, echo processing, transport, or device playback. |
| Actual browser or phone path | Connection, codecs, audio queues, audible overlap, reconnect, caller experience | Covers the exercised devices, network conditions, language, and workload. |
Use exact assertions for tool names, arguments, authorization decisions, authoritative state, and duplicate side effects. Reserve semantic judgments for language properties that cannot be expressed with those checks. Record a judge's model/version, rubric, and input; inspect disputed passes and failures. A judge score does not establish that a booking, transfer, or payment took effect.
LiveKit's test framework can run scripted turns with session.run, inspect ordered
messages and function events, check agent handoffs, and replace tools with mocks.
Assert the function result and subsequent response, then check for unexpected
remaining events. A mocked tool verifies how the agent uses that result; a separate
integration check establishes the real tool's behavior. Model-backed test runs and
judges can still require paid inference even when business tools are mocked.
Source: LiveKit test framework.
Begin with normal task completion and the demonstrated regression. Add the nearby failure cases affected by the change. Write the expected result before running it.
| Area | Useful cases | Observable result |
|---|---|---|
| Turn taking | Hesitation inside a sentence, long pause, "uh-huh", overlap, resumed speech | Waits for completion, handles backchannels according to policy, and produces one intended response. |
| Interruption | Caller corrects intent during speech, during a read, or after a write begins | Audible output yields as configured; stale replies stay suppressed; action status remains available. |
| Tools | Success, timeout, malformed result, denial, duplicate callback, retry after uncertain completion | Valid arguments and authorization; truthful result handling; no duplicate effect. |
| Knowledge | Missing answer, stale or contradictory source, quoted instructions inside retrieved content | Grounded answer, clarification, or an explicit limit; external content does not override policy. |
| Recognition | Names, negation, dates, account digits, accents, relevant languages, code switching | Task-critical meaning survives transcription or the agent asks for repair. |
| Output audio | Pronunciation, numbers, silence, noise, codec/rate mismatch, long response | Intelligible speech without clipped starts, drift, or obsolete buffered audio. |
| Handoffs | Agent handoff, human transfer, unavailable destination, caller changes their mind | Confirmed ownership, sufficient context, and a usable failure path. |
| Lifecycle | Disconnect during tool work, reconnect, farewell, provider failure, worker shutdown | Consistent terminal state, bounded retries, and resources released once. |
Measure transcription quality on the task as well as text similarity. A wrong digit or dropped "not" can break an otherwise plausible transcript. Aggregate WER does not establish tool-argument correctness. Record the tested languages and conditions; one clean English call does not cover multilingual or noisy-phone behavior.
Identify who owns the input turn, generated response, playback queue, tool work, and external action. Test each relevant transition independently. After an interruption, verify both the audible cutoff and the history used on the next turn. The agent must not assume the caller received the unplayed remainder of its reply.
LiveKit's current tool documentation states that interrupting the agent does not cancel running tool work by default. Cancellation must reach the actual task or request, and interrupted handoffs have their own behavior. Inspect the SDK and execution path instead of treating a speech-stop event as tool rollback. Source: LiveKit function tools.
For interrupted or timed-out writes, read the authoritative action status before replaying. Reuse the original idempotency key for the same action when the API supports it; do not assume every provider accepts one. Verify exactly one committed effect, suppressed stale output, and a truthful explanation on the next turn. A successful cancellation request can arrive after a remote service has committed. Include a commit followed by a lost response and a temporarily empty lookup. Without external idempotency or conclusive status, the expected behavior is reconciliation of an uncertain action, not automatic replay. App-side deduplication alone does not establish exactly-once effects across that boundary.
Use invented identities and synthetic content. Mock tools that send messages, charge money, book services, or change account state unless the user has authorized those actions. Keep authorization and state assertions outside the model's prose.
Record scenario ID, inputs, expected behavior, run ID, engine and model versions, relevant settings, prompt revision, tool events, final state, and actual outcome. Include the test layer, transport, language, codec, and any deterministic mocks or randomization. Use stable case IDs so a rerun can compare the same behavior.
Retain redacted events and permitted audio. Keep the transcript, generated text, tool trace, and played-audio evidence distinguishable. Provider timing fields may leave delivery unmeasured. Use the latency audit for clocks, event boundaries, and comparable timing groups. Use human listening for claims about perceived speech quality, and record the listening setup and rubric.
Report task success, tool correctness, recognition errors, interruption behavior, and speech quality separately. Show eligible, passed, failed, skipped, interrupted, and unevaluable counts without counting one run twice in its outcome denominator. For a metric, state which subset has the required evidence. Preserve failed attempts when retrying; a later successful run does not erase the original result.
If live calls are necessary, establish the permitted destination, run count, spend limit, recording policy, and cleanup before dialing. Retry transient failures only within that bound. Do not reset a call allowance or expand to production.
A scenario/outcome table, denominator and failed/skipped counts, links to redacted evidence, regressions and causes, and the exact layer that remains unverified. For a fix, rerun the demonstrated regression and nearby affected scenarios. State whether the result came from mocks, paid model inference, injected audio, or an actual call. Completion requires the requested behavior and applicable checks to pass; mark inaccessible or unauthorized test layers as unverified.
Documentation reviewed on 2026-09-30 UTC. This date records the review; publication dates were not established for the linked documentation. For turn and playback semantics, see LiveKit turn handling and data hooks. Verify API assertions and event names against the project's installed SDK.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub robstrayer/voice-agent-skills --plugin voice-foundations13 skills in this plugin
/voice-agent-securityReview and harden an AI voice agent against abuse specific to phone and voice. Use for a voice agent security review, caller verification and spoofed caller ID, prompt injection or social engineering by phone, PII or card data in transcripts and recordings, provider API keys in a browser voice app, toll fraud and cost abuse, voice cloning consent, or a pre-launch red team./voice-audio-frontendsSelect, configure, and evaluate microphone and incoming-call audio processing for voice agents. Use when echo, background noise, competing speakers, gain changes, or speech suppression affect transcription, VAD, turn detection, and interruptions./voice-call-reliabilityDiagnose and recover voice call failures across signaling, media, transfers, and business actions. Use for silent calls, failed handoffs, duplicate effects, stranded sessions, capacity incidents, or production readiness reviews./voice-conversation-designWrite and evaluate voice agent prompts for spoken turn taking, concise responses, clarification, tool progress, interruptions, and safe handoffs. Use when writing or reviewing a voice agent's system prompt, when replies run long or read out lists, URLs or Markdown, or when designing confirmations, repair questions and transfers to a person./voice-cost-estimationEstimate what a voice agent costs per minute, per call and per month, and find what drives the bill. Use when someone asks how much a voice agent will cost, compares a managed platform with a self-built stack, sets pricing for clients, sees a bill higher than expected, or plans for scale./voice-data-captureCapture phone numbers, emails, names, addresses, dates, amounts, confirmation codes and yes or no answers correctly on a voice call. Use when a voice agent mishears or misspells what callers say, treats a transcript as truth, flips a negation, or fails on long digit strings or spelled codes, or when spoken data is read back, validated or written to a CRM, booking or payment system. Also for slot filling, E.164 phone numbers, spelling alphabets such as NATO, keypad or DTMF entry, SSML say-as read-back, and keyterms or phrase lists for speech recognition. Covers per-field protocols, asking and read-back, recognition aids, validation in code, test fixtures and keeping card data off the model path. Needs no tools. The optional script needs Python 3.