docs/zh-CN/skills/documentation-lookup/SKILL.md
通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。
npx skillsauth add affaan-m/everything-claude-code documentation-lookupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
当用户询问库、框架或 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。data-ai
Run team-based orchestration for agent squads using work items, ownership, agent Kanban, merge gates, and control pane handoffs.
data-ai
Design task-local harnesses, eval gates, and reusable skill extraction for Claude dynamic workflow mode and other adaptive agent harnesses.
development
React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.
tools
React and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organizes 70+ rules across 8 priority categories — waterfalls, bundle size, server-side, client fetching, re-render, rendering, JS micro-perf, advanced. Use when writing, reviewing, or refactoring React/Next.js code for performance.