Next.js 15 Development Guidelines

Guide Next.js 15 development with App Router, Server Components, and Server Actions.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/SantiCombina/stock-flow --skill next-js-15-development-guidelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Next.js 15 Development Guidelines
Source: https://github.com/SantiCombina/stock-flow/tree/main/skills/nextjs-15
Command: npx skills add https://github.com/SantiCombina/stock-flow --skill next-js-15-development-guidelines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for developing modern web applications using Next.js 15, focusing on the App Router, Server Components, and Server Actions.

Core Features & Use Cases

  • App Router Navigation: Understand route groups, layouts, loading, and error handling.
  • Server Components: Leverage server-first architecture for data fetching and backend access.
  • Client Components: Implement interactive UIs with state and event listeners.
  • Data Fetching: Master Server Components, Server Actions, and Route Handlers.
  • Server Actions: Implement secure, three-layer architecture for mutations.
  • Caching: Utilize Fetch API, manual revalidation, and unstable_cache.
  • Environment Variables: Ensure type-safe configuration.
  • Metadata & SEO: Implement static and dynamic metadata.
  • Streaming & Suspense: Enhance user experience with progressive loading.
  • Image Optimization: Use Next.js Image component for performance.
  • Navigation: Implement client-side and server-side navigation.
  • Middleware: Secure routes and manage requests.
  • Performance Optimization: Apply route segment configs and parallel loading.
  • Testing: Integrate with React Testing Library.

Quick Start

Provide me with the best practices for using Server Components in Next.js 15.

Frequently Asked Questions about Next.js 15 Development Guidelines

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

FAQPage Schema
How do I implement Server Actions in Next.js 15 for secure data mutations?

Server Actions in Next.js 15 are implemented using a secure three-layer architecture. This pattern ensures robust data mutations by keeping backend logic secure and type-safe while leveraging the App Router for seamless client-server communication.

What is the best way to manage caching and revalidation in the Next.js App Router?

Caching in the Next.js App Router is best managed by utilizing the Fetch API for request memoization, applying manual revalidation for precise cache invalidation, and using `unstable_cache` for granular control over function-level caching.

How do I fetch data using Server Components in Next.js 15?

Fetching data with Server Components in Next.js 15 leverages a server-first architecture. This approach allows direct backend access within the App Router, eliminating extra API endpoints and enabling secure, type-safe data retrieval directly in your React components.

How do I improve web application performance with Next.js streaming and Suspense?

Next.js improves web application performance by using Suspense to implement progressive loading and streaming. This technique progressively renders UI chunks, enhancing user experience by displaying content as soon as data becomes available.

Can I use Next.js Middleware to secure routes and manage requests?

Next.js Middleware allows you to secure routes and manage incoming requests efficiently. It operates at the edge before rendering completes, letting you enforce access control, redirect users, and modify request headers securely.

How do I ensure type-safe environment variables in Next.js 15?

Type-safe environment variables in Next.js 15 are ensured by validating configurations before application startup. This approach prevents runtime errors by strictly typing environment variables, guaranteeing secure and reliable configuration management.