Nextjs Bundle Optimizer

Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types + tests + no regression) → commit or revert. Built for Next.js 16 with Turbopack default, and falls back to webpack-mode tooling when the project hasn't migrated yet. Triggers on phrases like "First Load JS is huge", "bundle size", "build takes too long", "page is slow to TTI", "reduce bundle", "tree-shake", or when the user shares output from `next experimental-analyze` / `@next/bundle-analyzer` — even if the user doesn't say "optimize" explicitly.

pproenca 0a45f16 13 files · 58.2 KB Updated

File contents

pproenca/dot-skills/tree/main/skills/.experimental/nextjs-bundle-optimizer commit 0a45f1636b

Frequently asked questions

npx skillmds add pproenca/nextjs-bundle-optimizer