context7-docs
Skill2 starsChanged 43 days agoMITView on GitHub
Fetch up-to-date documentation from Context7 for a library. Use when you need current API syntax, code examples, or official documentation for any library or framework.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- phntm7/skillstheir own version, first seen Nov 1, 2026
- ci4me/CQRSTemplatetheir own version, first seen May 20, 2026
- wsm94/gi-claude-skillstheir own version, first seen Feb 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- wsm94/gi-claude-skills★ 2same name
- phntm7/skills★ 1same name
- ci4me/CQRSTemplate★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository41 other files it gives its agents.
- skills/web-asset-generator/CLAUDE.mdCLAUDE.md
- academic-writingSkill
- agent-os-childSkill
- agy-pSkill
- amazon-uk-scraperSkill
- artifact-variationsSkill
- audio-transcription-workflowSkill
- capture-dashboardSkill
- claude-channelsSkill
- claude-pSkill
- code-documenterSkill
- context7-searchSkill
- deep-researchSkill
- docx-draftSkill
- grill-meSkill
- handoffSkill
- long-horizon-waiting-strategiesSkill
- openapi-schemaSkill
- opencode-pluginSkill
- pi-extensionSkill
- pi-web-ui-internal-api-orchestrationSkill
- pptx-draftSkill
- saas-idea-finderSkill
- scraping-redditSkill
- scraping-twitterSkill
- secret-scanningSkill
- socialmedia-optimizationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- text-to-speechSkill
- thematic-analysisSkill
- transcribe-audioSkill
- video-deep-understandingSkill
- video-useSkill
- web-asset-generatorSkill
- web-crawlingSkill
- web-create-assetsSkill
- web-data-acquisitionSkill
- webfetch-skillSkill
- youtube-captionSkill
- youtube-searchSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when:
- Very specific: line 155
Use context7-search to find the correct library ID
- Very specific: line 163
Verify CONTEXT7_API_KEY is available in your environment or shell startup file
- Distinctive: line 164
Check key is valid
- Very specific: line 169
Try code first: - Default --type code gives practical examples
- Very specific: line 171
Check versions: - Use --version for version-specific syntax
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fetch Library Documentation from Context7
Fetch real-time, version-specific documentation and code examples for libraries.
When to Use
Use this skill when:
- User needs current API documentation for a library
- You need up-to-date syntax examples (your training data may be outdated)
- User asks "show me how to use X" or "what's the latest syntax for Y"
- Implementing features with a specific library
- Troubleshooting library usage issues
Prerequisites
- Context7 API key available via
CONTEXT7_API_KEYin the environment or a shell startup file such as~/.bashrc(the bundled scripts can read either) - Library ID in
owner/repoformat (usecontext7-searchfirst if unknown)
How to Execute
Fetch Code Examples (Default)
python3 ./scripts/fetch_docs.py --library "owner/repo"Fetch Topic-Focused Documentation
python3 ./scripts/fetch_docs.py --library "owner/repo" --topic "TOPIC"Fetch Documentation Info (Instead of Code)
python3 ./scripts/fetch_docs.py --library "owner/repo" --type infoFetch Specific Version
python3 ./scripts/fetch_docs.py --library "owner/repo" --version "v15.1.8"Parameters
| Parameter | Required | Default | Description |
--library | Yes | - | Library in owner/repo format |
--topic | No | - | Focus on specific feature/topic |
--type | No | code | code for snippets, info for docs |
--version | No | latest | Specific version tag |
--page | No | 1 | Page number for pagination |
Examples
Fetch Next.js Routing Examples
python3 ./scripts/fetch_docs.py \
--library "vercel/next.js" \
--topic "routing"Fetch Prisma PostgreSQL Setup
python3 ./scripts/fetch_docs.py \
--library "prisma/prisma" \
--topic "postgresql connection"Fetch React Hooks Documentation
python3 ./scripts/fetch_docs.py \
--library "facebook/react" \
--topic "hooks" \
--type infoFetch Specific Version
python3 ./scripts/fetch_docs.py \
--library "vercel/next.js" \
--version "v14.3.0" \
--topic "app router"Response Format
{
"success": true,
"data": {
"library": "vercel/next.js",
"topic": "routing",
"type": "code",
"content": {
"content": "### Dynamic Route Handler\n\nSource: ...\n\n```typescript\nexport async function GET(...) {...}\n```\n\n---\n\n### Another Example\n..."
}
}
}Common Library IDs
| Library | ID | Common Topics |
| Next.js | vercel/next.js | routing, server components, api routes |
| React | facebook/react | hooks, state, context, suspense |
| Prisma | prisma/prisma | setup, queries, relations, migrations |
| Supabase | supabase/supabase | auth, realtime, row level security |
| FastAPI | fastapi/fastapi | routing, validation, dependencies |
| Express | expressjs/express | middleware, routing, error handling |
| Tailwind | tailwindlabs/tailwindcss | configuration, utilities, plugins |
Workflow Examples
Example 1: Unknown Library
User: "How do I set up authentication with Supabase?"
1. Search for library (if ID unknown):
python3 ./scripts/resolve_library.py --query "supabase"
→ Returns supabase/supabase
2. Fetch focused documentation:
python3 ./scripts/fetch_docs.py \
--library "supabase/supabase" \
--topic "authentication"Example 2: Known Library
User: "Show me the latest Next.js routing API"
Fetch directly (skip search):
python3 ./scripts/fetch_docs.py \
--library "vercel/next.js" \
--topic "app router"Error Handling
Library not found (404):
- Use
context7-searchto find the correct library ID - Format must be
owner/repo(e.g.,vercel/next.js)
Topic not matched:
- Try broader topic keywords
- Omit topic entirely to get general documentation
Authentication error:
- Verify CONTEXT7_API_KEY is available in your environment or shell startup file
- Check key is valid
Best Practices
- Use specific topics - Get focused results with
--topic - Try code first - Default
--type codegives practical examples - Use info for concepts -
--type infofor documentation/explanations - Check versions - Use
--versionfor version-specific syntax
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

