looking-up-docs
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.
How do I install this agent skill?
npx skills add https://github.com/julianobarbosa/claude-code-skills --skill looking-up-docsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill fetches external library documentation using the Context7 service. The primary security consideration is the potential for indirect prompt injection if the retrieved technical documentation contains malicious instructions.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
- Runlayerwarn
1/1 file flagged
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
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
- Resolve library ID:
mcp__context7__resolve-library-idwithlibraryName - Get documentation:
mcp__context7__get-library-docswithcontext7CompatibleLibraryIDandtopic
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
topicparameter to narrow results to specific features - Try
mode="info"for architectural questions - Paginate with
page=2,page=3if initial results insufficient
Gotchas
- Context7 query without version scoping returns hits across versions — Next.js 14 question can answer with Next.js 12 code. Always include the version.
- Library aliases (e.g.,
reactvs@types/react) may resolve to different libraries — use the full Context7 ID, not the npm name. - Stale cache: Context7 may have indexed a library version that's been yanked from npm — check upstream before trusting.
- Rate limits per API key per day — bursting on the free tier locks the key out until midnight UTC.
- No multi-version diff: Context7 doesn't surface what changed between versions; for migrations, dual-query and compare manually.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/julianobarbosa/claude-code-skills/looking-up-docs">View looking-up-docs on skillZs</a>