nextjs-app-router-file-conventions

Official

Enforce Next.js App Router file conventions

AuthorAgentient
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Next.js App Router projects often diverge in how pages, layouts, and API routes are organized. This Skill enforces a consistent structure and clear boundaries to reduce confusion and onboarding time.

Core Features & Use Cases

  • Enforces root and nested route file conventions (layout.tsx, page.tsx) with optional loading.tsx and error.tsx.
  • Guides API route organization (route.ts) and global error boundaries.
  • Use Case: Start a Next.js 14+ App Router project with a predictable, scalable file layout for pages, layouts, and APIs.

Quick Start

Create the root app structure with layout.tsx and page.tsx, and add optional loading.tsx and error.tsx as needed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nextjs-app-router-file-conventions
Download link: https://github.com/Agentient/vibekit/archive/main.zip#nextjs-app-router-file-conventions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.