documentation-lookup

Fetches current library and framework documentation via Context7 MCP tools.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/inuishan/PET --skill documentation-lookup-inuishan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: documentation-lookup
Source: https://github.com/inuishan/PET/tree/main/.codex/skills/documentation-lookup
Command: npx skills add https://github.com/inuishan/PET --skill documentation-lookup-inuishan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI training data becomes outdated, so answers about library APIs, setup steps, and code examples can be wrong or stale. This Skill retrieves live documentation through the Context7 MCP server so answers reflect current library behavior. ## Core Features & Use Cases - Library Resolution: Converts a library name (e.g. Next.js, Prisma, Supabase) into a Context7-compatible library ID using the resolve-library-id tool, with version-aware selection. - Documentation Querying: Fetches relevant docs and code snippets via the query-docs tool, limited to 3 calls per question to control cost and latency. - Use Case: When asked "How do I configure Next.js middleware?", the Skill resolves the /vercel/next.js library ID, queries the docs, and answers with a current middleware.ts example instead of relying on memorized patterns. ## Quick Start Ask how to set up middleware in Next.js and have the answer grounded in the latest official documentation.

Frequently Asked Questions about documentation-lookup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get up-to-date library documentation from an AI assistant?▼

Ask a question naming the library or framework, and the Skill resolves it to a Context7 library ID, then queries live docs via the query-docs MCP tool. The answer is built from fetched documentation rather than training data.

How does Context7 resolve-library-id work?▼

resolve-library-id takes a library name and the user's query, then returns Context7-compatible IDs in /org/project format. The best match is chosen by name similarity, benchmark score, source reputation, and version specificity.

Does documentation lookup support specific library versions?▼

Yes. When a user mentions a version such as React 19 or Next.js 15, the resolution step prefers version-specific library IDs like /org/project/v1.2.0 when they are listed in the results.

What happens if the documentation query returns unclear results?▼

The Skill limits resolve-library-id and query-docs calls to three per question. If the answer remains unclear after three calls, it states the uncertainty and uses the best available information rather than guessing.

Is it safe to send questions containing API keys to Context7?▼

The Skill instructs redaction of API keys, passwords, tokens, and other secrets from any query before it is sent to resolve-library-id or query-docs, treating user input as potentially containing sensitive data.