# Documentation lookup

> Documentation lookup is an open-source agent skill for knowledge and memory. Fetch current library and framework docs through Context7 MCP instead of relying on memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Fmarzochi/EGC/tree/main/.agents/skills/documentation-lookup
- **Repository:** https://github.com/fmarzochi/egc
- **GitHub stars:** 71
- **License:** Apache-2.0
- **Skill name:** documentation-lookup
- **Collection:** https://github.com/Fmarzochi/EGC
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/documentation-lookup)
- [License: Apache-2.0](https://github.com/Fmarzochi/EGC/tree/HEAD/.agents/skills/documentation-lookup)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Documentation lookup](https://ai-powered.com/skills/documentation-lookup-smartworldarafath): Documentation lookup is an open-source agent skill for knowledge and memory.
- [Microsoft docs](https://ai-powered.com/skills/microsoft-docs): Microsoft docs is an open-source agent skill for developer tools.
- [Retrieving developer knowledge](https://ai-powered.com/skills/retrieving-developer-knowledge): Retrieving developer knowledge is an open-source agent skill for developer tools.
- [Microsoft code reference](https://ai-powered.com/skills/microsoft-code-reference): Microsoft code reference is an open-source agent skill for developer tools.
- [Openai docs](https://ai-powered.com/skills/openai-docs-openai): Openai docs is an open-source agent skill for ai models and llm tooling.
- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Onboard context matic](https://ai-powered.com/skills/onboard-context-matic): Onboard context matic is an open-source agent skill for developer tools.
- [Openai docs](https://ai-powered.com/skills/openai-docs): Openai docs is a free agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/documentation-lookup-fmarzochi
