nextjs-app-router

Enforce Next.js 16 App Router conventions for pages, layouts, and components.

2|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/Quanby-IT-Solutions/turbo-template --skill nextjs-app-router-quanby-it-solutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-app-router
Source: https://github.com/Quanby-IT-Solutions/turbo-template/tree/main/.ruler/skills/nextjs-app-router
Command: npx skills add https://github.com/Quanby-IT-Solutions/turbo-template --skill nextjs-app-router-quanby-it-solutions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes and documents Next.js 16 App Router usage across the monorepo to ensure consistent routing, layouts, and component boundaries.

Core Features & Use Cases

  • Routing-first structure: app/ is reserved for routing-related files; business logic lives in features/core/services.
  • Server/client patterns: clear guidance on when to use server vs client components, server actions, and metadata configuration.
  • Monorepo integration: demonstrates how to configure next.config.ts for typedRoutes and package transpilation in a Turborepo.

Quick Start

Create a new app page under apps/web/app/(site)/ with a page.tsx using the App Router conventions described above.

Frequently Asked Questions about nextjs-app-router

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

FAQPage Schema
How do I structure a Next.js 16 App Router project in a monorepo?

Next.js 16 App Router projects in a monorepo should reserve the app/ directory strictly for routing files like page.tsx, placing business logic in features/core/services to streamline routing and enforce clear component boundaries across apps/web.

When should I use server components versus client components in Next.js 16?

In Next.js 16, server components handle data fetching, server actions, and metadata configuration, while client components manage interactivity. Clear guidance enforces these boundaries to maintain consistent component structure across apps/web.

How do I configure next.config.ts for typedRoutes and package transpilation in a Turborepo?

Configure next.config.ts in a Turborepo by enabling typedRoutes and specifying package transpilation settings, which ensures proper package transpilation and enables typed routing within your Next.js 16 App Router architecture.

What is the best way to create a new app page using Next.js App Router conventions?

The best way to create a new app page is to add a page.tsx file under apps/web/app/(site)/. Following this routing-first convention ensures your Next.js 16 App Router structure remains consistent and properly separated from business logic.

Does this Next.js 16 App Router convention require YAML frontmatter?

Yes, Next.js 16 App Router conventions require YAML frontmatter containing name and description fields. Meeting this technical requirement ensures your app structure, server actions, and environment setup align with the standardized monorepo conventions.