Build routes and layouts
Create App Router or Pages Router routes, nested layouts, loading and error states, dynamic segments, navigation, metadata, and not-found behavior.
Codex Next.js Skills give Codex a version-aware workflow for building and maintaining Next.js applications with the App Router or Pages Router. Download the skills for routing, rendering, data access, caching, forms, metadata, testing, performance, accessibility, and deployment decisions that fit the project already in front of you.
task: complete next.js development task
inspect:
- requirements and context
- existing standards
- failure and edge cases
verify: outputs + checks + handoffA dependable Next.js change starts with package versions, router choice, runtime, rendering boundaries, caching behavior, authentication, data ownership, and deployment target.
These skills help Codex read the existing architecture before choosing server or client components, route handlers, actions, cache rules, middleware, or platform-specific features.
Create App Router or Pages Router routes, nested layouts, loading and error states, dynamic segments, navigation, metadata, and not-found behavior.
Place data access, interactivity, state, browser APIs, server functions, streaming, and serialization on the correct side of the boundary.
Implement requests, mutations, validation, authentication, revalidation, cache behavior, databases, and error handling for the declared version.
Test routes and components, inspect accessibility and performance, run lint and builds, check environment variables, and validate deployment output.
The steps keep context, implementation, and verification visible so the result can be reviewed and repeated.
Read package versions, app or pages structure, configuration, runtime, styling, data layer, authentication, tests, and deployment target.
Identify where data is fetched, what can be cached, which code needs the browser, how errors surface, and where mutations occur.
Follow the active router and version, preserve project conventions, minimize client JavaScript, and avoid unsupported mixed patterns.
Run relevant tests, linting, type checks, production build, route checks, accessibility review, and performance inspection.
The workflow adjusts to the project, audience, tools, and risk while preserving the same quality standard.
Build layouts, pages, Server and Client Components, route handlers, server functions, streaming, metadata, and cache behavior.
Maintain pages, API routes, data-fetching methods, custom application or document files, and supported migration paths.
Connect authentication, forms, databases, validation, uploads, background work, APIs, and protected server behavior.
Develop static and dynamic pages, CMS integration, search metadata, images, localization, checkout flows, and performance budgets.
Start with one defined outcome and provide the source material, constraints, and checks that matter.
These skills are designed for people who need dependable next.js development work with a visible process.
Make framework-aware changes that match the router, version, runtime, and deployment environment.
Use Server and Client Components deliberately without moving unnecessary work into the browser.
Connect routes, data, authentication, validation, background operations, and deployment safely.
Build accessible, performant sites and applications with repeatable quality checks.
The skills assist Next.js development but cannot guarantee compatibility without the actual project versions, dependencies, hosting environment, browser requirements, data contracts, and production verification.
Install the complete skill folder and add the project-specific context before beginning.
Keep SKILL.md with routing, rendering, data, caching, security, testing, performance, and deployment guidance.
Place the skills with the application so they can follow the exact router, package versions, configuration, and conventions.
Provide Next.js and React versions, Node version, router, runtime, styling, data layer, authentication, hosting, and browser support.
Add tests, linting, type checks, builds, browser checks, accessibility tests, performance checks, and deployment validation.
Practical answers about capabilities, limits, setup, and review.
Yes. They cover layouts, Server and Client Components, route handlers, server functions, streaming, metadata, and version-specific caching.
Yes. They follow Pages Router conventions and avoid forcing an App Router migration into an unrelated task.
The workflow traces data and interactivity before deciding the boundary and keeps browser-only code in Client Components.
Yes. They can inspect rendering, caching, client JavaScript, images, fonts, data waterfalls, bundles, and route behavior, then verify changes.
Yes, when the target platform, adapter, runtime limits, output mode, environment variables, and unsupported features are provided.
Clear context. Purposeful work. Relevant checks. A result others can understand.