home / skills / julianobarbosa / claude-code-skills / looking-up-docs-skill
This skill helps you quickly fetch up-to-date library documentation and code examples with exact version context using Context7.
npx playbooks add skill julianobarbosa/claude-code-skills --skill looking-up-docs-skillReview the files below or copy the command above to add this skill to your agents.
---
name: looking-up-docs
description: Look up library documentation using Context7. Use when needing API reference, library docs, framework documentation, or technical documentation lookup. Provides up-to-date, version-specific docs and code examples.
allowed-tools: Read, Grep, Glob, mcp__context7__resolve-library-id, mcp__context7__get-library-docs
---
# Documentation Lookup with Context7
Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.
## Why Context7
- **Current APIs**: No hallucinated or outdated patterns
- **Version-specific**: Gets docs for exact library versions
- **Code examples**: Real, working code from actual documentation
## Workflow
1. **Resolve library ID**: `mcp__context7__resolve-library-id` with `libraryName`
2. **Get documentation**: `mcp__context7__get-library-docs` with `context7CompatibleLibraryID` and `topic`
## Modes
| Mode | Use For |
| ------ | ------------------------------------------ |
| `code` | API references, code examples (default) |
| `info` | Conceptual guides, architecture, tutorials |
## Examples
```
# React hooks
resolve-library-id: "react"
get-library-docs: context7CompatibleLibraryID="/facebook/react", topic="hooks", mode="code"
# Next.js middleware
resolve-library-id: "next.js"
get-library-docs: context7CompatibleLibraryID="/vercel/next.js", topic="middleware"
# Go net/http
resolve-library-id: "go net/http"
get-library-docs: context7CompatibleLibraryID="/golang/go", topic="http server"
# Kubernetes API
resolve-library-id: "kubernetes"
get-library-docs: context7CompatibleLibraryID="/kubernetes/kubernetes", topic="deployment"
```
## Tips
- Use `topic` parameter to narrow results to specific features
- Try `mode="info"` for architectural questions
- Paginate with `page=2`, `page=3` if initial results insufficient
This skill looks up library documentation using Context7 to deliver version-specific API references and real code examples. It returns up-to-date docs, precise topics, and can switch between code-focused and conceptual modes. Use it when you need authoritative, current documentation rather than second-hand summaries.
First it resolves a library identifier from a casual name to a Context7-compatible library ID. Then it requests documentation for a given topic and mode (code or info) and returns the relevant pages, examples, and version metadata. You can paginate results and narrow queries with the topic parameter for focused results.
Can I get docs for a specific library version?
Yes — the skill returns version-specific documentation when available; resolving the correct library ID helps map to the right version.
What’s the difference between mode='code' and mode='info'?
Use mode='code' for API references and concrete examples, and mode='info' for conceptual guides, architecture explanations, and tutorials.