building-nextjs-apps

Guide Next.js 16 app builds with dynamic routes and migration steps.

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/hussain9491/hackathone2_phase2_Q4 --skill building-nextjs-apps-hussain9491
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: building-nextjs-apps
Source: https://github.com/hussain9491/hackathone2_phase2_Q4/tree/main/.claude/skills/building-nextjs-apps
Command: npx skills add https://github.com/hussain9491/hackathone2_phase2_Q4 --skill building-nextjs-apps-hussain9491

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Next.js 16 introduced breaking and behavioral changes that complicate app migration and pattern adoption. This skill consolidates best practices to reduce setup errors and speed up delivery.

Core Features & Use Cases

  • Apply Next.js 16 critical patterns: proxy.ts replacing middleware.ts, async params/searchParams handling, Turbopack defaults, cacheComponents, parallel routes with required default files, and updated image usage.
  • Use MCP tooling and references to guide migrations, diagnose runtime issues, and optimize builds.
  • Verification and governance: includes a built-in verification script and a set of references to ensure readiness before deployment.

Quick Start

Create a new Next.js 16 project and apply the recommended patterns, replacing middleware with proxy.ts, adopting async params in routes and metadata, and enabling Turbopack and cacheComponents for optimal builds.

Frequently Asked Questions about building-nextjs-apps

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

FAQPage Schema
How do I migrate from Next.js 15 to Next.js 16?

To migrate from Next.js 15 to Next.js 16, replace middleware.ts with proxy.ts, adopt async params in dynamic routes, and enable Turbopack defaults. This skill enforces concrete migration steps and includes a verification workflow to ensure references exist and scripts run successfully.

What is the replacement for middleware.ts in Next.js 16?

In Next.js 16, middleware.ts is replaced by proxy.ts. This skill guides you through adopting the proxy.ts pattern for route handling and middleware proxies, ensuring correct behavioral changes are applied during your migration.

How do I handle async params and searchParams in the Next.js App Router?

Handling async params in the Next.js App Router requires awaiting params and searchParams in your route components and metadata. This skill provides references to enforce these Next.js 16 patterns correctly for dynamic routes.

How do I configure Turbopack and cacheComponents for optimal Next.js builds?

Configuring Turbopack and cacheComponents for optimal Next.js builds involves enabling these defaults in your configuration. This skill consolidates best practices to speed up delivery and reduce setup errors when applying Next.js 16 critical patterns.

Do parallel routes in Next.js 16 require default files?

Yes, parallel routes in Next.js 16 require default files. This skill guides you through applying critical Next.js 16 patterns, including setting up parallel routes with required default files and updating image usage correctly.