testing-livekit-agents SKILL.md skillA

testing-livekit-agents from livekit/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add livekit/agent-skills/testing-livekit-agents@git:20260924.5d7488b

Pins git:20260924.5d7488b in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
livekit/agent-skills
Path
skills/testing-livekit-agents/SKILL.md
Versions recorded
3
Latest version
git:20260924.5d7488b, committed Sep 24, 2026
First version recorded
Sep 24, 2026
Size
7,601 bytes
Repository stars
74
License
MIT

Writes turn-level tests for a LiveKit agent in the user''s normal test suite: pytest (Python) or Vitest (Node.js). Use when the user asks to "write tests for my agent", "add a test for this tool", "test the handoff", "pin this bug", "why does my agent test fail", or after building or changing agent behavior that needs regression coverage. Covers the SDK''s test session harness, assertions on messages, tool calls and handoffs, LLM judging of a reply against an intent, mocking tools, multi-turn…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Testing LiveKit agents

Turn-level tests are the cheapest lasting verification an agent can have. They run in the user's
existing suite, in text mode, and they're fast enough for every commit. The framework's helper
names and signatures change, so look them up with `reading-livekit-docs` before writing, and use
the testing docs page for every API detail this skill leaves out.

Every test has the same shape: start a test session with the agent under test, run one user turn,
and assert on the events that turn produced.

## What a test asserts on

A turn produces a sequence of events. A simple turn is one message. A more typical one is a tool
call, its output, maybe a handoff, and then a message. You write the test by walking that sequence
in order, asserting on each event, and then asserting the turn has nothing more.

There are three kinds of assertion, and most of this skill is knowing which one to use.

**Structural** assertions check message roles, that a tool was called, its arguments, what it
returned, and that a handoff to a specific agent happened. They're deterministic and fail for
exactly one reason, so prefer them.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add livekit/agent-skills/testing-livekit-agents@sha256:18dddabe4f1471ff

The line at the top of this page pins the label git:20260924.5d7488b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_qp5oi4a2t6fewu4x.svg)](https://markdownregistry.com/a/art_qp5oi4a2t6fewu4x)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, all committed on Sep 24, 2026.

versioncommittedcommitsizeaudit
git:20260924.5d7488b latest2026-09-24 5d7488b 7,601 BA view · diff
v1.0.02026-09-24 9018063 7,620 BA view · diff
v1.0.02026-09-24 4305938 7,619 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7601 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

livekit/agent-skills · 74 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_qp5oi4a2t6fewu4x
GET https://markdownregistry.com/api/v1/resolve?ref=livekit/agent-skills/testing-livekit-agents
GET https://markdownregistry.com/api/v1/blob/18dddabe4f1471ff05c3f6855ff429df3564367a7dc1f8c5f435ce3cfd8c09d5

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from livekit/agent-skills

AGENTS.md AGENTS.md file
livekit/agent-skills · AGENTS.md
git:20261009.35c95df · audit A · 74 stars
CLAUDE.md CLAUDE.md file
livekit/agent-skills · CLAUDE.md
git:20260204.8434095 · audit B · 74 stars
building-livekit-agents SKILL.md skill
livekit/agent-skills · skills/building-livekit-agents/SKILL.md · Builds voice and chat AI agents with LiveKit Agents and LiveKit Cloud. Use when the user asks to "build a voice agent"…
git:20261021.e1195b4 · audit A · 74 stars
debugging-livekit-agents SKILL.md skill
livekit/agent-skills · skills/debugging-livekit-agents/SKILL.md · Drives a live multi-turn conversation with a LiveKit agent running locally, using `lk agent debugger`. Use when the…
git:20261009.8095b29 · audit A · 74 stars
operating-livekit-agents SKILL.md skill
livekit/agent-skills · skills/operating-livekit-agents/SKILL.md · Deploys and operates a LiveKit agent in production: shipping a version to LiveKit Cloud and rolling it back, secrets…
git:20260924.5d7488b · audit A · 74 stars
reading-livekit-docs SKILL.md skill
livekit/agent-skills · skills/reading-livekit-docs/SKILL.md · Looks up current LiveKit facts (API signatures, CLI flags, config options, model and provider support, SDK changelogs…
git:20260924.5d7488b · audit A · 74 stars
running-livekit-simulations SKILL.md skill
livekit/agent-skills · skills/running-livekit-simulations/SKILL.md · Runs LiveKit agent simulations and acts on the results. Use when the user says "run my simulations", "regression test…
git:20260924.5d7488b · audit A · 74 stars
writing-livekit-scenarios SKILL.md skill
livekit/agent-skills · skills/writing-livekit-scenarios/SKILL.md · Creates and maintains the scenarios a LiveKit agent simulation runs, and wires the agent to consume them. Use when the…
git:20260924.5d7488b · audit A · 74 stars

Every file in livekit/agent-skills

Other files named testing-livekit-agents

testing-livekit-agents SKILL.md skill
fcakyon/claude-codex-settings · plugins/livekit-skills/skills/testing-livekit-agents/SKILL.md · Writes turn-level tests for a LiveKit agent in the user''s normal test suite: pytest (Python) or Vitest (Node.js). Use…
git:20261001.f7836da · audit A · 1,200 stars

Browse by kind, by grade A, or by owner.