nextjs-conventions

Standardize Next.js App Router project structure, routing, and metadata conventions.

9|1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nextjs-conventions-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-conventions
Source: https://github.com/AratKruglik/antigravity-sdlc/tree/main/plugins/nextjs-plugin/skills/nextjs-conventions
Command: npx skills add https://github.com/AratKruglik/antigravity-sdlc --skill nextjs-conventions-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill standardizes the Next.js App Router project structure, routing conventions, and metadata setup to ensure consistency across teams.

Core Features & Use Cases

  • Enforces App Router layout and route organization (layout.tsx, page.tsx, loading.tsx, error.tsx, not-found.tsx) and group routing.
  • Guides metadata configuration, image optimization, and SEO/OpenGraph integration for Next.js projects.
  • Provides practical Quick Start guidance for applying conventions in real projects.

Quick Start

Apply these conventions to structure pages, layouts, route groups, and metadata in a Next.js App Router project.

Frequently Asked Questions about nextjs-conventions

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

FAQPage Schema
What is the best way to structure a Next.js App Router project?

The best way to structure a Next.js App Router project is by standardizing file conventions like layout.tsx, page.tsx, loading.tsx, and error.tsx alongside route groups to ensure consistent layout organization and routing across teams.

How do I configure OpenGraph metadata in a Next.js application?

To configure OpenGraph metadata in Next.js, apply standardized metadata conventions within your layout and page files to integrate SEO and image optimization directly into the App Router project structure.

When do I need route groups in Next.js App Router?

You need route groups in Next.js App Router when organizing multiple route segments that share a specific layout hierarchy without affecting the URL path, ensuring clear project structure and layout isolation.

Can I use standard Next.js conventions for asset handling and configuration?

Yes, you can use standard Next.js conventions to align asset handling and configuration by enforcing specific layout and page file structures, ensuring consistent metadata setup and image optimization across the project.

Does Next.js App Router support specialized error and loading UI files?

Next.js App Router supports specialized UI files through conventions for loading.tsx, error.tsx, and not-found.tsx, allowing you to standardize loading states, error boundaries, and missing route handling within your project structure.