find-docs
快速获取准确、实时的 API 文档,适合写代码前核验细节。
会通过 npx/外部 CLI 拉取远程包,存在执行外部代码的风险。
通过 ctx7 CLI 检索并返回最新库/框架的文档与示例代码。
通过 ctx7 CLI 检索并返回最新的库/框架文档与示例代码,适合查 API 语法、配置选项、版本迁移或解决特定库的用法疑问。遇到像 React、Next.js、Prisma 这类具体库问题,或怀疑训练数据已过期时就用。特点是实时抓取权威文档和示例,不靠记忆回答具体 API 细节。
▸ 展开 SKILL.md 英文原文
Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates. Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool usage. Use even when you think you know the answer — do not rely on training data for API details, signatures, or configuration options as they are frequently outdated. Always verify against current docs. Prefer this over web search for library documentation and API details.
帮我安装这个 skill:https://raw.githubusercontent.com/mxyhi/ok-skills/main/find-docs/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/mxyhi/ok-skills/main/find-docs/SKILL.md"# Documentation Lookup Retrieve current documentation and code examples for any library using the Context7 CLI. Run commands with `npx ctx7@latest` so setup always uses the latest CLI without a global install: ```bash npx ctx7@latest library <name> "<query>" npx ctx7@latest docs <libraryId> "<query>" ``` Optionally install globally if you prefer a bare `ctx7` command: ```bash npm install -g ctx7@latest ``` ## Workflow Two-step process: resolve the library name to an ID, then query docs with that ID. ```bash # Step 1: Resolve library ID npx ctx7@latest library <name> "<query>" # Step 2: Query documentation npx ctx7@latest docs <libraryId> "<query>" ``` You MUST call `library` first