context7-docs

bởi upstash

Tìm nạp tài liệu và ví dụ mã cập nhật cho bất kỳ thư viện, framework, SDK, công cụ CLI hoặc dịch vụ đám mây nào. Sử dụng bất cứ khi nào người dùng hỏi về một…

npx skills add https://github.com/upstash/context7 --skill context7-docs

Context7 Documentation Lookup

Retrieve current documentation and code examples from Context7 using the resolve-library-id and query-docs tools that ship with this extension.

When to use

Reach for these tools whenever a question involves a specific library, framework, SDK, CLI tool, or cloud service. Examples:

  • "How do I configure caching in Next.js 16?"
  • "What's the syntax for Prisma's findMany with relations?"
  • "Show me a working Tailwind v4 install for a Vite app."
  • "How do I rate-limit with @upstash/ratelimit?"

Workflow

  1. Resolve the library ID. Call resolve-library-id with the library name and what to look up in the library's documentation. The tool returns matching libraries with their Context7 IDs (/org/project format), descriptions, snippet counts, and quality scores. Pick the best match — prioritize official sources, name match, and high benchmark scores.
  2. Query the docs. Call query-docs with the chosen library ID and what to look up in the library's documentation, scoped to a single concept — if the question spans multiple distinct concepts, make a separate call per concept with the same library ID, unless the question is about how the concepts interact. The tool returns documentation snippets and code examples.
  3. Answer. Cite the library ID you used and quote code examples verbatim when relevant.

If the user supplies a library ID in /org/project or /org/project/version format directly, skip step 1 and call query-docs immediately.

Constraints

  • Do not call either tool more than 3 times per question.
  • Do not pass API keys, passwords, credentials, personal data, or proprietary code as the query argument — it is sent to the Context7 API.
  • Authentication uses the CONTEXT7_API_KEY environment variable. Get a key at https://context7.com/dashboard if requests fail with an auth error.

Thêm skills từ upstash

context7-docs
upstash
Fetch up-to-date documentation and code examples for any library, framework, SDK, CLI tool, or cloud service. Use whenever the user asks about a specific…
official
context7-mcp
upstash
Kỹ năng này nên được sử dụng khi người dùng hỏi về thư viện, framework, tài liệu tham khảo API hoặc cần ví dụ mã. Kích hoạt cho các câu hỏi thiết lập, mã…
official
ctx7-cli
upstash
Sử dụng CLI ctx7 để tải tài liệu thư viện, quản lý kỹ năng lập trình AI và cấu hình Context7 MCP. Kích hoạt khi người dùng đề cập đến "ctx7" hoặc "context7",…
official
docs
upstash
Truy xuất và truy vấn tài liệu cập nhật cùng ví dụ mã nguồn từ Context7 cho bất kỳ thư viện hoặc framework lập trình nào. Sử dụng khi viết mã phụ thuộc vào…
official
documentation-lookup
upstash
Tìm nạp tài liệu thư viện hiện tại và ví dụ mã thay vì dựa vào dữ liệu huấn luyện. Phân giải tên thư viện thành ID tài liệu Context7, sau đó truy vấn thông tin thiết lập, cấu hình và tham chiếu API. Hỗ trợ các framework và thư viện chính: React, Vue, Svelte, Next.js, Express, Prisma, Supabase, Tailwind và các framework khác. Tự động kích hoạt cho các câu hỏi thiết lập, yêu cầu tạo mã và truy vấn cụ thể về framework. Trả về tài liệu nhận biết phiên bản và mã chính thức...
official
find-docs
upstash
Truy xuất tài liệu hiện tại và ví dụ mã cho bất kỳ thư viện nào bằng CLI Context7.
official
redis-js
upstash
Làm việc với SDK Upstash Redis JavaScript/TypeScript cho các thao tác Redis không máy chủ. Sử dụng để lưu cache, lưu trữ phiên, giới hạn tốc độ, bảng xếp hạng, tìm kiếm toàn văn…
official
upstash-search-js
upstash
Điểm vào cho các kỹ năng tài liệu bao gồm hướng dẫn nhanh Upstash Search, các khái niệm cốt lõi và cách sử dụng SDK TypeScript. Sử dụng khi người dùng hỏi cách bắt đầu,…
official