{"slug": "agent-skill-current-documentation-lookup-using-the-context7-cli", "title": "Agent skill: current documentation lookup using the Context7 CLI.", "summary": "Context7 released a CLI tool for current documentation lookup of libraries, frameworks, SDKs, CLIs, and cloud services. The tool resolves library names and queries their documentation, with a limit of four commands per request. It prioritizes exact name matches, relevant descriptions, and higher source reputation.", "body_md": "| name | find-docs |\n|---|---|\n| description | Current documentation lookup for libraries, frameworks, SDKs, CLIs, and cloud services using Context7. Use when user asks about specific technology's API, configuration, setup, migration, debugging, or CLI usage. Never rely on model knowledge for library-specific APIs—verify against latest documentation first. Prefer this over web search. |\n\nRetrieve current documentation with Context7 CLI.\n\nUpdate CLI first:\n\n```\nnpm install -g ctx7@latest\n```\n\nResolve library, then query its docs.\n\n```\nctx7 library <name> <query>\nctx7 docs <libraryId> <query>\n```\n\nAlways run `ctx7 library`\n\nfirst unless user already provides Context7\nlibrary ID (`/org/project`\n\nor `/org/project/version`\n\n).\n\nLimit to **4 Context7 commands per request**.\n\nUse user's intent to construct a descriptive query.\n\nPrefer:\n\n- exact name matches\n- relevant descriptions\n- higher snippet coverage\n- higher source reputation\n- higher benchmark score\n\nIf user specifies a version, use matching versioned library ID.\n\nIf multiple libraries are plausible, ask for clarification only when necessary. Otherwise pick strongest match ad continue.\n\nUse user's actual question whenever possible.\n\nGood:\n\n```\nHow to clean up async useEffect\nHow to configure JWT auth in Express\n```\n\nBad:\n\n```\nhooks\nauth\n```\n\nIf Context7 reports a quota error, tell the user quota is exhausted.\n\n- Library IDs start with\n`/`\n\n- Resolve before querying\n- Use descriptive queries", "url": "https://wpnews.pro/news/agent-skill-current-documentation-lookup-using-the-context7-cli", "canonical_source": "https://gist.github.com/colinvkim/666de82197e0e7083bc005f49f6be423", "published_at": "2026-06-29 02:57:45+00:00", "updated_at": "2026-07-08 00:57:58.298888+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models", "ai-tools"], "entities": ["Context7"], "alternates": {"html": "https://wpnews.pro/news/agent-skill-current-documentation-lookup-using-the-context7-cli", "markdown": "https://wpnews.pro/news/agent-skill-current-documentation-lookup-using-the-context7-cli.md", "text": "https://wpnews.pro/news/agent-skill-current-documentation-lookup-using-the-context7-cli.txt", "jsonld": "https://wpnews.pro/news/agent-skill-current-documentation-lookup-using-the-context7-cli.jsonld"}}