context7 · dotneet — Claude Code skill: library docs and installation
This skill fetches library documentation and code examples through Context7. Use it for API questions or when an answer depends on a particular library version.
npx skills add dotneet/claude-code-marketplace --skill context7 -a claude-codeWhat context7 does
The skill searches for a library in Context7, then selects an ID using its trust score, available snippets, and version information. It requests material for a focused topic and uses the result to explain an API or prepare a code example.
Ask it to check how a library works, show a usage example, or verify version-specific details. API requests require CONTEXT7_API_KEY; without that credential, the documented curl calls cannot authenticate. For a combined example using multiple libraries, the skill resolves and retrieves documentation for each one.
What it helps with
- check the current way to call a library API
- find an example for a specific function
- verify documentation for a particular library version
- build an example that combines multiple libraries
Example prompts for the agent
- Check the current React
useEffectcleanup pattern through Context7 and show an example. - Find how to configure authentication middleware in the Next.js App Router using Context7.
- Compare the Context7 docs for TailwindCSS and shadcn/ui, then draft a button example.
How to install context7
1Skills CLI (Vercel)
npx skills add dotneet/claude-code-marketplace --skill context7 -a claude-code2Manually: put the files in place
~/.claude/skills/context7/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/context7/
1Skills CLI (Vercel)
npx skills add dotneet/claude-code-marketplace --skill context7 -a codex2Manually: put the files in place
.agents/skills/context7/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dotneet/claude-code-marketplace --skill context7 -a cursor2Manually: put the files in place
.cursor/skills/context7/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dotneet/claude-code-marketplace context72Manually: put the files in place
.github/skills/context7/SKILL.md1Skills CLI (Vercel)
npx skills add dotneet/claude-code-marketplace --skill context7 -a gemini-cli2Platform CLI
gemini skills install https://github.com/dotneet/claude-code-marketplace --path research/skills/context7Manually: put the files in place
.devin/skills/context7/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add dotneet/claude-code-marketplace --skill context7 -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about context7
How do I install context7 in Claude Code?
Run npx skills add dotneet/claude-code-marketplace --skill context7 -a claude-code. The skill file is at ~/.claude/skills/context7/SKILL.md.
What does the context7 skill do?
It locates a library in Context7, fetches documentation for a specific topic, and uses that material to answer API questions or produce examples.
What does context7 need to work?
API calls use the CONTEXT7_API_KEY credential in the authorization header.
Similar skills
All skills for Agent setup: memory, context, orchestration →context7 by other authors comes first.