nextjs-patterns

Organize Next.js 16 App Router route groups, layouts, and component conventions for e-commerce projects.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/megahomeweb/megahome --skill nextjs-patterns-megahomeweb
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nextjs-patterns
Source: https://github.com/megahomeweb/megahome/tree/main/.claude/plugins/mega-dev/skills/nextjs-patterns
Command: npx skills add https://github.com/megahomeweb/megahome --skill nextjs-patterns-megahomeweb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers implement Next.js 16 App Router patterns for scalable e-commerce projects, enabling clean routing, layouts, and component architecture.

Core Features & Use Cases

  • Route groups and layouts for clear separation across (auth), (client-side), admin, and api surfaces.
  • Dynamic routes, metadata handling, server/client components, and middleware patterns to optimize performance and UX.
  • Use Case: Create pages, adjust routing, or implement API routes using the patterns described in the MegaHome project.

Quick Start

Open the app/ directory and review the route groups, layouts, and API routes to start applying these patterns to new pages.

Frequently Asked Questions about nextjs-patterns

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

FAQPage Schema
How do I organize Next.js App Router patterns for scalable e-commerce projects?▼

You can organize Next.js App Router patterns using reusable route groups, layouts, and component conventions to separate (auth), (client-side), admin, and api surfaces for scalable e-commerce architecture.

How do I structure route groups and layouts in Next.js 16?▼

Structure Next.js 16 route groups and layouts by creating distinct folders for (auth), (client-side), admin, and api contexts, applying dynamic routes and metadata handling to optimize performance and UX.

When do I use server components versus client components in Next.js App Router?▼

Use server components versus client components in Next.js App Router based on rendering requirements, applying middleware patterns to optimize performance and user experience across admin and client contexts.

Do I need to know Next.js middleware to use these App Router conventions?▼

Yes, you need familiarity with Next.js concepts like route groups, server/client components, and middleware to meet the functional requirements of these App Router conventions for e-commerce projects.

What is the best way to design API routes in a Next.js 16 App Router project?▼

The best way to design API routes in a Next.js 16 App Router project is applying organized conventions across the api surface within the app/ directory to ensure clean routing and component architecture.