nextjs-turbopack

Guides Next.js 16 development with Turbopack bundling, caching, and middleware conventions.

5|15|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill nextjs-turbopack-clfigueiredo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: nextjs-turbopack
Source: https://github.com/clfigueiredo/hermes-infra-skills/tree/main/.hermes/skills/curso-hermes/nextjs-turbopack
Command: npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill nextjs-turbopack-clfigueiredo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers working with Next.js 16+ often face confusion about Turbopack versus webpack behavior, slow dev startup, bundle bloat, and the new proxy.ts middleware filename convention. This Skill provides clear operational guidance so you avoid misconfigurations and incorrect code review flags. ## Core Features & Use Cases - Bundler Selection Guidance: Explains when to use Turbopack (default dev) versus webpack (legacy fallback via --webpack) and how production builds behave across Next.js versions. - Dev Performance Optimization: Covers file-system caching under .next for faster restarts and the experimental Bundle Analyzer in Next.js 16.1+ for trimming heavy dependencies. - Middleware Naming Rules: Clarifies that Next.js 16 uses proxy.ts instead of middleware.ts, preventing incorrect rename suggestions during code review. - Use Case: While reviewing a Next.js 16 project, you notice a proxy.ts file and slow HMR; this Skill tells you the filename is correct and directs you to verify Turbopack caching instead of renaming the file. ## Quick Start Ask the agent to review my Next.js 16 project for Turbopack configuration, dev performance, and correct middleware file naming.

Frequently Asked Questions about nextjs-turbopack

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

FAQPage Schema
How do I enable Turbopack in Next.js 16 development?▼

Turbopack is enabled by default when running next dev in Next.js 16 and later. No extra configuration is needed; file-system caching under the .next directory speeds up restarts automatically.

Turbopack vs webpack in Next.js: which should I use?▼

Use Turbopack for day-to-day development since it offers faster cold starts and HMR. Fall back to webpack with the --webpack flag only if you hit a Turbopack bug or depend on a webpack-only plugin in dev.

Is proxy.ts the correct middleware file in Next.js 16?▼

Yes, Next.js 16 renamed the middleware convention from middleware.ts to proxy.ts at the project root. Do not rename it back to middleware.ts, as that would break middleware execution in Next.js 16 projects.

Why is my Next.js dev server slow to start?▼

Slow startup usually means Turbopack is disabled or the .next cache is being cleared between runs. Confirm you are on a recent Next.js 16.x release with Turbopack active and avoid deleting the cache directory unnecessarily.

How do I analyze bundle size in Next.js 16?▼

Next.js 16.1+ includes an experimental Bundle Analyzer enabled via config or an experimental flag. Use it to inspect output, find heavy dependencies, and improve code-splitting; check the official docs for your exact version.