Skip to content
MCP Servers
Command

/docs

Look up documentation for any library

BOOST
From plugin
klavis
5.8k1 skill1 agent1 command1 MCP
Install
$ npx -y skills add Klavis-AI/klavis --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/docs

Context preview

What this command does when you run it.

Look up documentation for any library

Command definition

docs.md
description: Look up documentation for any library
argument-hint: <library> [query]

/context7:docs

Fetches up-to-date documentation and code examples for a library.

Usage

/context7:docs <library> [query]
  • **library**: The library name, or a Context7 ID starting with `/`
  • **query**: What you're looking for (optional but recommended)

Examples

/context7:docs react hooks
/context7:docs next.js authentication
/context7:docs prisma relations
/context7:docs /vercel/next.js/v15.1.8 app router
/context7:docs /supabase/supabase row level security

How It Works

1. If the library starts with `/`, it's used directly as the Context7 ID 2. Otherwise, `resolve-library-id` finds the best matching library 3. `query-docs` fetches documentation relevant to your query 4. Results include code examples and explanations

Version-Specific Lookups

Include the version in the library ID for pinned documentation:

/context7:docs /vercel/next.js/v15.1.8 middleware
/context7:docs /facebook/react/v19.0.0 use hook

This is useful when you're working with a specific version and want docs that match exactly.

Ships withklavis

Klavis AI: MCP integration platforms that let AI agents use tools reliably at any scale

Get the whole plugin
Stats
5,807
Stars
564
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
4mo ago
Last commit
1y ago
Created
13h ago
Added

Repo: Klavis-AI/klavis