Docs Lookup
The Docs Lookup skill provides context injection for querying library and framework documentation using Context7.Overview
| Property | Value |
|---|---|
| Skill ID | ct-docs-lookup |
| Tier | 3 (Support) |
| Protocol | research |
| Tags | documentation, libraries |
When to Use
Activate this skill when the user:- Asks setup or configuration questions (“How do I configure Next.js middleware?”)
- Requests code involving libraries (“Write a Prisma query for…”)
- Needs API references (“What are the Supabase auth methods?”)
- Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)
Workflow
Step 1: Resolve Library ID
Callresolve-library-id with:
libraryName: The library name from user’s questionquery: The user’s full question
Step 2: Select Best Match
From results, choose based on:- Exact or closest name match
- Higher benchmark scores
- Version-specific IDs if user mentioned version
Step 3: Fetch Documentation
Callquery-docs with:
libraryId: Selected Context7 library ID (e.g.,/vercel/next.js)query: User’s specific question
Step 4: Use Documentation
- Answer using current, accurate information
- Include relevant code examples
- Cite library version when relevant
Guidelines
- Be specific: Pass full question as query
- Version awareness: Use version-specific IDs when mentioned (“Next.js 15”, “React 19”)
- Prefer official sources: Choose official packages over community forks
Example
Integration with Documentor
This skill is invoked byct-documentor during the discovery phase to:
- Find existing documentation on a topic
- Reference official library docs before writing
- Verify code examples are current
Related Skills
- Documentor - Orchestrates documentation
- Docs Write - Writes documentation
- Research Agent - General research
