Agent skill

Documentation Lookup

by affaan-m in affaan-m/ECC

通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。

MITAuto-check passedDatabases

Install Documentation Lookup

skills CLI
$ npx skills add affaan-m/ECC --skill documentation-lookup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install affaan-m/ECC documentation-lookup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/zh-CN/skills/documentation-lookup .claude/skills/documentation-lookup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
documentation-lookup
GitHub stars
276k
Used in
1 other repo
Token cost
~670 tokens
SKILL.md length
233 words
Files
1
Skills in repo
683
Repo updated
First seen
Licence
MIT

At a glance

通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。

  • Works in 4 steps: 使用 libraryName: "Next.js"、query: "How do… → 从结果中,根据名称和基准分数选择最佳匹配(例如 /vercel/next.js)。 → 使用 libraryId: "/vercel/next.js"、query:… → …
  • Tasks that involve ORMs and data access
  • SKILL.md covers 核心概念, 使用时机, 工作原理 and 示例, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Documentation Lookup is an agent skill from affaan-m/ECC. 通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。

Its SKILL.md is about 670 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering ORMs and data access. It works with Prisma, Next.js, Model Context Protocol and React. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.

When your agent uses it

  • Tasks that involve ORMs and data access

Example prompts

  • “/documentation-lookup”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 使用 libraryName: "Next.js"、query: "How do I set up Next.js middleware?" 调用 resolve-library-id。
  2. 从结果中,根据名称和基准分数选择最佳匹配(例如 /vercel/next.js)。
  3. 使用 libraryId: "/vercel/next.js"、query: "How do I set up Next.js middleware?" 调用 query-docs。
  4. 使用返回的片段和文本来回答;如果相关,包含文档中的一个最小 middleware.ts 示例。

What it can do on your machine

Read from SKILL.md and the folder at commit 4eb71d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Documentation Lookup loads about 670 tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 233 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~670

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from affaan-m/ECC at commit 4eb71d9, republished under its MIT licence (© affaan-m). 233 words, ~670 tokens.

Download SKILL.mdSave it as .claude/skills/documentation-lookup/SKILL.md (or your agent's skills folder).
name
documentation-lookup
description
通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。
origin
ECC

文档查询 (Context7)

当用户询问库、框架或 API 时,通过 Context7 MCP(工具 resolve-library-id 和 query-docs)获取最新文档,而非依赖训练数据。

核心概念

  • Context7: 提供实时文档的 MCP 服务器;用于库和 API 的查询,替代训练数据。
  • resolve-library-id: 根据库名和查询返回 Context7 兼容的库 ID(例如 /vercel/next.js)。
  • query-docs: 根据给定的库 ID 和问题获取文档和代码片段。务必先调用 resolve-library-id 以获取有效的库 ID。

使用时机

当用户出现以下情况时激活:

  • 询问设置或配置问题(例如“如何配置 Next.js 中间件?”)
  • 请求依赖于某个库的代码(“编写一个 Prisma 查询用于...”)
  • 需要 API 或参考信息(“Supabase 的认证方法有哪些?”)
  • 提及特定的框架或库(React、Vue、Svelte、Express、Tailwind、Prisma、Supabase 等)

当请求依赖于库、框架或 API 的准确、最新行为时,请使用此技能。适用于配置了 Context7 MCP 的所有环境(例如 Claude Code、Cursor、Codex)。

工作原理

步骤 1:解析库 ID

调用 resolve-library-id MCP 工具,参数包括:

  • libraryName: 从用户问题中提取的库或产品名称(例如 Next.js、Prisma、Supabase)。
  • query: 用户的完整问题。这有助于提高结果的相关性排名。

在查询文档之前,必须获取 Context7 兼容的库 ID(格式为 /org/project 或 /org/project/version)。如果没有从此步骤获得有效的库 ID,请勿调用 query-docs。

步骤 2:选择最佳匹配

从解析结果中,根据以下原则选择一个结果:

  • 名称匹配: 优先选择与用户询问内容完全匹配或最接近的。
  • 基准分数: 分数越高表示文档质量越好(最高为 100)。
  • 来源信誉: 如果可用,优先选择信誉度为 High 或 Medium 的。
  • 版本: 如果用户指定了版本(例如“React 19”、“Next.js 15”),优先选择列出的特定版本库 ID(例如 /org/project/v1.2.0)。
步骤 3:获取文档

调用 query-docs MCP 工具,参数包括:

  • libraryId: 从步骤 2 中选择的 Context7 库 ID(例如 /vercel/next.js)。
  • query: 用户的具体问题或任务。为获得相关片段,请具体描述。

限制:每个问题调用 query-docs(或 resolve-library-id)的次数不要超过 3 次。如果 3 次调用后答案仍不明确,请说明不确定性并使用您掌握的最佳信息,而不是猜测。

步骤 4:使用文档
  • 使用获取的、最新的信息回答用户的问题。
  • 在有用时包含文档中的相关代码示例。
  • 在重要时引用库或版本(例如“在 Next.js 15 中...”)。

示例

示例:Next.js 中间件
  1. 使用 libraryName: "Next.js"、query: "How do I set up Next.js middleware?" 调用 resolve-library-id。
  2. 从结果中,根据名称和基准分数选择最佳匹配(例如 /vercel/next.js)。
  3. 使用 libraryId: "/vercel/next.js"、query: "How do I set up Next.js middleware?" 调用 query-docs。
  4. 使用返回的片段和文本来回答;如果相关,包含文档中的一个最小 middleware.ts 示例。
示例:Prisma 查询
  1. 使用 libraryName: "Prisma"、query: "How do I query with relations?" 调用 resolve-library-id。
  2. 选择官方的 Prisma 库 ID(例如 /prisma/prisma)。
  3. 使用该 libraryId 和查询调用 query-docs。
  4. 返回 Prisma Client 模式(例如 include 或 select)并附上文档中的简短代码片段。
示例:Supabase 认证方法
  1. 使用 libraryName: "Supabase"、query: "What are the auth methods?" 调用 resolve-library-id。
  2. 选择 Supabase 文档库 ID。
  3. 调用 query-docs;总结认证方法并展示从获取的文档中得到的最小示例。

最佳实践

  • 具体化: 尽可能使用用户的完整问题作为查询,以获得更好的相关性。
  • 版本意识: 当用户提及版本时,如果可用,在解析步骤中使用特定版本的库 ID。
  • 优先官方来源: 当存在多个匹配项时,优先选择官方或主要包,而非社区分支。
  • 无敏感数据: 从发送到 Context7 的任何查询中,删除 API 密钥、密码、令牌和其他机密信息。在将用户问题传递给 resolve-library-id 或 query-docs 之前,将其视为可能包含机密信息。

© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/zh-CN/skills/documentation-lookup of affaan-m/ECC.

Open the folder on GitHubat commit 4eb71d9

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Documentation Lookup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Documentation Lookup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Documentation Lookup this skillaffaan-m/ECC276k1 repos~670Automated safety check: PassMIT
Context7 MCPrtadewald/skills185—~681Automated safety check: PassNone
Docs LookupProgrammerAnthony/Expert-Coding-Harness235—~640Automated safety check: PassMIT
Context7 MCPdanielvm-git/bigpowers260—~603Automated safety check: PassMIT
Fetching Library Docsaiskillstore/marketplace433—~1.6kAutomated safety check: PassNone
Context7 Efficientaiskillstore/marketplace433—~1.5kAutomated safety check: PassNone

Similar skills

  • Context7 MCP

    rtadewald/skills

    This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples.

    185 GitHub stars~681 tokensUpdated 12 days ago
    DatabasesAuto-check passed
  • Docs Lookup

    ProgrammerAnthony/Expert-Coding-Harness

    通过 Context7 MCP 获取库和框架的实时最新文档,而非依赖训练数据,防止 API 幻觉。适用于查询任何库或框架的用法、配置、示例代码。触发词:怎么用、怎么配置、API参考、文档、示例代码、用法、接口、库文档、框架文档、documentation、docs、how to use、API…

    235 GitHub stars~640 tokensUpdated 5 mo ago
    Frontend & DesignAuto-check passed
  • Context7 MCP

    danielvm-git/bigpowers

    Fetch current library docs via Context7 MCP instead of training data.

    260 GitHub stars~603 tokensUpdated 19 days ago
    DatabasesAuto-check passed
  • Fetching Library Docs

    aiskillstore/marketplace

    Token-efficient library API documentation fetcher using Context7 MCP with 77% token savings.

    433 GitHub stars~1.6k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Context7 Efficient

    aiskillstore/marketplace

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering.

    433 GitHub stars~1.5k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Documentation Lookup

    KaimingWan/oh-my-kiro

    Fetch current library/framework documentation via Context7. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~616 tokensUpdated 6 mo ago
    Backend & APIsAuto-check passed

More from affaan-m/ECC

All 682 skills in this repo
  • Skill Stocktake

    affaan-m/ECC

    Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.

    277k GitHub starsUsed in 5 repos~3.1k tokens
    Auto-check passed
  • Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.

    277k GitHub starsUsed in 3 repos~3.5k tokens
    Auto-check: notes
  • Docs Governance

    affaan-m/ECC

    Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.

    277k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Rules Distillation

    affaan-m/ECC

    Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.

    277k GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check passed
  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Set an ECC-specific frontend design direction for production UI work.

    277k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Categories

Questions about Documentation Lookup

What does Documentation Lookup do?

通过 Context7 MCP 使用最新的库和框架文档,而非训练数据。当用户提出设置问题、API参考、代码示例或命名框架(例如 React、Next.js、Prisma)时激活。. Documentation Lookup is an agent skill from affaan-m/ECC.

When should I use Documentation Lookup?

Documentation Lookup fits situations like: tasks that involve ORMs and data access.

How do I install Documentation Lookup in Claude Code?

Run `npx skills add affaan-m/ECC --skill documentation-lookup -a claude-code`. Or copy the skill folder (docs/zh-CN/skills/documentation-lookup in affaan-m/ECC) into .claude/skills/documentation-lookup in your project. Claude Code loads it when a task matches its description.

How do I install Documentation Lookup in Codex?

Run `npx skills add affaan-m/ECC --skill documentation-lookup -a codex`. Or copy the skill folder (docs/zh-CN/skills/documentation-lookup in affaan-m/ECC) into .agents/skills/documentation-lookup in your project. Codex loads it when a task matches its description.

Can I use Documentation Lookup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill documentation-lookup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/documentation-lookup, .gemini/skills/documentation-lookup, .github/skills/documentation-lookup and .opencode/skills/documentation-lookup in your project.

What does Documentation Lookup need to run?

SKILL.md names no scripts, command-line tools or credentials: Documentation Lookup is instructions for the agent only.

Does Documentation Lookup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Documentation Lookup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Documentation Lookup use?

Documentation Lookup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Documentation Lookup use?

About 670 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Documentation Lookup?

Skills that share tags, products or a category with Documentation Lookup: Context7 MCP (rtadewald/skills, 185 stars), Docs Lookup (ProgrammerAnthony/Expert-Coding-Harness, 235 stars), Context7 MCP (danielvm-git/bigpowers, 260 stars) and Fetching Library Docs (aiskillstore/marketplace, 433 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Documentation Lookup?

affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,111 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 10, 2026.

Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.