Context7 Documentation Fetching
This skill enables fetching up-to-date, version-specific documentation directly from official sources.
Problem Solved
LLMs have stale training data. When working with Next.js 15, React 19, or any library that evolved since the model's cutoff date, you get:
- Hallucinated APIs that don't exist
- Deprecated patterns
- Outdated code examples
When to Use
- Working with any framework/library (React, Next.js, Vue, Astro, Tailwind, etc.)
- Need current official documentation
- Want accurate code examples
- Encountering unfamiliar APIs
- Starting a new project with latest versions
How to Activate
Simply include "use context7" in your prompt:
use context7 でNext.js 15のApp Routerについて教えて
use context7 React 19の新機能を使ってコンポーネントを作って
Available Tools
1. resolve-library-id
Converts library name to Context7 ID.
Input: "next.js"
Output: "/vercel/next.js/v15.0.0"
2. get-library-docs
Fetches documentation chunks and code examples.
Parameters:
context7_id: Library ID from resolve-library-id
topic (optional): Specific topic to filter
tokens (optional): Max tokens (default 5000)
Example Usage
Basic Documentation Fetch
User: use context7 でReact 19のuseActionStateの使い方を教えて
AI: [Calls resolve-library-id with "react"]
[Calls get-library-docs with topic "useActionState"]
[Returns current, accurate documentation]
Framework Setup
User: use context7 で最新のAstro 5プロジェクトをセットアップして
AI: [Fetches current Astro 5 documentation]
[Provides accurate setup commands and configuration]
Supported Libraries
Context7 supports documentation from major frameworks and libraries:
| Category |
Libraries |
| Frontend |
React, Vue, Svelte, Angular, Solid |
| Meta-frameworks |
Next.js, Nuxt, Astro, Remix, SvelteKit |
| Styling |
Tailwind CSS, CSS-in-JS libraries |
| State |
Redux, Zustand, Jotai, Recoil |
| Testing |
Jest, Vitest, Playwright, Cypress |
| Backend |
Express, Fastify, Hono, tRPC |
| Database |
Prisma, Drizzle, TypeORM |
| Build |
Vite, esbuild, webpack, turbopack |
Best Practices
Always use for rapidly evolving frameworks
- Next.js (major updates frequently)
- React (new features in v19)
- Tailwind (v4 breaking changes)
Specify version when needed
use context7 Next.js 15.1の新機能
Combine with specific topics
use context7 Prismaのリレーション設定
Use for debugging
use context7 このエラーはReact 19で解決されてる?
Integration with TAISUN
Context7 is automatically available via MCP. No additional setup required.
When you include "use context7" or work with framework-specific tasks, the system will:
- Detect the library/framework
- Resolve the Context7 ID
- Fetch relevant documentation
- Provide accurate, current information
Source
1---2name: context7-docs3description: Use this skill when working with any framework or library (React, Next.js, Vue, Astro, etc.) to fetch up-to-date documentation and prevent hallucinated APIs. Triggers on keywords like "use context7", "latest docs", "current API", or when working with rapidly evolving frameworks.4---5
6# Context7 Documentation Fetching
7
8This skill enables fetching up-to-date, version-specific documentation directly from official sources.
9
10## Problem Solved
11
12LLMs have stale training data. When working with Next.js 15, React 19, or any library that evolved since the model's cutoff date, you get:
13- Hallucinated APIs that don't exist
14- Deprecated patterns
15- Outdated code examples
16
17## When to Use
18
19- Working with any framework/library (React, Next.js, Vue, Astro, Tailwind, etc.)
20- Need current official documentation
21- Want accurate code examples
22- Encountering unfamiliar APIs
23- Starting a new project with latest versions
24
25## How to Activate
26
27Simply include "use context7" in your prompt:
28
29```
30use context7 でNext.js 15のApp Routerについて教えて
31```
32
33```
34use context7 React 19の新機能を使ってコンポーネントを作って
35```
36
37## Available Tools
38
39### 1. resolve-library-id
40Converts library name to Context7 ID.
41
42```
43Input: "next.js"
44Output: "/vercel/next.js/v15.0.0"
45```
46
47### 2. get-library-docs
48Fetches documentation chunks and code examples.
49
50Parameters:
51- `context7_id`: Library ID from resolve-library-id
52- `topic` (optional): Specific topic to filter
53- `tokens` (optional): Max tokens (default 5000)
54
55## Example Usage
56
57### Basic Documentation Fetch
58
59```
60User: use context7 でReact 19のuseActionStateの使い方を教えて
61
62AI: [Calls resolve-library-id with "react"]
63 [Calls get-library-docs with topic "useActionState"]
64 [Returns current, accurate documentation]
65```
66
67### Framework Setup
68
69```
70User: use context7 で最新のAstro 5プロジェクトをセットアップして
71
72AI: [Fetches current Astro 5 documentation]
73 [Provides accurate setup commands and configuration]
74```
75
76## Supported Libraries
77
78Context7 supports documentation from major frameworks and libraries:
79
80| Category | Libraries |
81|----------|-----------|
82| **Frontend** | React, Vue, Svelte, Angular, Solid |
83| **Meta-frameworks** | Next.js, Nuxt, Astro, Remix, SvelteKit |
84| **Styling** | Tailwind CSS, CSS-in-JS libraries |
85| **State** | Redux, Zustand, Jotai, Recoil |
86| **Testing** | Jest, Vitest, Playwright, Cypress |
87| **Backend** | Express, Fastify, Hono, tRPC |
88| **Database** | Prisma, Drizzle, TypeORM |
89| **Build** | Vite, esbuild, webpack, turbopack |
90
91## Best Practices
92
931. **Always use for rapidly evolving frameworks**
94 - Next.js (major updates frequently)
95 - React (new features in v19)
96 - Tailwind (v4 breaking changes)
97
982. **Specify version when needed**
99 ```
100 use context7 Next.js 15.1の新機能
101 ```
102
1033. **Combine with specific topics**
104 ```
105 use context7 Prismaのリレーション設定
106 ```
107
1084. **Use for debugging**
109 ```
110 use context7 このエラーはReact 19で解決されてる?
111 ```
112
113## Integration with TAISUN
114
115Context7 is automatically available via MCP. No additional setup required.
116
117When you include "use context7" or work with framework-specific tasks, the system will:
1181. Detect the library/framework
1192. Resolve the Context7 ID
1203. Fetch relevant documentation
1214. Provide accurate, current information
122
123## Source
124
125- [Context7 GitHub](https://github.com/upstash/context7)
126- [Upstash Blog](https://upstash.com/blog/context7-mcp)