nextjs-15

Organizes Next.js 15 App Router projects with folder and routing conventions.

Updated Apr 9, 2025
One-click install
npx skills add https://github.com/D4nitrix13/dotfiles-tmp --skill nextjs-15-d4nitrix13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-15
Source: https://github.com/D4nitrix13/dotfiles-tmp/tree/main/.config/opencode/skill/nextjs-15
Command: npx skills add https://github.com/D4nitrix13/dotfiles-tmp --skill nextjs-15-d4nitrix13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Solves the complexity of organizing Next.js 15 App Router projects by providing a clear folder structure, routing conventions, and server actions guidelines.

Core Features & Use Cases

  • Routing conventions and app layout/page structure (layout.tsx, page.tsx, loading.tsx, error.tsx, not-found.tsx)
  • Server Actions and API route patterns for data mutation and retrieval
  • Data fetching strategies including streaming and suspense for improved UX and performance
  • Middleware and route-group patterns to organize protected and public routes

Quick Start

Create a Next.js 15 App Router example showcasing routing, server actions, and data fetching.

Frequently Asked Questions about nextjs-15

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

FAQPage Schema
How do I structure Next.js 15 App Router projects for routing and server components?

Structure Next.js 15 App Router projects by using specific file conventions like layout.tsx, page.tsx, loading.tsx, and error.tsx to organize server components and define clear routing hierarchies.

What is the best way to handle data fetching and mutation in Next.js 15 server components?

The best way to handle data fetching and mutation in Next.js 15 is by using Server Actions for data mutation and retrieval, alongside streaming and suspense strategies to improve data fetching performance and UX.

How do I organize protected and public routes using middleware in Next.js?

Organize protected and public routes in Next.js by applying middleware and route-group patterns, separating access control logic from your standard app directory conventions to secure specific application areas.

Can I use streaming and suspense for data fetching in Next.js 15?

Yes, you can use streaming and suspense for data fetching in Next.js 15. This approach allows progressive rendering of server components, significantly improving perceived load times and overall user experience.

When should I use route-group patterns in my Next.js app directory?

Use route-group patterns in your Next.js app directory when you need to organize complex folder structures, logically separating protected and public routes without affecting the underlying URL routing structure.