name = "context7"
description = "On-demand, up-to-date developer documentation for AI agents"
homepage = "https://context7.com"
tools = ["claude"]
scope = "both"

[[artifacts]]
kind = "claude-skill"
name = "find-docs"

[[artifacts]]
kind = "claude-rule"
name = "context7"

[[install]]
id = "npx"
label = "interactive setup (npx ctx7 setup)"
command = "npx ctx7 setup"
interactive = true

[[instructions]]
content = """
To search for code docs, use Context7. 
When the Context7 CLI is needed, invoke it as `npx ctx7 <args>` rather than a bare `ctx7`.
CLI Commands
    ctx7 library <name> <query>: Searches the Context7 index by library name and returns matching libraries with their IDs.
    ctx7 docs <libraryId> <query>: Retrieves documentation for a library using a Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js).
"""
