Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

looking-up-docs查找文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

192

周安装

8

GitHub Stars

公开资料未说明

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:looking-up-docs(查找文档)
来源仓库:https://github.com/alexei-led/claude-code-config
仓库路径:skills/looking-up-docs
安装命令:
npx skills add alexei-led/claude-code-config --skill "looking-up-docs"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add alexei-led/claude-code-config --skill "looking-up-docs"

简介

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写,适合在 Codex、Claude、Cursor、Gemini CLI 中使用。

  • 支持提炼结构、补齐章节、统一术语、检查链接或整理零散材料成可读文档。
  • 通过 github 安装,命令为 npx skills add alexei-led/claude-code-config --skill "looking-up-docs",需结合项目已有事实和路径使用。
  • 涉及对外文案时,应控制语气,避免过度营销或夸大能力,保留项目已有事实。
  • 来源仓库为 https://github.com/alexei-led/claude-code-config,路径为 skills/looking-up-docs,可进一步查阅 SKILL.md 了解详细功能。

SKILL.md

name
looking-up-docs
description
Library documentation via Context7. Use for API references, code examples, framework docs.
allowed-tools

Documentation Lookup with Context7

Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.

Why Context7

  • Current APIs: No hallucinated or outdated patterns
  • Version-specific: Gets docs for exact library versions
  • Code examples: Real, working code from actual documentation

Workflow

  1. Resolve library ID: mcp__context7__resolve-library-id with libraryName
  2. Get documentation: mcp__context7__query-docs with context7CompatibleLibraryID and topic

Modes

ModeUse For
codeAPI references, code examples (default)
infoConceptual guides, architecture, tutorials

Examples

# 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"

Tips for Better Results

Be specific with queries:

  • BAD: topic="hooks" → returns everything hook-related
  • GOOD: topic="useEffect cleanup function" → precise results

Filter strategies:

  • Use topic with function/method names: topic="json.Unmarshal"
  • Include version when relevant: libraryName="react 18"
  • Combine with feature context: topic="middleware error handling"

When results are too broad:

  1. Narrow the topic parameter
  2. Try mode="code" to focus on examples
  3. Paginate: page=2, page=3 for additional results
  4. Re-resolve library ID with more specific name

Quality check:

  • Verify code examples match your library version
  • Cross-reference with official docs if uncertain

Fallback: Empty or Missing Results

When Context7 returns no results or doesn't have the library:

Decision Tree

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

Fallback Strategies

  1. 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
  1. WebSearch for official docs:
   WebSearch: "<library> official documentation <feature>"
   WebFetch: Official docs URL → extract relevant info
  1. Source code exploration (for open-source):
   # Clone and explore
   git clone --depth=1 <repo>
   Grep: "function <name>" --type=<lang>
  1. Perplexity for recent/niche libraries:
   mcp__perplexity-ask__perplexity_ask: "How to use <feature> in <library> 2024"

Libraries Commonly Not in Context7

LibraryFallback
Internal/proprietarySource code + README
Very new (<6 months)WebSearch + official docs
Niche/specializedPerplexity or GitHub issues
Language stdlibUse language docs directly

Example Fallback Flow

# 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

When to Skip Context7 Entirely

  • Asking about breaking changes between versions → WebSearch release notes
  • Debugging specific error messages → WebSearch + StackOverflow
  • Comparing libraries → Perplexity for analysis
  • Very recent features → WebSearch for latest docs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

windsurf

27.42%
按下载量换算18

OpenCode

21.84%
按下载量换算14

Codex

16.94%
按下载量换算11

Claude Code

11.49%
按下载量换算7

Antigravity

7.02%
按下载量换算4

Gemini CLI

3.29%
按下载量换算2

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills