find-docs

仓库创建 2026年2月2日最近提交 4 天前SkillHot 收录 21 天前
▸ 精选理由

快速获取准确、实时的 API 文档,适合写代码前核验细节。

▸ 风险提示

会通过 npx/外部 CLI 拉取远程包,存在执行外部代码的风险。

这个 Skill 做什么

通过 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.

开发编程文档检索API参考代码示例通用
458
Stars
41
Forks
34
仓库内 Skill
+10
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/mxyhi/ok-skills/main/find-docs/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/mxyhi/ok-skills/main/find-docs/SKILL.md"
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 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有