nextjs-15

Implement Next.js 15 App Router patterns for layouts, routes, and server components.

2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/kurojs/ender4-dots --skill nextjs-15-kurojs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-15
Source: https://github.com/kurojs/ender4-dots/tree/main/.config/opencode/skill/nextjs-15
Command: npx skills add https://github.com/kurojs/ender4-dots --skill nextjs-15-kurojs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill documents and guides the use of Next.js 15 App Router patterns, including file conventions, server components, actions, routing handlers, and middleware to streamline modern React apps.

Core Features & Use Cases

  • App Router & File Conventions: Layout, page, and API route organization with server actions and fetch strategies.
  • Server Components & Data Fetching: Patterns for streaming, suspense, and route data loading.
  • Middleware & Metadata: Guard routes and generate dynamic metadata for marketing and SEO.
  • Use Case: Build a scalable dashboard with protected routes, data fetching, and API routes using Next.js 15.

Quick Start

Create a Next.js 15 app with the App Router, root layout, and an API route to demonstrate server components.

Frequently Asked Questions about nextjs-15

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

FAQPage Schema
How do I implement Next.js 15 App Router patterns for server components and data fetching?

Next.js 15 App Router patterns guide configuring server components and data fetching using streaming and suspense. You structure root layouts and pages to load route data server-side within your React application.

What is the best way to organize file conventions like layouts and error boundaries in Next.js 15?

Organizing file conventions in Next.js 15 involves structuring root layouts, pages, loading states, and error boundaries. This cohesive project structure streamlines routing and separates UI logic for scalable React applications.

How do I create API routes and server actions in a Next.js 15 project?

Creating API routes and server actions in Next.js 15 uses route handlers for endpoints and server actions for mutations. You set up route handlers and server actions to manage data requests and submissions directly.

Can I use middleware to guard protected routes and generate dynamic metadata in Next.js 15?

Yes, you can use middleware in Next.js 15 to guard protected routes before rendering. It supports generating dynamic metadata for marketing and SEO, ensuring secure and optimized routing within the App Router.

Do I need TypeScript to configure App Router file conventions and route handlers?

TypeScript is supported but not strictly required to configure App Router file conventions and route handlers. The patterns apply to structuring layouts, pages, API routes, and server actions whether you use TypeScript or JavaScript.