documentation-lookup
Use up-to-date library and framework documentation via Context7 MCP instead of training data. Activate when the user asks setup questions, API references, code examples, or names a framework (e.g., React, Next.js, Prisma).
Translation reviewedRead the original Chinese text
通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。
Target: React / Next.js. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Chinese text
Topics in the source
- 文档查询 (Context7)
- 核心概念
- 使用时机
- 工作原理
- 步骤 1:解析库 ID
- 步骤 2:选择最佳匹配
- 步骤 3:获取文档
- 步骤 4:使用文档
当用户询问库、框架或 API 时,通过 Context7 MCP(工具 resolve-library-id 和 query-docs)获取最新文档,而非依赖训练数据。 Context7: 提供实时文档的 MCP 服务器;用于库和 API 的查询,替代训练数据。 resolve-library-id: 根据库名和查询返回 Context7 兼容的库 ID(例如 /vercel/next.js)。 query-docs: 根据给定的库 ID 和问题获取文档和代码片段。务必先调用 resolve-library-id 以获取有效的库 ID。 当用户出现以下情况时激活: 询问设置或配置问题(例如“如何配置 Next.js 中间件?”) 请求依赖于某个库的代码(“编写一个 Prisma 查询用于...”) 需要 API 或参考信息(“Supabase 的认证方法有哪些?”) 提及特定的框架或库(React、Vue、Svelte、Express、Tailwind、Prisma、Supabase 等) 当请求依赖于库、框架或 API 的准确、最新行为时,请使用此技能。适用于配置了 Context7 MCP 的所有环境(例如 Claude Code、Cursor、Codex)。 调用 resolve-library-id MCP 工具,参数包括: libraryName: 从用户问题中提取的库或产品名称(例如 Next.js、Prisma、Supabase)。 query: 用户的完整问题。这有助于提高结果的相关性排名。 在查询文档之前,必须获取 Context7 兼容的库 ID(格式为 /org/project 或 /org/project/version)。如果没有从此步骤获得有效的库 ID,请勿调用 query-docs。 从解析结果中,根据以下原则选择一个结果: 名称匹配: 优先选择与用户询问内容完全匹配或最接近的。 基准分数: 分数越高表示文档质量越好(最高为 100)。 来源信誉: 如果可用,优先选择信誉度为 High 或 Medium 的。 版本: 如果用户指定了版本(例如“React 19”、“Next.js 15”),优先选择列出的特定版本库 ID(例如 /org/project/v1.2.0)。 调用 query-docs MCP 工具,参数包括: libraryId: 从步骤 2 中选择的 Context7 库 ID(例如 /vercel/next.js)。 query: 用户的具体问题或任务。为获得相关片段,请具体描述。 限制:每个问题调用 query-docs(或 resolve-library-id)的次数不要超过 3 次。如果 3 次调用后答案仍不明确,请说明不确定性并使用您掌握的最佳信息,而不是猜测。 使用获取的、最新的信息回答用户的问题。
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- affaan-m/ECC
- Source file
- docs/zh-CN/skills/documentation-lookup/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:50.351Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.