nextjs-15

Convert Next.js 15 App Router requirements into file structure and implementation patterns.

Updated May 17, 2026
One-click install
npx skills add https://github.com/cheetah-alo/NegritaOS --skill nextjs-15-cheetah-alo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-15
Source: https://github.com/cheetah-alo/NegritaOS/tree/main/.codex/skills/nextjs-15
Command: npx skills add https://github.com/cheetah-alo/NegritaOS --skill nextjs-15-cheetah-alo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Next.js 15 developers need clear, production-ready guidance for structuring App Router code, handling server vs client boundaries, and implementing routing, data fetching, caching, and streaming correctly.

Core Features & Use Cases

  • App Router file conventions: Organize layouts, pages, route groups, private components, and API route handlers in app/ using the expected folder structure.
  • Server Components vs Client Components: Default to Server Components for async rendering while isolating client-only logic when needed.
  • Server Actions & mutations: Implement form-driven server-side mutations using the "use server" directive, then trigger navigation or cache updates (revalidate/redirect) safely.
  • Data fetching, parallelism, and streaming: Fetch data efficiently (e.g., Promise.all) and use Suspense to progressively render slow parts of the UI.
  • Route Handlers (API routes): Build GET/POST endpoints using NextRequest and NextResponse for JSON APIs.
  • Middleware for access control: Redirect unauthorized users based on cookies and path matchers (e.g., protecting /dashboard/*).
  • Metadata strategy: Define static metadata and use generateMetadata for dynamic per-route titles and descriptions.

Quick Start

Ask your AI to generate an App Router scaffold for a new Next.js 15 app that includes a root layout, a dashboard route protected by middleware, an API route handler returning JSON, and a Server Action that revalidates cached data after a form submission.

Frequently Asked Questions about nextjs-15

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure App Router file conventions in Next.js 15?

Structure Next.js 15 App Router files by organizing layouts, pages, route groups, private components, and API route handlers within the app/ directory using expected folder conventions for server-first UI composition.

How do I use Server Actions for form mutations in Next.js?

Implement Next.js Server Actions by adding the "use server" directive to handle form-driven mutations, then safely trigger cache updates using revalidate or navigation using redirect after submission.

What is the best way to stream data with Suspense in Next.js?

Stream data in Next.js by fetching efficiently with Promise.all and wrapping slow UI components in Suspense boundaries, enabling progressive rendering to display content as async data resolves.

When should I use Server Components vs Client Components in Next.js 15?

Default to Server Components for async rendering and data fetching, isolating Client Components only when needing client-only logic like interactivity, ensuring proper server vs client rendering boundaries.

How do I protect dashboard routes using middleware in Next.js?

Protect Next.js dashboard routes by configuring middleware with path matchers like /dashboard/* to check user cookies and redirect unauthorized requests, enforcing access control before rendering pages.

How do I create API endpoints using Route Handlers in Next.js?

Create JSON API endpoints in Next.js by implementing Route Handlers using NextRequest and NextResponse objects to process GET and POST requests directly within the app/ directory structure.