[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EMP53DGDG8P6FW8XJ7TR4C":3,"skill-same:01M6EMP53DGDG8P6FW8XJ7TR4C":103},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M6EMP53DGDG8P6FW8XJ7TR4C","nextjs-15-specialist",null,"Use when working with Next.js 15 features, App Router, Server Components, Server Actions, or data fetching patterns. Ensures correct usage of Server vs Client Components and modern Next.js patterns.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"nextjs 15 specialist","nextjs 15","nextjs","read","client","app","next","patterns","router","use","webfetch","components","grep","correct","js","Next.js","data","actions","server","2026-11-10 10:12:30",false,"---\nname: nextjs-15-specialist\ndescription: Use when working with Next.js 15 features, App Router, Server Components, Server Actions, or data fetching patterns. Ensures correct usage of Server vs Client Components and modern Next.js patterns.\nallowed-tools: Read, Grep, Glob, WebFetch\n---\n\n# Next.js 15 + App Router Specialist\n\n**Complete Next.js 15 reference for Quetrex development.**\n\nThis skill provides comprehensive guidance on all Next.js 15 App Router patterns, ensuring agents implement modern Next.js correctly the first time.\n\n---\n\n## CRITICAL RULES (NEVER VIOLATE)\n\nThese rules are NON-NEGOTIABLE. Violations will break builds.\n\n### 1. ALWAYS use `\u003CImage>` from `next\u002Fimage` - NEVER use `\u003Cimg>`\n\n```typescript\n\u002F\u002F ✅ ALWAYS DO THIS\nimport Image from 'next\u002Fimage'\n\n\u003CImage src=\"\u002Flogo.png\" alt=\"Logo\" width={200} height={100} \u002F>\n\u003CImage src={user.avatar} alt={user.name} width={40} height={40} \u002F>\n\n\u002F\u002F ❌ NEVER DO THIS - BUILD WILL FAIL\n\u003Cimg src=\"\u002Flogo.png\" alt=\"Logo\" \u002F>\n\u003Cimg src={user.avatar} alt={user.name} \u002F>\n```\n\n**Why:** Next.js Image component provides automatic optimization, lazy loading, and prevents layout shift. ESLint is configured to fail builds on `\u003Cimg>` usage.\n\n### 2. Server Components are DEFAULT - only add 'use client' when needed\n\n### 3. Never make async Client Components\n\n### 4. Always specify cache strategy for fetch()\n\n---\n\n## When to Use This Skill\n\nUse this skill when working with:\n- Creating new routes or pages\n- Implementing data fetching (Server Components vs Client Components)\n- Server vs Client Component decisions\n- Server Actions and form handling\n- Streaming and Suspense\n- Metadata and SEO\n- Route handlers (API routes)\n- Caching strategies\n- Performance optimization\n\n---\n\n## Complete Documentation\n\nThis skill includes comprehensive guides covering every Next.js 15 pattern:\n\n### ? [App Router Complete Guide](.\u002Fapp-router-complete.md)\n**45+ examples covering:**\n- File-based routing (page.tsx, layout.tsx, route.ts)\n- Dynamic routes ([id], [...slug], [[...slug]])\n- Route groups ((group))\n- Private folders (_folder)\n- Route handlers (API routes)\n- Layouts and templates\n- Loading UI (loading.tsx)\n- Error boundaries (error.tsx, global-error.tsx)\n- Not found pages (not-found.tsx)\n- Parallel routes (@folder)\n- Intercepting routes ((.)folder)\n- Route segment config (dynamic, revalidate, runtime)\n\n### ? [Data Fetching Complete Guide](.\u002Fdata-fetching-complete.md)\n**35+ examples covering:**\n- Server Component data fetching (async\u002Fawait)\n- Client Component data fetching (useEffect, React Query, SWR)\n- Parallel data fetching (Promise.all)\n- Sequential data fetching (waterfall prevention)\n- Streaming data (Suspense boundaries)\n- Server-Sent Events (SSE for Quetrex voice)\n- Data mutations (Server Actions)\n- Optimistic updates (useOptimistic)\n- Form handling (useFormStatus, useActionState)\n- Request deduplication\n- Preloading data\n\n### ? [Caching Strategies Guide](.\u002Fcaching-strategies.md)\n**35+ examples covering:**\n- Request memoization (automatic deduplication)\n- Data Cache (fetch cache behavior)\n- Full Route Cache (static vs dynamic)\n- Router Cache (client-side cache)\n- Cache configuration (force-cache, no-store, revalidate)\n- Cache tags (revalidateTag, revalidatePath)\n- On-demand revalidation\n- Time-based revalidation (ISR)\n- Cache debugging techniques\n- Opting out of caching\n\n### ⚡ [Server Actions Complete Guide](.\u002Fserver-actions-complete.md)\n**31+ examples covering:**\n- Basic Server Action patterns\n- Form actions (progressive enhancement)\n- Button actions (programmatic calls)\n- useFormStatus hook (loading states)\n- useActionState hook (state management)\n- useOptimistic hook (optimistic UI)\n- Error handling in actions\n- Validation with Zod\n- Returning JSON vs redirect\n- Security (authentication, CSRF)\n- Rate limiting\n- Database transactions\n\n### ? [Metadata API Guide](.\u002Fmetadata-api.md)\n**26+ examples covering:**\n- Static metadata (exported object)\n- Dynamic metadata (generateMetadata)\n- File-based metadata (icon.png, opengraph-image.png)\n- Open Graph metadata\n- Twitter Cards\n- JSON-LD structured data\n- Viewport configuration\n- PWA manifest\n- Robots.txt\n- Sitemap generation\n\n### ✅ [Pattern Validator](.\u002Fvalidate-patterns.py)\n**Executable Python script that checks:**\n- Server Components don't use client-only APIs\n- Client Components have 'use client' directive\n- Data fetching uses proper cache strategy\n- Server Actions are marked with 'use server'\n- Metadata API used correctly\n- Image optimization (\u003CImage> not \u003Cimg>)\n- Dynamic imports for heavy components\n\nRun with: `python validate-patterns.py \u002Fpath\u002Fto\u002Fsrc`\n\n---\n\n## Quick Reference\n\n### Server vs Client Components Decision Tree\n\n```\nDo you need interactivity (onClick, onChange, etc.)?\n├─ YES → Client Component ('use client')\n└─ NO → Server Component (default)\n\nDo you need React hooks (useState, useEffect)?\n├─ YES → Client Component\n└─ NO → Server Component\n\nDo you need browser APIs (window, localStorage)?\n├─ YES → Client Component\n└─ NO → Server Component\n\nDo you need to fetch data?\n├─ Use Server Component (preferred)\n└─ Only use Client Component if data must be client-side\n\nIs the component purely presentational?\n└─ Server Component (better performance)\n```\n\n### Common Patterns\n\n#### 1. Server Component Data Fetching\n\n```typescript\n\u002F\u002F app\u002Fprojects\u002Fpage.tsx\nexport default async function ProjectsPage() {\n  const projects = await db.project.findMany()\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n#### 2. Client Component with Interactivity\n\n```typescript\n\u002F\u002F components\u002FProjectCard.tsx\n'use client'\n\nimport { useState } from 'react'\n\nexport function ProjectCard({ project }: Props) {\n  const [loading, setLoading] = useState(false)\n\n  const handleDelete = async () => {\n    setLoading(true)\n    await deleteProject(project.id)\n    setLoading(false)\n  }\n\n  return (\n    \u003Cdiv>\n      \u003Ch2>{project.name}\u003C\u002Fh2>\n      \u003Cbutton onClick={handleDelete} disabled={loading}>\n        Delete\n      \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n#### 3. Server Action with Form\n\n```typescript\n\u002F\u002F app\u002Factions.ts\n'use server'\n\nexport async function createProject(formData: FormData) {\n  const name = formData.get('name') as string\n  const project = await db.project.create({ data: { name } })\n  revalidatePath('\u002Fprojects')\n  return { success: true, project }\n}\n\n\u002F\u002F app\u002Fprojects\u002Fnew\u002Fpage.tsx\nimport { createProject } from '@\u002Fapp\u002Factions'\n\nexport default function NewProjectPage() {\n  return (\n    \u003Cform action={createProject}>\n      \u003Cinput name=\"name\" required \u002F>\n      \u003Cbutton type=\"submit\">Create\u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n#### 4. Streaming with Suspense\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Fpage.tsx\nimport { Suspense } from 'react'\n\nexport default function DashboardPage() {\n  return (\n    \u003Cdiv>\n      \u003CSuspense fallback={\u003CProjectsSkeleton \u002F>}>\n        \u003CProjectsAsync \u002F>\n      \u003C\u002FSuspense>\n      \u003CSuspense fallback={\u003CUsersSkeleton \u002F>}>\n        \u003CUsersAsync \u002F>\n      \u003C\u002FSuspense>\n    \u003C\u002Fdiv>\n  )\n}\n\nasync function ProjectsAsync() {\n  const projects = await fetchProjects() \u002F\u002F Slow query\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n#### 5. Dynamic Metadata\n\n```typescript\n\u002F\u002F app\u002Fblog\u002F[slug]\u002Fpage.tsx\nimport type { Metadata } from 'next'\n\nexport async function generateMetadata({\n  params,\n}: {\n  params: Promise\u003C{ slug: string }>\n}): Promise\u003CMetadata> {\n  const { slug } = await params\n  const post = await fetchPost(slug)\n\n  return {\n    title: post.title,\n    description: post.excerpt,\n    openGraph: {\n      title: post.title,\n      description: post.excerpt,\n      images: [post.coverImage],\n    },\n  }\n}\n```\n\n---\n\n## Best Practices for Quetrex\n\n### 1. Default to Server Components\n\n```typescript\n\u002F\u002F ✅ DO: Server Component (default)\nexport default async function ProjectsPage() {\n  const projects = await fetchProjects()\n  return \u003CProjectList projects={projects} \u002F>\n}\n\n\u002F\u002F ❌ DON'T: Client Component when not needed\n'use client'\nexport default function ProjectsPage() {\n  const [projects, setProjects] = useState([])\n  useEffect(() => {\n    fetchProjects().then(setProjects)\n  }, [])\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n### 2. Use Proper Cache Strategy\n\n```typescript\n\u002F\u002F Static content (cached forever)\nconst categories = await fetch('https:\u002F\u002Fapi.example.com\u002Fcategories', {\n  cache: 'force-cache',\n}).then(r => r.json())\n\n\u002F\u002F Dynamic content (no cache)\nconst user = await fetch('https:\u002F\u002Fapi.example.com\u002Fme', {\n  cache: 'no-store',\n}).then(r => r.json())\n\n\u002F\u002F ISR (revalidate every hour)\nconst products = await fetch('https:\u002F\u002Fapi.example.com\u002Fproducts', {\n  next: { revalidate: 3600 },\n}).then(r => r.json())\n```\n\n### 3. Implement Proper Error Boundaries\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Ferror.tsx\n'use client'\n\nexport default function DashboardError({\n  error,\n  reset,\n}: {\n  error: Error\n  reset: () => void\n}) {\n  return (\n    \u003Cdiv>\n      \u003Ch2>Something went wrong!\u003C\u002Fh2>\n      \u003Cbutton onClick={reset}>Try again\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### 4. Use Loading States\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Floading.tsx\nexport default function DashboardLoading() {\n  return \u003CDashboardSkeleton \u002F>\n}\n```\n\n### 5. Optimize Images\n\n```typescript\n\u002F\u002F ✅ DO: Use next\u002Fimage\nimport Image from 'next\u002Fimage'\n\nexport function ProjectCard({ project }) {\n  return (\n    \u003CImage\n      src={project.image}\n      alt={project.name}\n      width={400}\n      height={300}\n    \u002F>\n  )\n}\n\n\u002F\u002F ❌ DON'T: Use \u003Cimg> tag\nexport function ProjectCard({ project }) {\n  return \u003Cimg src={project.image} alt={project.name} \u002F>\n}\n```\n\n---\n\n## Common Mistakes to Avoid\n\n### ❌ Mistake 1: Async Client Component\n\n```typescript\n\u002F\u002F ❌ DON'T: This is a syntax error\n'use client'\n\nexport default async function BadComponent() {\n  const data = await fetch('\u002Fapi\u002Fdata')\n  return \u003Cdiv>{data}\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ DO: Use Server Component or useEffect\nexport default async function GoodComponent() {\n  const data = await fetch('\u002Fapi\u002Fdata')\n  return \u003Cdiv>{data}\u003C\u002Fdiv>\n}\n```\n\n### ❌ Mistake 2: Client APIs in Server Component\n\n```typescript\n\u002F\u002F ❌ DON'T: Server Components can't use browser APIs\nexport default function BadComponent() {\n  const [state, setState] = useState(false) \u002F\u002F Error!\n  return \u003Cdiv>{state}\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ DO: Add 'use client' directive\n'use client'\n\nexport default function GoodComponent() {\n  const [state, setState] = useState(false)\n  return \u003Cdiv>{state}\u003C\u002Fdiv>\n}\n```\n\n### ❌ Mistake 3: Missing Cache Strategy\n\n```typescript\n\u002F\u002F ❌ DON'T: Unclear caching behavior\nconst data = await fetch('\u002Fapi\u002Fdata')\n\n\u002F\u002F ✅ DO: Explicit cache strategy\nconst data = await fetch('\u002Fapi\u002Fdata', {\n  cache: 'no-store', \u002F\u002F or 'force-cache', or { next: { revalidate: 60 } }\n})\n```\n\n### ❌ Mistake 4: Not Using \u003CImage>\n\n```typescript\n\u002F\u002F ❌ DON'T: Unoptimized images\n\u003Cimg src=\"\u002Flogo.png\" alt=\"Logo\" \u002F>\n\n\u002F\u002F ✅ DO: Use Next.js Image optimization\n\u003CImage src=\"\u002Flogo.png\" alt=\"Logo\" width={200} height={100} \u002F>\n```\n\n---\n\n## Troubleshooting\n\n### Error: \"You're importing a component that needs useState...\"\n\n**Solution:** Add `'use client'` to the component file.\n\n### Error: \"async\u002Fawait is not valid in Client Components\"\n\n**Solution:** Remove `'use client'` or use `useEffect` instead of async component.\n\n### Error: \"process is not defined\"\n\n**Solution:** Environment variables in Client Components need `NEXT_PUBLIC_` prefix.\n\n### Error: \"Headers already sent\"\n\n**Solution:** Don't use `headers()` or `cookies()` after sending response. Call them before any streaming.\n\n---\n\n## Official Documentation\n\n- **Next.js 15.5 Docs**: https:\u002F\u002Fnextjs.org\u002Fdocs\n- **App Router**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\n- **Data Fetching**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fdata-fetching\n- **Server Actions**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fdata-fetching\u002Fserver-actions-and-mutations\n- **Caching**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fcaching\n- **Metadata**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Foptimizing\u002Fmetadata\n- **Examples**: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js\u002Ftree\u002Fcanary\u002Fexamples\n\n---\n\n## Validation\n\nRun the pattern validator to check your code:\n\n```bash\npython .claude\u002Fskills\u002Fnextjs-15-specialist\u002Fvalidate-patterns.py src\u002F\n```\n\nThe validator checks for:\n- ✅ Async Client Components (forbidden)\n- ✅ Client APIs in Server Components\n- ✅ 'use client' directive placement\n- ✅ Server Action async functions\n- ✅ Image optimization\n- ✅ Metadata in dynamic routes\n- ✅ Dynamic imports for heavy components\n- ✅ Fetch cache strategies\n- ✅ Route segment config\n\n---\n\n## Summary\n\n**This skill ensures you:**\n1. Choose correct component type (Server vs Client)\n2. Implement proper data fetching patterns\n3. Use appropriate caching strategies\n4. Handle Server Actions correctly\n5. Optimize metadata and SEO\n6. Avoid common Next.js mistakes\n7. Follow Quetrex's architecture guidelines\n\n**When in doubt:**\n- Read the specific guide (links above)\n- Run the validator\n- Check official Next.js 15 docs\n- Default to Server Components\n\n---\n\n*Last updated: 2025-11-23*\n*Next.js Version: 15.5*\n*Total Examples: 150+*\n*Total Lines: 4,000+*\n","# Next.js 15 + App Router Specialist\n\n**Complete Next.js 15 reference for Quetrex development.**\n\nThis skill provides comprehensive guidance on all Next.js 15 App Router patterns, ensuring agents implement modern Next.js correctly the first time.\n\n---\n\n## CRITICAL RULES (NEVER VIOLATE)\n\nThese rules are NON-NEGOTIABLE. Violations will break builds.\n\n### 1. ALWAYS use `\u003CImage>` from `next\u002Fimage` - NEVER use `\u003Cimg>`\n\n```typescript\n\u002F\u002F ✅ ALWAYS DO THIS\nimport Image from 'next\u002Fimage'\n\n\u003CImage src=\"\u002Flogo.png\" alt=\"Logo\" width={200} height={100} \u002F>\n\u003CImage src={user.avatar} alt={user.name} width={40} height={40} \u002F>\n\n\u002F\u002F ❌ NEVER DO THIS - BUILD WILL FAIL\n\u003Cimg src=\"\u002Flogo.png\" alt=\"Logo\" \u002F>\n\u003Cimg src={user.avatar} alt={user.name} \u002F>\n```\n\n**Why:** Next.js Image component provides automatic optimization, lazy loading, and prevents layout shift. ESLint is configured to fail builds on `\u003Cimg>` usage.\n\n### 2. Server Components are DEFAULT - only add 'use client' when needed\n\n### 3. Never make async Client Components\n\n### 4. Always specify cache strategy for fetch()\n\n---\n\n## When to Use This Skill\n\nUse this skill when working with:\n- Creating new routes or pages\n- Implementing data fetching (Server Components vs Client Components)\n- Server vs Client Component decisions\n- Server Actions and form handling\n- Streaming and Suspense\n- Metadata and SEO\n- Route handlers (API routes)\n- Caching strategies\n- Performance optimization\n\n---\n\n## Complete Documentation\n\nThis skill includes comprehensive guides covering every Next.js 15 pattern:\n\n### ? [App Router Complete Guide](.\u002Fapp-router-complete.md)\n**45+ examples covering:**\n- File-based routing (page.tsx, layout.tsx, route.ts)\n- Dynamic routes ([id], [...slug], [[...slug]])\n- Route groups ((group))\n- Private folders (_folder)\n- Route handlers (API routes)\n- Layouts and templates\n- Loading UI (loading.tsx)\n- Error boundaries (error.tsx, global-error.tsx)\n- Not found pages (not-found.tsx)\n- Parallel routes (@folder)\n- Intercepting routes ((.)folder)\n- Route segment config (dynamic, revalidate, runtime)\n\n### ? [Data Fetching Complete Guide](.\u002Fdata-fetching-complete.md)\n**35+ examples covering:**\n- Server Component data fetching (async\u002Fawait)\n- Client Component data fetching (useEffect, React Query, SWR)\n- Parallel data fetching (Promise.all)\n- Sequential data fetching (waterfall prevention)\n- Streaming data (Suspense boundaries)\n- Server-Sent Events (SSE for Quetrex voice)\n- Data mutations (Server Actions)\n- Optimistic updates (useOptimistic)\n- Form handling (useFormStatus, useActionState)\n- Request deduplication\n- Preloading data\n\n### ? [Caching Strategies Guide](.\u002Fcaching-strategies.md)\n**35+ examples covering:**\n- Request memoization (automatic deduplication)\n- Data Cache (fetch cache behavior)\n- Full Route Cache (static vs dynamic)\n- Router Cache (client-side cache)\n- Cache configuration (force-cache, no-store, revalidate)\n- Cache tags (revalidateTag, revalidatePath)\n- On-demand revalidation\n- Time-based revalidation (ISR)\n- Cache debugging techniques\n- Opting out of caching\n\n### ⚡ [Server Actions Complete Guide](.\u002Fserver-actions-complete.md)\n**31+ examples covering:**\n- Basic Server Action patterns\n- Form actions (progressive enhancement)\n- Button actions (programmatic calls)\n- useFormStatus hook (loading states)\n- useActionState hook (state management)\n- useOptimistic hook (optimistic UI)\n- Error handling in actions\n- Validation with Zod\n- Returning JSON vs redirect\n- Security (authentication, CSRF)\n- Rate limiting\n- Database transactions\n\n### ? [Metadata API Guide](.\u002Fmetadata-api.md)\n**26+ examples covering:**\n- Static metadata (exported object)\n- Dynamic metadata (generateMetadata)\n- File-based metadata (icon.png, opengraph-image.png)\n- Open Graph metadata\n- Twitter Cards\n- JSON-LD structured data\n- Viewport configuration\n- PWA manifest\n- Robots.txt\n- Sitemap generation\n\n### ✅ [Pattern Validator](.\u002Fvalidate-patterns.py)\n**Executable Python script that checks:**\n- Server Components don't use client-only APIs\n- Client Components have 'use client' directive\n- Data fetching uses proper cache strategy\n- Server Actions are marked with 'use server'\n- Metadata API used correctly\n- Image optimization (\u003CImage> not \u003Cimg>)\n- Dynamic imports for heavy components\n\nRun with: `python validate-patterns.py \u002Fpath\u002Fto\u002Fsrc`\n\n---\n\n## Quick Reference\n\n### Server vs Client Components Decision Tree\n\n```\nDo you need interactivity (onClick, onChange, etc.)?\n├─ YES → Client Component ('use client')\n└─ NO → Server Component (default)\n\nDo you need React hooks (useState, useEffect)?\n├─ YES → Client Component\n└─ NO → Server Component\n\nDo you need browser APIs (window, localStorage)?\n├─ YES → Client Component\n└─ NO → Server Component\n\nDo you need to fetch data?\n├─ Use Server Component (preferred)\n└─ Only use Client Component if data must be client-side\n\nIs the component purely presentational?\n└─ Server Component (better performance)\n```\n\n### Common Patterns\n\n#### 1. Server Component Data Fetching\n\n```typescript\n\u002F\u002F app\u002Fprojects\u002Fpage.tsx\nexport default async function ProjectsPage() {\n  const projects = await db.project.findMany()\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n#### 2. Client Component with Interactivity\n\n```typescript\n\u002F\u002F components\u002FProjectCard.tsx\n'use client'\n\nimport { useState } from 'react'\n\nexport function ProjectCard({ project }: Props) {\n  const [loading, setLoading] = useState(false)\n\n  const handleDelete = async () => {\n    setLoading(true)\n    await deleteProject(project.id)\n    setLoading(false)\n  }\n\n  return (\n    \u003Cdiv>\n      \u003Ch2>{project.name}\u003C\u002Fh2>\n      \u003Cbutton onClick={handleDelete} disabled={loading}>\n        Delete\n      \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n#### 3. Server Action with Form\n\n```typescript\n\u002F\u002F app\u002Factions.ts\n'use server'\n\nexport async function createProject(formData: FormData) {\n  const name = formData.get('name') as string\n  const project = await db.project.create({ data: { name } })\n  revalidatePath('\u002Fprojects')\n  return { success: true, project }\n}\n\n\u002F\u002F app\u002Fprojects\u002Fnew\u002Fpage.tsx\nimport { createProject } from '@\u002Fapp\u002Factions'\n\nexport default function NewProjectPage() {\n  return (\n    \u003Cform action={createProject}>\n      \u003Cinput name=\"name\" required \u002F>\n      \u003Cbutton type=\"submit\">Create\u003C\u002Fbutton>\n    \u003C\u002Fform>\n  )\n}\n```\n\n#### 4. Streaming with Suspense\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Fpage.tsx\nimport { Suspense } from 'react'\n\nexport default function DashboardPage() {\n  return (\n    \u003Cdiv>\n      \u003CSuspense fallback={\u003CProjectsSkeleton \u002F>}>\n        \u003CProjectsAsync \u002F>\n      \u003C\u002FSuspense>\n      \u003CSuspense fallback={\u003CUsersSkeleton \u002F>}>\n        \u003CUsersAsync \u002F>\n      \u003C\u002FSuspense>\n    \u003C\u002Fdiv>\n  )\n}\n\nasync function ProjectsAsync() {\n  const projects = await fetchProjects() \u002F\u002F Slow query\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n#### 5. Dynamic Metadata\n\n```typescript\n\u002F\u002F app\u002Fblog\u002F[slug]\u002Fpage.tsx\nimport type { Metadata } from 'next'\n\nexport async function generateMetadata({\n  params,\n}: {\n  params: Promise\u003C{ slug: string }>\n}): Promise\u003CMetadata> {\n  const { slug } = await params\n  const post = await fetchPost(slug)\n\n  return {\n    title: post.title,\n    description: post.excerpt,\n    openGraph: {\n      title: post.title,\n      description: post.excerpt,\n      images: [post.coverImage],\n    },\n  }\n}\n```\n\n---\n\n## Best Practices for Quetrex\n\n### 1. Default to Server Components\n\n```typescript\n\u002F\u002F ✅ DO: Server Component (default)\nexport default async function ProjectsPage() {\n  const projects = await fetchProjects()\n  return \u003CProjectList projects={projects} \u002F>\n}\n\n\u002F\u002F ❌ DON'T: Client Component when not needed\n'use client'\nexport default function ProjectsPage() {\n  const [projects, setProjects] = useState([])\n  useEffect(() => {\n    fetchProjects().then(setProjects)\n  }, [])\n  return \u003CProjectList projects={projects} \u002F>\n}\n```\n\n### 2. Use Proper Cache Strategy\n\n```typescript\n\u002F\u002F Static content (cached forever)\nconst categories = await fetch('https:\u002F\u002Fapi.example.com\u002Fcategories', {\n  cache: 'force-cache',\n}).then(r => r.json())\n\n\u002F\u002F Dynamic content (no cache)\nconst user = await fetch('https:\u002F\u002Fapi.example.com\u002Fme', {\n  cache: 'no-store',\n}).then(r => r.json())\n\n\u002F\u002F ISR (revalidate every hour)\nconst products = await fetch('https:\u002F\u002Fapi.example.com\u002Fproducts', {\n  next: { revalidate: 3600 },\n}).then(r => r.json())\n```\n\n### 3. Implement Proper Error Boundaries\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Ferror.tsx\n'use client'\n\nexport default function DashboardError({\n  error,\n  reset,\n}: {\n  error: Error\n  reset: () => void\n}) {\n  return (\n    \u003Cdiv>\n      \u003Ch2>Something went wrong!\u003C\u002Fh2>\n      \u003Cbutton onClick={reset}>Try again\u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  )\n}\n```\n\n### 4. Use Loading States\n\n```typescript\n\u002F\u002F app\u002Fdashboard\u002Floading.tsx\nexport default function DashboardLoading() {\n  return \u003CDashboardSkeleton \u002F>\n}\n```\n\n### 5. Optimize Images\n\n```typescript\n\u002F\u002F ✅ DO: Use next\u002Fimage\nimport Image from 'next\u002Fimage'\n\nexport function ProjectCard({ project }) {\n  return (\n    \u003CImage\n      src={project.image}\n      alt={project.name}\n      width={400}\n      height={300}\n    \u002F>\n  )\n}\n\n\u002F\u002F ❌ DON'T: Use \u003Cimg> tag\nexport function ProjectCard({ project }) {\n  return \u003Cimg src={project.image} alt={project.name} \u002F>\n}\n```\n\n---\n\n## Common Mistakes to Avoid\n\n### ❌ Mistake 1: Async Client Component\n\n```typescript\n\u002F\u002F ❌ DON'T: This is a syntax error\n'use client'\n\nexport default async function BadComponent() {\n  const data = await fetch('\u002Fapi\u002Fdata')\n  return \u003Cdiv>{data}\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ DO: Use Server Component or useEffect\nexport default async function GoodComponent() {\n  const data = await fetch('\u002Fapi\u002Fdata')\n  return \u003Cdiv>{data}\u003C\u002Fdiv>\n}\n```\n\n### ❌ Mistake 2: Client APIs in Server Component\n\n```typescript\n\u002F\u002F ❌ DON'T: Server Components can't use browser APIs\nexport default function BadComponent() {\n  const [state, setState] = useState(false) \u002F\u002F Error!\n  return \u003Cdiv>{state}\u003C\u002Fdiv>\n}\n\n\u002F\u002F ✅ DO: Add 'use client' directive\n'use client'\n\nexport default function GoodComponent() {\n  const [state, setState] = useState(false)\n  return \u003Cdiv>{state}\u003C\u002Fdiv>\n}\n```\n\n### ❌ Mistake 3: Missing Cache Strategy\n\n```typescript\n\u002F\u002F ❌ DON'T: Unclear caching behavior\nconst data = await fetch('\u002Fapi\u002Fdata')\n\n\u002F\u002F ✅ DO: Explicit cache strategy\nconst data = await fetch('\u002Fapi\u002Fdata', {\n  cache: 'no-store', \u002F\u002F or 'force-cache', or { next: { revalidate: 60 } }\n})\n```\n\n### ❌ Mistake 4: Not Using \u003CImage>\n\n```typescript\n\u002F\u002F ❌ DON'T: Unoptimized images\n\u003Cimg src=\"\u002Flogo.png\" alt=\"Logo\" \u002F>\n\n\u002F\u002F ✅ DO: Use Next.js Image optimization\n\u003CImage src=\"\u002Flogo.png\" alt=\"Logo\" width={200} height={100} \u002F>\n```\n\n---\n\n## Troubleshooting\n\n### Error: \"You're importing a component that needs useState...\"\n\n**Solution:** Add `'use client'` to the component file.\n\n### Error: \"async\u002Fawait is not valid in Client Components\"\n\n**Solution:** Remove `'use client'` or use `useEffect` instead of async component.\n\n### Error: \"process is not defined\"\n\n**Solution:** Environment variables in Client Components need `NEXT_PUBLIC_` prefix.\n\n### Error: \"Headers already sent\"\n\n**Solution:** Don't use `headers()` or `cookies()` after sending response. Call them before any streaming.\n\n---\n\n## Official Documentation\n\n- **Next.js 15.5 Docs**: https:\u002F\u002Fnextjs.org\u002Fdocs\n- **App Router**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\n- **Data Fetching**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fdata-fetching\n- **Server Actions**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fdata-fetching\u002Fserver-actions-and-mutations\n- **Caching**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fcaching\n- **Metadata**: https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Foptimizing\u002Fmetadata\n- **Examples**: https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js\u002Ftree\u002Fcanary\u002Fexamples\n\n---\n\n## Validation\n\nRun the pattern validator to check your code:\n\n```bash\npython .claude\u002Fskills\u002Fnextjs-15-specialist\u002Fvalidate-patterns.py src\u002F\n```\n\nThe validator checks for:\n- ✅ Async Client Components (forbidden)\n- ✅ Client APIs in Server Components\n- ✅ 'use client' directive placement\n- ✅ Server Action async functions\n- ✅ Image optimization\n- ✅ Metadata in dynamic routes\n- ✅ Dynamic imports for heavy components\n- ✅ Fetch cache strategies\n- ✅ Route segment config\n\n---\n\n## Summary\n\n**This skill ensures you:**\n1. Choose correct component type (Server vs Client)\n2. Implement proper data fetching patterns\n3. Use appropriate caching strategies\n4. Handle Server Actions correctly\n5. Optimize metadata and SEO\n6. Avoid common Next.js mistakes\n7. Follow Quetrex's architecture guidelines\n\n**When in doubt:**\n- Read the specific guide (links above)\n- Run the validator\n- Check official Next.js 15 docs\n- Default to Server Components\n\n---\n\n*Last updated: 2025-11-23*\n*Next.js Version: 15.5*\n*Total Examples: 150+*\n*Total Lines: 4,000+*\n",{"name":5,"description":7,"allowed-tools":43},"Read, Grep, Glob, WebFetch","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill nextjs-15-specialist",{"tool":59,"command":60},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill nextjs-15-specialist",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill nextjs-15-specialist","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002FSKILL.md",true,[67,73,77,81,85,89,93,97],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"app-router-complete.md","REFERENCE","参考文档",28472,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fapp-router-complete.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"caching-strategies.md",19177,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fcaching-strategies.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"data-fetching-complete.md",27208,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fdata-fetching-complete.md",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"metadata-api.md",16104,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fmetadata-api.md",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdebug-logging.md",51,"https:\u002F\u002Fgithub.com\u002FJustinDFuller\u002Fagent-session-manager\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffeature-debug-logging\u002Freferences\u002Fdebug-logging.md",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"server-actions-complete.md",23434,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fserver-actions-complete.md",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"skill-report.json",10678,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fskill-report.json",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"validate-patterns.py","SCRIPT","脚本",12132,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fbarnhardt-enterprises-inc\u002Fnextjs-15-specialist\u002Fvalidate-patterns.py",[104,113,122,131,137,143],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":38},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[110,111,112],"model","model hierarchy","model hierarchy skill",{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":38},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[119,120,121],"MCP","zoom","zoom mcp",{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":38},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[128,129,130,120],"sdk","zoom apps sdk","apps",{"skillNo":132,"name":133,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":38},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[133],{"skillNo":138,"name":139,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[139],{"skillNo":144,"name":145,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[145]]