
Context7
This pulls current library docs through Context7's API so Claude stops hallucinating outdated React hooks or nonexistent Next.js patterns. You search for a library, get its ID, then query for specific documentation like "useEffect cleanup" or "middleware authentication." It's most useful when you're working with fast-moving frameworks where the training data is likely stale, or when you explicitly need version-specific examples. The workflow is straightforward: two API calls and you get code snippets with source URLs. Honest take: it's solving a real problem with LLM staleness, though you're adding API latency to every coding question that triggers it.
- skills.sh installs
- 412
- GitHub stars
- 3
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dotneet/claude-code-marketplace --skill context7 --agent claude-codeInstalls into .claude/skills of the current project.
Files
Context7
Overview
Context7 is a service that provides LLMs with the latest library documentation. It prevents hallucinations from outdated training data or non-existent APIs, enabling retrieval of version-specific accurate documentation and code examples.
When to Use
Use this skill in the following cases:
- Explicit instruction: When the user instructs "use context7" or "check the latest documentation"
- Library usage questions: When asked about how to use a specific library's API, hooks, or functions
- Code example requests: When asked for code examples using a specific library
- Version-specific information: When library information for a specific version is needed
- Uncertain API information: When your knowledge might be outdated and latest information verification is needed
Workflow
Step 1: Resolve Library ID
First, obtain the Context7 ID for the target library.
API call:
curl "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=CONTEXT_QUERY" \
-H "Authorization: Bearer $CONTEXT7_API_KEY"
Sponsors
Details
- Repository
- github.com/dotneet/claude-code-marketplace
- Categories
- Backend & APIs, Documentation
- First seen
- Jun 3, 2026