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.
mdr add livekit/agent-skills/testing-livekit-agents@git:20260924.5d7488bPins 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
mdr add livekit/agent-skills/testing-livekit-agents@sha256:18dddabe4f1471ffThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260924.5d7488b latest | 2026-09-24 | 5d7488b | 7,601 B | A | view · diff |
| v1.0.0 | 2026-09-24 | 9018063 | 7,620 B | A | view · diff |
| v1.0.0 | 2026-09-24 | 4305938 | 7,619 B | A | view |
Audit of the latest version
- 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
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
Every file in livekit/agent-skills