# Documentation lookup

> Documentation lookup is an open-source agent skill for knowledge and memory. Fetch current library and framework docs through Context7 MCP before answering. 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/smartworldarafath/REA_Skill/tree/main/.agents/skills/documentation-lookup
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 73
- **License:** MIT
- **Skill name:** documentation-lookup
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **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-01

## About

This skill makes the agent look up live documentation through the Context7 MCP server rather than answering from training data. It applies whenever a request depends on how a library, framework, or API currently behaves, such as setup, configuration, API references, or code that uses a named package.

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 in the `/org/project` format. It then picks the best match by name, benchmark score, source reputation, and requested version. Next it calls query-docs with that ID and the specific question. Finally it answers using the returned snippets, citing the library or version where relevant.

The skill caps the agent at three Context7 calls per question and asks it to state any remaining uncertainty rather than guess. It also tells the agent to strip API keys, passwords, and tokens from queries before sending them. It requires a client with the Context7 MCP server configured, and includes worked examples for Next.js, Prisma, and Supabase.

## 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/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/documentation-lookup)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/documentation-lookup)

## Features

- **Two-step Context7 lookup:** Resolves a library name to a Context7 ID first, then queries docs with that ID.
- **Match selection rules:** Chooses results by name match, benchmark score, source reputation, and official over community packages.
- **Version-aware queries:** Prefers version-specific library IDs when the user names a version such as React 19 or Next.js 15.
- **Call limit:** Allows at most three Context7 calls per question and reports uncertainty instead of guessing.
- **Secret redaction:** Removes keys, passwords, and tokens from queries before they reach Context7.
- **Worked examples:** Walks through 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 Prisma Client patterns
- List Supabase auth methods with minimal examples from the docs
- Check setup steps for a framework like Tailwind, Vue, or Svelte
- Get version-specific API guidance for React 19

## Install

### Claude Code

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

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.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/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.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, exposing the resolve-library-id and query-docs tools.

### Why does Documentation lookup call resolve-library-id first?

query-docs needs a valid Context7 library ID, which only the resolve step provides.

### How many lookups can Documentation lookup make per question?

No more than three calls in total. If the answer is still unclear, the agent states its uncertainty.

### Does Documentation lookup send my secrets to Context7?

No. The skill instructs the agent to redact API keys, passwords, tokens, and other secrets from queries.

### When does Documentation lookup trigger?

On setup or configuration questions, code requests that depend on a library, API reference questions, or when a framework is named.

### 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 rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### 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 Microsoft docs, Retrieving developer knowledge, Onboard context matic, Openai docs and Codebase memory MCP.

## Where this comes from

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

## Alternatives

- [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.
- [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): 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.
- [Integrate context matic](https://ai-powered.com/skills/integrate-context-matic): Integrate 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.
- [Search](https://ai-powered.com/skills/search): Search is an open-source agent skill for knowledge and memory.

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