context7-docs

作者: upstash

获取任何库、框架、SDK、CLI工具或云服务的最新文档和代码示例。当用户询问特定…时使用。

npx skills add https://github.com/upstash/context7 --skill context7-docs

Context7 Documentation Lookup

Retrieve current documentation and code examples from Context7 using the resolve-library-id and query-docs tools that ship with this extension.

When to use

Reach for these tools whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service. Examples:

  • "How do I configure caching in Next.js 16?"
  • "What's the syntax for Prisma's findMany with relations?"
  • "Show me a working Tailwind v4 install for a Vite app."
  • "How do I rate-limit with @upstash/ratelimit?"

Workflow

  1. Resolve the library ID. Call resolve-library-id with the library name and what to look up in the library's documentation. The tool returns matching libraries with their Context7 IDs (/org/project format), descriptions, snippet counts, and quality scores. Pick the best match — prioritize official sources, name match, and high benchmark scores.
  2. Query the docs. Call query-docs with the chosen library ID and what to look up in the library's documentation, scoped to a single concept — if the question spans multiple distinct concepts, make a separate call per concept with the same library ID, unless the question is about how the concepts interact. The tool returns documentation snippets and code examples.
  3. Answer. Cite the library ID you used and quote code examples verbatim when relevant.

If the user supplies a library ID in /org/project or /org/project/version format directly, skip step 1 and call query-docs immediately.

Constraints

  • Do not call either tool more than 3 times per question.
  • Do not pass API keys, passwords, credentials, personal data, or proprietary code as the query argument — it is sent to the Context7 API.
  • Authentication uses the CONTEXT7_API_KEY environment variable. Get a key at https://context7.com/dashboard if requests fail with an auth error.

来自 upstash 的更多技能

docs
upstash
从Context7检索并查询任何编程库或框架的最新文档和代码示例。在编写依赖于……的代码时使用。
ctx7-cli
upstash
使用ctx7 CLI获取库文档、管理AI编码技能以及配置Context7 MCP。当用户提到“ctx7”或“context7”时激活…
documentation-lookup
upstash
获取当前库的文档和代码示例,而非依赖训练数据。将库名称解析为Context7文档ID,然后查询安装、配置和API参考信息。支持主流框架和库:React、Vue、Svelte、Next.js、Express、Prisma、Supabase、Tailwind等。自动激活以处理安装问题、代码生成请求和框架相关查询。返回版本感知的文档和官方代码...
redis-js
upstash
使用 Upstash Redis JavaScript/TypeScript SDK 进行无服务器 Redis 操作。适用于缓存、会话存储、速率限制、排行榜、全文…
upstash-search-js
upstash
涵盖Upstash Search快速入门、核心概念及TypeScript SDK使用的文档技能入口。当用户询问如何开始使用时…
upstash/search TypeScript SDK
upstash
upstash/search-typescript-sdk — 一个可安装的AI代理技能,由upstash/search-js发布。
upstash
upstash
与任何Upstash TypeScript/JavaScript SDK配合使用,包括Redis、Box、QStash、Workflow、Vector、Search和Ratelimit。当用户正在使用任何……时使用。
upstash-box-js
upstash
使用 @upstash/box TypeScript/JavaScript SDK 处理沙盒云容器,支持 AI 代理、shell、文件系统和 git。在基于 Upstash 构建时使用…