reading-livekit-docs — Claude Code skill: what it does, how to install
Instructs coding assistants to look up LiveKit APIs, CLI options, and pricing in live docs instead of guessing. Essential before building Realtime AI agents.
npx skills add livekit/agent-skills --skill reading-livekit-docs -a claude-codeWhat reading-livekit-docs does
LiveKit SDKs evolve rapidly. Wrong guesses waste developer time. This skill enforces a verification protocol: before generating code or answering feature questions, the assistant must consult actual documentation rather than relying on its base weights.
Research follows a strict fallback order. The assistant first checks the LiveKit Docs MCP server tools. If those are missing, it runs the lk docs CLI directly in the environment to query changelogs and retrieve page snippets. Web search against docs.livekit.io serves strictly as a last resort, triggering explicit warnings about unverified output.
When prose documentation conflicts with implementation, the skill mandates trusting the installed binary's --help output and working SDK examples over written pages.
What it helps with
- look up current LiveKit SDK signatures and config options
- inspect changelogs to verify feature availability across versions
- locate working integration examples across LiveKit repositories
- check official LiveKit pricing and model provider support
Example prompts for the agent
- Check the LiveKit docs to see what arguments the agent worker expects
- Find an example of agent simulation in the official LiveKit repos
- What changed in LiveKit Agents 1.8 according to the changelog?
How to install reading-livekit-docs
1Skills CLI (Vercel)
npx skills add livekit/agent-skills --skill reading-livekit-docs -a claude-code2Manually: put the files in place
~/.claude/skills/reading-livekit-docs/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/reading-livekit-docs/
1Skills CLI (Vercel)
npx skills add livekit/agent-skills --skill reading-livekit-docs -a codex2Manually: put the files in place
.agents/skills/reading-livekit-docs/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add livekit/agent-skills --skill reading-livekit-docs -a cursor2Manually: put the files in place
.cursor/skills/reading-livekit-docs/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install livekit/agent-skills reading-livekit-docs2Manually: put the files in place
.github/skills/reading-livekit-docs/SKILL.md1Skills CLI (Vercel)
npx skills add livekit/agent-skills --skill reading-livekit-docs -a gemini-cli2Platform CLI
gemini skills install https://github.com/livekit/agent-skills --path skills/reading-livekit-docsManually: put the files in place
.devin/skills/reading-livekit-docs/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add livekit/agent-skills --skill reading-livekit-docs -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about reading-livekit-docs
How to install reading-livekit-docs in Claude Code?
Run npx skills add livekit/agent-skills --skill reading-livekit-docs -a claude-code. The file will be written to ~/.claude/skills/reading-livekit-docs/SKILL.md.
What does reading-livekit-docs do?
It stops LLM hallucinations around LiveKit APIs by forcing the agent to check the LiveKit Docs MCP server or the lk docs CLI tool before answering or writing code.
How does the skill resolve conflicts between documentation and code?
The assistant treats the installed binary's --help output and working SDK samples as the source of truth, ignoring contradictory prose on web pages.
Source text
SKILL.md · MIT
--- name: reading-livekit-docs description: 'Looks up current LiveKit facts (API signatures, CLI flags, config options, model and provider support, SDK changelogs, pricing) from the docs instead of answering from memory. Use whenever a question touches LiveKit specifics: "does LiveKit support X", "what changed in agents 1.8", "what are the arguments to Y", "how much does LiveKit cost", "find an example of Z in the LiveKit repos", or before writing any LiveKit code. Other LiveKit skills load this one first. Covers the LiveKit Docs MCP server and the `lk docs` CLI.' license: MIT metadata: author: livekit --- # Reading LiveKit documentation LiveKit's SDKs change faster than model training data, so anything you remember about a LiveKit API, CLI flag, or default is a guess. Wrong guesses cost time: a wrong flag wastes a run, a wrong signature wastes a build. **Every LiveKit-specific fact you state or put in code should come from a lookup in this session.** That includes facts you're confident about and patterns you've seen in other repos. ## Where to look, in order of preference **1. The LiveKit Docs MCP server.** If its tools are in your session, use them. They're the same source the CLI uses, with less friction. **2. `lk docs`.** Available wherever the LiveKit CLI is installed, with no MCP setup. Use it when the MCP tools aren't there; don't stop to ask the user to install anything first. It can search the docs, fetch pages, search code across LiveKit's repositories, show an SDK's recent changelog, report pricing, and submit feedback. Start with: ```bash lk docs --help lk docs search "agent simulations" ``` Once search has shown you the right page, fetch it. There's machine-readable output if you'd rather parse than read. **3. Web search against `docs.livekit.io`.** Only when neither of the above is available. Tell the user you fell back to it, and mark generated code as unverified. ## How to research - **Search before you read.** Search returns per-page excerpts, which is usually enough to pick the right page. Fetch full pages only once you know which one you need, or you'll fill the context window with pages you don't use. - **Use code search for how, docs for what.** Docs tell you a parameter exists. LiveKit's own examples show how it's called. When a docs page and a working example disagree, go with the example and mention the discrepancy. - **Use the changelog for version questions.** "Is X available yet", "when did Y change", and "why doesn't this argument exist" are answered by the changelog, not search. - **Check the version you're on.** The installed SDK and CLI determine what works, and a documented feature may not exist in the installed version. For any CLI command, `--help` on the installed binary outranks every other source. ## Reporting what you found - **Cite the page** when a decision rests on it, so the user can check you. - **Say when you couldn't verify something.** "I could not confirm this signature against the docs" is useful to the user. A silent guess isn't. - **Mark unverified code.** If you had to write LiveKit code without a lookup, add a comment at the call site saying it's unverified, and say so in your reply. - **Don't invent a flag or parameter to make an example look complete.** An incomplete example with a note is better than a plausible fabrication. ## When the docs are wrong Sometimes a page contradicts the SDK source or the CLI's `--help`. When that happens: - **Go with what runs.** `--help`, the installed SDK's source, and a working example outrank a prose page. Tell the user which one you followed and why. - **Report it** with the docs feedback command, and tell the user you did, so the next person doesn't hit the same error. `lk docs` sometimes warns about version skew when the docs server is a little ahead of the CLI. That's routine and the results are still good. Suggest updating `lk` and keep going. ## Related skills - Building an agent: `building-livekit-agents` - Live-testing one during development: `debugging-livekit-agents` - Unit tests: `testing-livekit-agents` - Simulations: `writing-livekit-scenarios`, `running-livekit-simulations`
© livekit · MIT · livekit/agent-skills