用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill looking-up-docs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | looking-up-docs |
| description | Library documentation via Context7. Use for API references, code examples, framework docs. |
| allowed-tools | ["Read","Grep","Glob","mcp__context7__resolve-library-id","mcp__context7__query-docs"] |
Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.
mcp__context7__resolve-library-id with libraryNamemcp__context7__query-docs with context7CompatibleLibraryID and topic| Mode | Use For |
|---|---|
code | API references, code examples (default) |
info | Conceptual guides, architecture, tutorials |
# React hooks
resolve-library-id: "react"
get-library-docs: context7CompatibleLibraryID="/facebook/react", topic="hooks", mode="code"
# Next.js middleware
resolve-library-id: "next.js"
get-library-docs: context7CompatibleLibraryID="/vercel/next.js", topic="middleware"
# Go net/http
resolve-library-id: "go net/http"
get-library-docs: context7CompatibleLibraryID="/golang/go", topic="http server"
# Kubernetes API
resolve-library-id: "kubernetes"
get-library-docs: context7CompatibleLibraryID="/kubernetes/kubernetes", topic="deployment"
Be specific with queries:
topic="hooks" → returns everything hook-relatedtopic="useEffect cleanup function" → precise resultsFilter strategies:
topic with function/method names: topic="json.Unmarshal"libraryName="react 18"topic="middleware error handling"When results are too broad:
topic parametermode="code" to focus on examplespage=2, page=3 for additional resultsQuality check:
When Context7 returns no results or doesn't have the library:
Context7 query returns empty?
├── Try broader query (e.g., "hooks" instead of "useCallback")
├── Still empty?
│ ├── Re-resolve library ID with alternative name
│ │ (e.g., "nextjs" → "next.js", "golang" → "go")
│ └── Still empty?
│ ├── Library not indexed → Use fallbacks below
│ └── Very niche library → WebSearch for official docs
Alternative library ID: Try variations
# If "fastapi" fails, try:
resolve-library-id: "starlette" # FastAPI's underlying framework
resolve-library-id: "pydantic" # Often used with FastAPI
WebSearch for official docs:
WebSearch: "<library> official documentation <feature>"
WebFetch: Official docs URL → extract relevant info
Source code exploration (for open-source):
# Clone and explore
git clone --depth=1 <repo>
Grep: "function <name>" --type=<lang>
Perplexity for recent/niche libraries:
mcp__perplexity-ask__perplexity_ask: "How to use <feature> in <library> 2024"
| Library | Fallback |
|---|---|
| Internal/proprietary | Source code + README |
| Very new (<6 months) | WebSearch + official docs |
| Niche/specialized | Perplexity or GitHub issues |
| Language stdlib | Use language docs directly |
# Initial attempt fails
resolve-library-id: "htmx"
→ No results
# Fallback 1: WebSearch
WebSearch: "htmx documentation hx-swap"
→ Found: https://htmx.org/docs/
# Fallback 2: Fetch docs
WebFetch: url="https://htmx.org/docs/", prompt="Explain hx-swap attribute"
→ Returns relevant documentation