find-docs
यह क्या करती है
यह स्किल आपके एजेंट को Context7 command-line टूल से सॉफ़्टवेयर लाइब्रेरी, फ़्रेमवर्क और क्लाउड सेवाओं के मौजूदा दस्तावेज़ खोजने देती है। यह उन डेवलपर्स के लिए है जिन्हें सटीक API विवरण चाहिए।
कब इस्तेमाल करें
- ✓जब आप किसी लाइब्रेरी, फ़्रेमवर्क या SDK के बारे में पूछते हैं और मौजूदा विवरण चाहते हैं।
- ✓जब किसी टूल के बारे में आपके एजेंट का प्रशिक्षण पुराना हो सकता है।
- ✓जब आपको किसी ख़ास लाइब्रेरी कार्य के लिए कोड उदाहरण चाहिए।
Skill का लिंक
https://github.com/upstash/context7/blob/master/skills/find-docs/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Prisma में cascade delete के साथ one-to-many रिलेशन कैसे परिभाषित करूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पहले लाइब्रेरी के नाम को Context7 ID से मिलाती है, फिर आपके सवाल के लिए दस्तावेज़ लाती है। यह हर सवाल के लिए कुछ ही खोज करती है, और फिर सबसे अच्छा परिणाम इस्तेमाल करती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Documentation Lookup
Retrieve current documentation and code examples for any library using the Context7 CLI.
Run commands with npx ctx7@latest so setup always uses the latest CLI without a global install:
npx ctx7@latest library <name> "<query>"
npx ctx7@latest docs <libraryId> "<query>"
Optionally install globally if you prefer a bare ctx7 command:
npm install -g ctx7@latest
Workflow
Two-step process: resolve the library name to an ID, then query docs with that ID.
# Step 1: Resolve library ID
npx ctx7@latest library <name> "<query>"
# Step 2: Query documentation
npx ctx7@latest docs <libraryId> "<query>"
You MUST call library first to obtain a valid library ID UNLESS the user explicitly provides a library ID in the format /org/project or /org/project/version.
IMPORTANT: Do not run these commands more than 3 times per question. If you cannot find what you need after 3 attempts, use the best result you have.
Step 1: Resolve a Library
Resolves a package/product name to a Context7-compatible library ID and returns matching libraries.
npx ctx7@latest library React "How to clean up useEffect with async operations"
npx ctx7@latest library "Next.js" "How to set up app router with a proxy"
npx ctx7@latest library Prisma "How to define one-to-many relations with cascade delete"
Use the official library name with proper punctuation (e.g., "Next.js" not "nextjs", "Customer.io" not "customerio", "Three.js" not "threejs"). If results look wrong, try alternate spellings such as next.js before changing the query.
Always pass a query argument — it is required and directly affects result ranking. Use the user's intent to form the query, which helps disambiguate when multiple libraries share a similar name. Do not include any sensitive or confidential information such as API keys, passwords, credentials, personal data, or proprietary code in your query.
Result fields
Each result includes:
- Library ID — Context7-compatible identifier (format:
/org/project) - Name — Library or package name
- Description — Short summary
- Code Snippets — Number of available code examples
- Source Reputation — Authority indicator (High, Medium, Low, or Unknown)
- Benchmark Score — Quality indicator (100 is the highest score)
- Versions — List of versions if available. Use one of those versions if the user provides a version in their query. The format is
/org/project/version.
Selection process
- Analyze the query to understand what library/package the user is looking for
- Select the most relevant match based on:
- Name similarity to the query (exact matches prioritized)
- Description relevance to the query's intent
- Documentation coverage (prioritize libraries with higher Code Snippet counts)
- Source reputation (consider libraries with High or Medium reputation more authoritative)
- Benchmark score (higher is better, 100 is the maximum)
- If multiple good matches exist, acknowledge this but proceed with the most relevant one
- If no good matches exist, clearly state this and suggest query refinements
- For ambiguous queries, request clarification before proceeding with a best-guess match
Version-specific IDs
If the user mentions a specific version, use a version-specific library ID:
# General (latest indexed)
npx ctx7@latest docs /vercel/next.js "How to set up app router"
# Version-specific
npx ctx7@latest docs /vercel/next.js/v16.2.9 "How to set up app router"
The available versions are listed in the library command output. Use the closest match to what the user specified.
Step 2: Query Documentation
Retrieves up-to-date documentation and code examples for the resolved library.
npx ctx7@latest docs /facebook/react "How to clean up useEffect with async operations"
npx ctx7@latest docs /vercel/next.js "How to add an authentication proxy to app router"
npx ctx7@latest docs /prisma/prisma "How to define one-to-many relations with cascade delete"
If you know the programming language the user writes in, add --language so code examples in that language rank first:
npx ctx7@latest docs /websites/twilio "How to send an SMS" --language Ruby
Writing good queries
The query directly affects the quality of results. Be specific and include relevant details, but keep each query to one topic — if the question spans multiple distinct concepts, run a separat
अक्सर पूछे जाने वाले सवाल
लाइब्रेरी का नाम पहले मिलान क्यों किया जाता है?
दस्तावेज़ एक ख़ास लाइब्रेरी ID के अंतर्गत संग्रहित होते हैं, इसलिए दस्तावेज़ लाने से पहले नाम को उस ID से मिलाना होता है।
अगर पहली खोज में कुछ काम का न मिले तो?
स्किल फिर कोशिश करती है, पर तीन प्रयासों के बाद रुकती है और जो सबसे अच्छा परिणाम मिला था उसका इस्तेमाल करती है।
क्या मैं खोज का चरण छोड़ सकता हूँ?
हाँ, अगर आप org/project रूप में लाइब्रेरी ID पहले से जानते हैं, तो खोज का चरण छोड़ा जा सकता है।
जानकारी
लेखक का मूल विवरण
Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the user asks about a specific library, framework, SDK, CLI tool, or cloud service — even for well-known ones like React, Next.js, Prisma, Express, Tailwind, Django, or Spring Boot. Your training data may not reflect recent API changes or version updates. Always use for: API syntax questions, configuration options, version migration issues, "how do I" questions mentioning a library name, debugging that involves library-specific behavior, setup instructions, and CLI tool u
repo: upstash/context7
लोकप्रियता
- GitHub स्टार
- 64k
- रैंकिंग में स्थान
- #3167
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
context7-mcp
64kयह आपके एजेंट को लाइब्रेरी और फ़्रेमवर्क के मौजूदा दस्तावेज़ देखने में मदद करती है, ताकि उसके कोड उदाहरण नवीनतम संस्करणों से मेल खाएँ।
context7-docs
64kयह आपके एजेंट को किसी भी लाइब्रेरी, फ़्रेमवर्क, SDK या क्लाउड सेवा के ताज़ा दस्तावेज़ और कोड उदाहरण जवाब देने से पहले लाने देती है।
context7-cli
64kयह आपके एजेंट को ctx7 command-line टूल से लाइब्रेरी दस्तावेज़ लाने और Context7 को आपके कोड एडिटर से जोड़ने की सुविधा देती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।