writing-livekit-scenarios

writing-livekit-scenarios is a skill for Claude Code from livekit/agent-skills. It costs 178 tokens per session (2,211 once invoked), scanned A, a copy of writing-livekit-scenarios, MIT.

A guide for creating scenario files for LiveKit agent simulations. A scenario describes a simulated user's instructions and what the agent should achieve; the simulation then plays the conversation and evaluates its transcript.

In plain words
What is it for?
Use it to define multi-step conversations, expected outcomes, tags, and test data for an agent simulation.
Why use it?
It turns vague questions about what to test into repeatable conversation cases that can be reviewed and run again. Saved scenarios can reveal regressions after prompt or code changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the livekit plugin — 7 skills shipped together

Good fit Use it to define multi-step conversations, expected outcomes, tags, and test data for an agent simulation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/livekit/agent-skills/writing-livekit-scenarios
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add livekit/agent-skills --skill writing-livekit-scenarios
Clone the repo
git clone --depth 1 https://github.com/livekit/agent-skills

Made for: Claude Code.

Or install livekit, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for writing-livekit-scenarios

README.md
[![agentmods](https://agentmods.dev/badge/skills/livekit/agent-skills/writing-livekit-scenarios/github.svg)](https://agentmods.dev/skills/livekit/agent-skills/writing-livekit-scenarios)
Your own site
<a href="https://agentmods.dev/skills/livekit/agent-skills/writing-livekit-scenarios"><img src="https://agentmods.dev/badge/skills/livekit/agent-skills/writing-livekit-scenarios/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for writing-livekit-scenarios

Your own site · 80×15
<a href="https://agentmods.dev/skills/livekit/agent-skills/writing-livekit-scenarios"><img src="https://agentmods.dev/badge/skills/livekit/agent-skills/writing-livekit-scenarios.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 178 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00178 $0.02211
Opus 5.5 $0.00071 $0.00884
Sonnet 5.5 $0.00036 $0.00442
Haiku 4.5 $0.00018 $0.00221

Measured 10d ago against content hash 07eaf8d56f4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-livekit-scenarios scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to writing-livekit-scenarios — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/writing-livekit-scenarios/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Writing simulation scenarios

A scenario is a simulated user's instructions (who they are, what they want) plus agent_expectations (what counts as success). A simulation plays the scenario against the real agent, and an LLM judge grades the transcript.

Runs are disposable. The scenario file is what lasts: it gets reviewed in diffs, re-run for years, and it's what catches a prompt edit that breaks something without anyone noticing.

Before writing a file, look up the exact schema and CLI flags with reading-livekit-docs. Field names and commands change, so this skill doesn't restate them. Conceptually, a file is a named group of scenarios. Each scenario has the simulated user's instructions, the pass criteria, and optionally tags for grouping and per-scenario data the agent can read at runtime. Commit the ids the CLI adds to the file so runs line up over time.

Start from a generated baseline

If the project already has a scenario file, read it first. The starter templates ship one written for a general-purpose assistant. Once the agent's purpose changes, those scenarios grade the old agent, so rewrite or remove them instead of adding new ones beside them.

Don't start from an empty file. LiveKit's generator reads the agent's source and produces a decent first pass much faster than you'd write ten scenarios by hand:

lk agent simulate text -n 10    # confirm the exact flags with --help

Generating from source uploads the code to LiveKit Cloud so the generator can read it, which is why the CLI asks for confirmation first. Tell the user that before running it and let them decline. Some code can't leave the machine, and in that case you write the scenarios by hand. A flag skips the prompt for non-interactive runs.

When the run finishes, the CLI either tells you where it saved the generated scenarios or offers to save them into the project. Either way, get that file into the repo as the starting point.

You can't steer the generator. It infers intent from the code, so it writes plausible conversations instead of the ones this agent's users have, and it doesn't know what the user is worried about. Treat its output as a draft:

Read the full file on GitHub · 177 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago Changed · +3 lines 07eaf8d56f4e
  2. 2mo ago First seen · 174 lines · 178 tokens per session scan A 6660d0790031

Subscribe to this mod's changes

writing-livekit-scenarios is a skill published in the GitHub repository livekit/agent-skills (78 stars, last pushed 2d ago), licensed MIT. It adds 178 tokens to every session and 2,211 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to writing-livekit-scenarios, differing in 13 lines, and is treated as a copy.

Related

writing-livekit-scenarios compared with skills from other repositories

writing-livekit-scenarios next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
writing-livekit-scenarioslivekit/agent-skillsSkill782d agoMITA178Claude Code
80-livekit-agents-majiayu000-claude-skill-registrmajiayu000/claude-skill-registry-dataSkill31yesterdaynoneA18Claude Code, Codex
80-livekit-agents-panaversity-agentfactory-1f8ecf89majiayu000/claude-skill-registry-dataSkill31yesterdaynoneA18Claude Code, Codex
wenlan-handoffwenlan-app/wenlanSkill502todayApache-2.0A46Claude Code, Codex
system-upgradealivecontext/aliveSkill13212d agoMITA55Claude Code
pr-reviewnitinjain999/platform-skillsSkill73todayApache-2.0A81Claude Code
apex-skillifytonone-ai/tononeSkill842d agoMITA41Claude Code