Communitygithub.com

ComeOnOliver/skillshub

Entwickle Next.js 16-Anwendungen mit den korrekten Patterns und ansprechendem Design. Verwende dies beim Erstellen von Seiten, Layouts, dynamischen Routen, beim Upgrade von Next.js 15 oder bei der Implementierung von proxy.ts. Deckt Breaking Changes (async params/searchParams, Turbopack, cacheComponents) und Frontend-Ästhetik ab. Nicht geeignet für Nicht-React- oder reine Backend-Anwendungen.

Was ist skillshub?

Dieses Skill 'ComeOnOliver/skillshub' ist ein umfassender Leitfaden zur Entwicklung von Next.js 16-Anwendungen, der sich auf korrekte Patterns, wichtige Breaking Changes und ein markantes Design konzentriert. Es ist besonders nützlich für Entwickler, die von Next.js 15 upgraden oder neue Projekte mit Next.js 16 starten, da es die kritischsten Änderungen wie die Umstellung von `params` und `searchParams` auf Promises detailliert erklärt. Das Skill unterstützt die Plattformen Claude Code, Cursor und Codex und bietet praktische Codebeispiele für App Router Layouts, dynamische Routen, Server Actions, API-Routen und den neuen `proxy.ts` anstelle von `middleware.ts`. Es integriert Tools wie `shadcn/ui` für die UI-Entwicklung und `next-devtools-mcp` für Laufzeitdiagnose und automatisierte Upgrades. Die umfassende Dokumentation, inklusive Projektstruktur und Verifizierungsschritten, stellt sicher, dass Entwickler konsistente und zukunftssichere Next.js 16-Anwendungen erstellen können.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/asmayaseen/building-nextjs-apps

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Next.js 16 Anwendungen

Erstelle Next.js 16-Anwendungen korrekt mit einem markanten Design.

Kritische Breaking Changes (Next.js 16)

1. params und searchParams sind jetzt Promises

DAS IST DER HÄUFIGSTE FEHLER.

// FALSCH - Next.js 15 Pattern (WIRD FEHLSCHLAGEN)
export default function Page({ params }: { params: { id: string } }) {
  return <div>ID: {params.id}</div>
}

// RICHTIG - Next.js 16 Pattern
export default async function Page({
  params,
}: {
  params: Promise<{ id: string }>
}) {
  const { id } = await params
  return <div>ID: {id}</div>
}

2. Client-Komponenten benötigen den use()-Hook

"use client"
import { use } from "react"

export default function ClientPage({
  params,
}: {
  params: Promise<{ id: string }>
}) {
  const { id } = use(params)
  return <div>ID: {id}</div>
}

3. searchParams sind ebenfalls asynchron

export default async function Page({
  searchParams,
}: {
  searchParams: Promise<{ page?: string }>
}) {
  const { page } = await searchParams
  return <div>Seite: {page ?? "1"}</div>
}

Kernmuster

Projekteinrichtung

npx create-next-app@latest my-app --typescript --tailwind --eslint
cd my-app

# shadcn/ui hinzufügen
npx shadcn@latest init
npx shadcn@latest add button form dialog table sidebar

App Router Layout

// app/layout.tsx
export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="de">
      <body className="min-h-screen">
        {children}
      </body>
    </html>
  )
}

Dynamische Routen

// app/tasks/[id]/page.tsx
export default async function TaskPage({
  params,
}: {
  params: Promise<{ id: string }>
}) {
  const { id } = await params
  const task = await getTask(id)

  return (
    <main>
      <h1>{task.title}</h1>
    </main>
  )
}

Server-Aktionen

// app/actions.ts
"use server"

import { revalidatePath } from "next/cache"

export async function createTask(formData: FormData) {
  const title = formData.get("title") as string

  await db.insert(tasks).values({ title })

  revalidatePath("/tasks")
}

// Verwendung in einer Komponente
<form action={createTask}>
  <input name="title" />
  <button type="submit">Erstellen</button>
</form>

API-Routen

// app/api/tasks/route.ts
import { NextResponse } from "next/server"

export async function GET() {
  const tasks = await db.select().from(tasksTable)
  return NextResponse.json(tasks)
}

export async function POST(request: Request) {
  const body = await request.json()
  const task = await db.insert(tasksTable).values(body).returning()
  return NextResponse.json(task, { status: 201 })
}

Middleware → proxy.ts

// proxy.ts (ersetzt middleware.ts in Next.js 16)
import { NextRequest } from "next/server"

export function proxy(request: NextRequest) {
  // Authentifizierungsprüfung
  const token = request.cookies.get("token")
  if (!token && request.nextUrl.pathname.startsWith("/dashboard")) {
    return Response.redirect(new URL("/login", request.url))
  }
}

export const config = {
  matcher: ["/dashboard/:path*"],
}

Datenabruf

Server-Komponente (Standard)

// Dies läuft auf dem Server - async/await kann direkt verwendet werden
async function TaskList() {
  const tasks = await fetch("https://api.example.com/tasks", {
    cache: "no-store", // SSR, oder
    // next: { revalidate: 60 } // ISR
  }).then(r => r.json())

  return (
    <ul>
      {tasks.map(task => <li key={task.id}>{task.title}</li>)}
    </ul>
  )
}

Client-Komponente

"use client"

import useSWR from "swr"

const fetcher = (url: string) => fetch(url).then(r => r.json())

export function ClientTaskList() {
  const { data, error, isLoading } = useSWR("/api/tasks", fetcher)

  if (isLoading) return <div>Laden...</div>
  if (error) return <div>Fehler beim Laden der Aufgaben</div>

  return (
    <ul>
      {data.map(task => <li key={task.id}>{task.title}</li>)}
    </ul>
  )
}

Projektstruktur

app/
├── layout.tsx           # Root-Layout
├── page.tsx             # Startseite
├── globals.css          # Globale Styles
├── api/                 # API-Routen
│   └── tasks/route.ts
├── tasks/
│   ├── page.tsx         # /tasks
│   └── [id]/page.tsx    # /tasks/:id
├── actions.ts           # Server-Aktionen
└── proxy.ts             # Request-Proxy (Middleware)
components/
├── ui/                  # shadcn/ui-Komponenten
└── task-list.tsx        # App-Komponenten
lib/
├── db.ts                # Datenbankverbindung
└── utils.ts             # Hilfsfunktionen

Next.js DevTools MCP

Verwende den next-devtools-mcp-Server für Laufzeitdiagnose und Entwicklungsautomatisierung.

Einrichtung

claude mcp add next-devtools npx next-devtools-mcp@latest

Oder in settings.json:

{
  "mcpServers": {
    "next-devtools": {
      "type": "stdio",
      "command": "npx",
      "args": ["next-devtools-mcp@latest"]
    }
  }
}

Verfügbare Werkzeuge

WerkzeugZweck
initKontext mit verfügbaren Werkzeugen und Best Practices herstellen
nextjs_docsOffizielle Next.js-Dokumentation durchsuchen und abrufen
browser_evalBrowser-Tests mit Playwright automatisieren
nextjs_indexLaufende Next.js-Entwicklungsserver entdecken
nextjs_callMCP-Werkzeuge auf laufenden Entwicklungsservern ausführen
upgrade_nextjs_16Automatisiertes Upgrade mit Codemods
enable_cache_componentsCache-Komponenten für Next.js 16 konfigurieren

Wichtige Anwendungsfälle

1. Echtzeitfehler abrufen

"Welche Build-Fehler gibt es in meiner Next.js-App?"
"Zeige mir TypeScript-Fehler im aktuellen Projekt"

2. Laufzeitprobleme debuggen

"Überprüfe die Dev-Server-Protokolle auf Fehler"
"Welche Laufzeitfehler treten auf der Dashboard-Seite auf?"

3. Upgrade-Unterstützung

"Führe ein Upgrade dieses Projekts auf Next.js 16 durch"
"Aktiviere Cache-Komponenten für diese App"

4. Dokumentationssuche

"Wie verwende ich die Image-Komponente in Next.js 16?"
"Wie ist der korrekte Weg, dynamische Routen zu behandeln?"

Next.js 16 MCP-Endpunkt

Next.js 16+ stellt einen integrierten MCP-Endpunkt unter http://localhost:3000/_next/mcp (oder deinem Dev-Server-Port) bereit. Das DevTools-MCP entdeckt und verbindet sich automatisch mit laufenden Servern.


Verifizierung

Führe aus: python3 scripts/verify.py

Erwartet: ✓ building-nextjs-apps skill ready

Wenn die Verifizierung fehlschlägt

  1. Überprüfe: Der Ordner references/ enthält nextjs-16-patterns.md
  2. Stoppe und melde falls es immer noch fehlschlägt

Verwandte Skills

  • styling-with-shadcn - UI-Komponenten für Next.js-Apps
  • fetching-library-docs - Aktuelle Next.js-Dokumentation: --library-id /vercel/next.js --topic routing
  • configuring-better-auth - OAuth/SSO für Next.js-Apps

Referenzen

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Next.js 16+ uses App Router with Server Components by default. Client Components are only used when interactivity is needed (hooks, event handlers, browser APIs).

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

Verwandte Skills