next-bundle-optimizer
A skill published in the Next.js repository, and described in the Next.js documentation, for finding and reducing the JavaScript a Next.js app sends to the browser on first load.
What the skill teaches
A skill published in the Next.js repository, and described in the Next.js documentation, for finding and reducing the JavaScript a Next.js app sends to the browser on first load. By default it only audits: it captures a snapshot with next analyze, exports the bundle graph as compressed JSON lines, reads it against the installed schema and ranks client-side contributors by size, repetition and risk, including server-only code that may have leaked into the client. When the user asks for fixes, it makes one small change at a time, takes a new snapshot, runs tests, type checks and a behaviour check, and keeps the change only if the numbers improve. It needs Next.js 16.4 or later.
Capabilities
- Capture and export Next.js bundle analyzer snapshots
- Rank client-side code by size and repetition per route
- Flag server-only modules that reached the browser bundle
- Make and measure one bundle fix at a time
About
- Publisher
- Vercel
Install
- Run this to add it to Any client:
npx skills add vercel/next.js --skill next-bundle-optimizer
What's inside
- references/client-dependencies.md
- references/fix-patterns.md
- references/graph-methods.md
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | Skill | |
| Tool | Not stated in its documentation | |
| Publisher | Vercel | source |
| Official status | Not stated in its documentation | |
| Needs an API key or sign-in | Not stated in its documentation | |
| Includes scripts | No | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Nov 11, 2026143,470 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository Website |
More from Vercel
1 server · 61 skills
- vercel-cli (Skill)
- vercel-flags (Skill)
- access-protected-vercel-deployment (Skill)
- ai-gateway (Skill)
- ai-sdk (Skill)
- auth (Skill)
Sources
- Skill file (SKILL.md)github.com/vercel/next.jsNov 10, 2026
- Web pagenextjs.orgNov 15, 2026
- GitHub repositorygithub.com/vercel/next.js · Backs: Publisher, Activity, LicenceNov 11, 2026
- GitHub API recordgithub.com/vercel/next.js · Backs: Includes scriptsNov 15, 2026
- Folder in the repository (next-bundle-optimizer)github.com/vercel/next.js · Backs: Includes scriptsNov 10, 2026