← Back to list

nextjs-16-app-router
by ItsKumailHere
⭐ 0🍴 0📅 Jan 9, 2026
SKILL.md
name: nextjs-16-app-router description: Enforces correct Next.js 16 App Router usage. Use when building pages, layouts, routing, data fetching, or deciding between Server vs Client Components in Next.js 16 / React 19.
Next.js 16 App Router Skill
This Skill enforces correct, modern, production-safe App Router patterns for Next.js 16.
Core Rules (Non-Negotiable)
-
Server Components by default
- Every file in
app/is a Server Component unless explicitly marked with"use client".
- Every file in
-
Client Components ONLY when
- Browser-only APIs are required (
window,localStorage) - React client hooks are required (
useState,useEffect) - Event handlers or interactive UI is needed
- Browser-only APIs are required (
-
Data Fetching Rules
- Prefer fetching data in:
- Server Components
- Route Handlers (
app/api/**/route.ts) - Server Actions
- Client-side fetching is allowed only for:
- highly interactive
- real-time
- user-triggered updates
and must be deliberate (e.g., SWR, React Query).
- Prefer fetching data in:
-
Routing is file-system driven
- No custom routers
- No conditional route trees
-
Auth boundaries are strict
- Tokens and secrets may only exist in:
- Server Components
- Middleware
- Route Handlers
- Server Actions
- Client Components receive data, never credentials.
- Tokens and secrets may only exist in:
For detailed rules, see:
When to Query Context7
Use Context7 only when version-specific behavior matters, such as:
- App Router middleware behavior
- Route handler semantics
- React 19 Server Actions
- Caching defaults in Next.js 16+
Avoid querying Context7 for:
- basic routing
- React fundamentals
Score
Total Score
40/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon