Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use up-to-date library and framework docs via Context7 MCP instead of training data. Activates for setup questions, API references, code examples, or when the user names a framework (e.g. React, Next.js, Prisma).
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 84% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 280% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 71% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 223% | 0% |
| case-09 | ✓→✓ | = Same ✓ | 133% | 0% |
当用户询问库、框架或 API 时,通过 Context7 MCP(工具 resolve-library-id 和 query-docs)获取最新文档,而非依赖训练数据。
/vercel/next.js)。当用户出现以下情况时激活:
当请求依赖于库、框架或 API 的准确、最新行为时,请使用此技能。适用于配置了 Context7 MCP 的所有环境(例如 Claude Code、Cursor、Codex)。
调用 resolve-library-id MCP 工具,参数包括:
Next.js、Prisma、Supabase)。在查询文档之前,必须获取 Context7 兼容的库 ID(格式为 /org/project 或 /org/project/version)。如果没有从此步骤获得有效的库 ID,请勿调用 query-docs。
从解析结果中,根据以下原则选择一个结果:
/org/project/v1.2.0)。调用 query-docs MCP 工具,参数包括:
/vercel/next.js)。限制:每个问题调用 query-docs(或 resolve-library-id)的次数不要超过 3 次。如果 3 次调用后答案仍不明确,请说明不确定性并使用您掌握的最佳信息,而不是猜测。
libraryName: "Next.js"、query: "How do I set up Next.js middleware?" 调用 resolve-library-id。/vercel/next.js)。libraryId: "/vercel/next.js"、query: "How do I set up Next.js middleware?" 调用 query-docs。middleware.ts 示例。libraryName: "Prisma"、query: "How do I query with relations?" 调用 resolve-library-id。/prisma/prisma)。libraryId 和查询调用 query-docs。include 或 select)并附上文档中的简短代码片段。libraryName: "Supabase"、query: "What are the auth methods?" 调用 resolve-library-id。Other measured skills in the registry, with their headline benchmark lift.