Skip to content
Skill

Documentation lookup

Fetch current library and framework docs through Context7 MCP instead of relying on memory

Documentation lookup is an open-source agent skill for knowledge and memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
71
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Documentation lookup

This skill makes the agent look up live documentation for libraries, frameworks and APIs through the Context7 MCP server rather than answering from training data. It applies whenever a request depends on accurate, current behavior, such as setup questions, code that uses a specific library, or API reference lookups.

The workflow has four steps. The agent first calls resolve-library-id with the library name and the user's full question to get a Context7 library ID. It then picks the best match using name closeness, benchmark score, source reputation and, if the user mentioned a version, a version-specific ID. Next it calls query-docs with that ID and a specific question, and finally it answers using the returned snippets, citing the library or version where relevant.

The skill caps lookups at three calls per question and tells the agent to state uncertainty instead of guessing if the answer is still unclear. It also instructs the agent to strip API keys, passwords and tokens from queries before sending them to Context7. It requires a client that has the Context7 MCP server configured.

When your agent uses it

Use up-to-date library and framework docs via Context7 MCP instead of training data. Activates for setup questions, API references, code examples, or when the user names a framework (e.g. React, Next.js, Prisma).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (5 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the egc plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Fmarzochi/EGC
/plugin install egc@egc

Or copy only this skill to ~/.claude/skills/documentation-lookup:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/documentation-lookup &&
cp -R "$tmp/.agents/skills/documentation-lookup" ~/.claude/skills/documentation-lookup &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/documentation-lookup inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/documentation-lookup to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/documentation-lookup &&
cp -R "$tmp/.agents/skills/documentation-lookup" ~/.agents/skills/documentation-lookup &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/documentation-lookup inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/documentation-lookup to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/documentation-lookup &&
cp -R "$tmp/.agents/skills/documentation-lookup" ~/.cursor/skills/documentation-lookup &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/documentation-lookup inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Fmarzochi/EGC.git --path .agents/skills/documentation-lookup

Or copy the folder to ~/.gemini/skills/documentation-lookup yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/documentation-lookup:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Fmarzochi/EGC.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/documentation-lookup &&
cp -R "$tmp/.agents/skills/documentation-lookup" ~/.copilot/skills/documentation-lookup &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/documentation-lookup inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Fmarzochi/EGC.git

Then copy EGC/.agents/skills/documentation-lookup into your agent's skills folder as documentation-lookup. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Two-step Context7 lookup
Resolves a library name to a Context7 ID, then queries documentation and code snippets for that ID.
Match selection rules
Chooses among results by name match, benchmark score, source reputation and requested version.
Version-aware queries
Prefers version-specific library IDs when the user mentions a release such as React 19 or Next.js 15.
Call limit
Allows at most three lookup calls per question, then reports uncertainty instead of guessing.
Secret redaction
Removes keys, passwords and tokens from queries before they are sent to Context7.
Worked examples
Includes walkthroughs for Next.js middleware, Prisma relation queries and Supabase auth methods.

Good for

  • Ask how to configure Next.js middleware using current docs
  • Write a Prisma query with relations based on the latest API
  • List Supabase auth methods with examples from the docs
  • Check setup steps for a framework like React, Vue, Svelte or Tailwind
  • Get version-specific guidance for a library release

Documentation lookup FAQ

What does Documentation lookup need to work?

A client with the Context7 MCP server configured, since it relies on the resolve-library-id and query-docs tools.

When does Documentation lookup activate?

When you ask setup or configuration questions, request code that depends on a library, need API reference details, or name a framework such as React, Prisma or Supabase.

How many Context7 calls does Documentation lookup make?

No more than three calls per question; if the answer is still unclear, the agent states the uncertainty.

Does Documentation lookup send my secrets to Context7?

The skill tells the agent to redact API keys, passwords, tokens and other secrets from queries before sending them.

How do I install Documentation lookup in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/documentation-lookup to use it in all your projects, or to .claude/skills/documentation-lookup in one project. Or install the egc plugin, which includes it: /plugin marketplace add Fmarzochi/EGC, then /plugin install egc@egc.

Does Documentation lookup run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Documentation lookup?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Documentation lookup?

The closest alternatives to Documentation lookup are Documentation lookup, Microsoft docs, Retrieving developer knowledge, Microsoft code reference and Openai docs.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Fmarzochi/EGC

  1. Gives agents a structured workflow to capture, diagnose and recover from their own

    • Open source
    • 71 GitHub stars
    • Developer tools
  2. Builds a repo-specific EGC install plan that sorts components into daily and library sets

    • Open source
    • 71 GitHub stars
    • Developer tools
  3. Guides an agent through consistent REST API design: naming, status codes, pagination

    • Open source
    • 71 GitHub stars
    • Developer tools
  4. Drafts long-form articles, guides and newsletters in a consistent, specific voice

    • Open source
    • 71 GitHub stars
    • Writing style
  5. Guides an agent through Node.js and Express backend design, data access and error handling

    • Open source
    • 71 GitHub stars
    • Developer tools
  6. Builds a reusable writing style profile from your own samples for consistent copy

    • Open source
    • 71 GitHub stars
    • Writing style