Next Cache Components Optimizer
Optimize a Next.js route's first paint and client navigation by growing its static shell under Cache Components.
- CCM score
- 76 of 100
- skills.sh installs
- 22.3K
- GitHub stars
- 143.8K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers initial loads (hard navigation) and named client-side navigations (soft navigation), each guarded by its own
instant()e2e test - Works one route and entry point at a time, encoding the goal as a failing
@next/playwrighttest before fixing it to green - Requires Next.js 16.3+ with
cacheComponents: true; directs an upgrade first when the project runs an older version - Designed for teams that have adopted Cache Components and need regression coverage that a route's static shell stays committed
Install
$ npx -y skills add vercel/next.js --skill next-cache-components-optimizer -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
next-cache-components-optimizer
Set up an agentic optimization loop that drives a Next.js route from "not
instant" to "instant" and keeps it there. The loop is test-driven: encode the
goal as a failing @next/playwright instant() test, work it to green, and
ship the test as the regression guard. Run it once per target route and entry
point. Work the phases P → G in order; each ends in a gate.
Before changing the route, read the bundled Optimizing the static shell
guide at
node_modules/next/dist/docs/01-app/02-guides/optimizing-the-static-shell.md.
If it is unavailable, use the online
guide. The
guide owns the framework behavior and implementation patterns. This skill owns
the navigation contract, production rig, trustworthy RED-to-GREEN loop,
parity check, differential, and report.
What is invariant, and what is yours
One thing here is fixed. The rest is yours. Read this before treating any command, platform, or env var below as a requirement.
Details
- Repository
- github.com/vercel/next.js
- Categories
- Frontend & UI Code, Testing & QA
- First seen
- Jul 14, 2026
Questions
Which other skills lead the Frontend & UI Code category next to next-cache-components-optimizer?
next-cache-components-optimizer ranks in the top 100 of the Frontend & UI Code category on Claude Marketplaces. The other top skills there include vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps.
How do I install the next-cache-components-optimizer skill?
Run npx -y skills add vercel/next.js --skill next-cache-components-optimizer -y in your project. Once installed, the agent can make a Next.js route's static shell commit immediately and guard it with an instant() Playwright test.
What does the next-cache-components-optimizer skill do?
It drives a Next.js route from not instant to instant navigation using an agentic loop under Cache Components or PPR. It writes a failing @next/playwright instant() end-to-end test, works it to green, and ships that test as a regression guard.
What does next-cache-components-optimizer require to run?
It requires Next.js 16.3 or newer with cacheComponents set to true in next.config.ts. If the project runs an older version, the skill directs you to upgrade first.
When should I use next-cache-components-optimizer?
Use it when a route's navigation should be instant, when a route's static shell is not prerendered, served or prefetched, or when a slow first paint needs fixing. It also helps diagnose which Suspense boundary keeps a route out of its static shell.
More from vercel/next.js
All 14Similar to Next Cache Components Optimizer
More Frontend & UI CodenextjsPluginvercel/next.js143.7K starsOfficial Next.js skills: adopt and optimize Cache Components, adopt Partial Prefetching, and verify runtime behavior against a running dev server.
next-cache-components-adoptionSkillvercel/next.js31.5K installsTurn on Cache Components in a Next.js app and walk its blocking routes to a passing build.
nextjs-performanceSkillgiuseppe-trisciuoglio/developer-kit5.2K installsComprehensive Next.js performance guidance covering Core Web Vitals, caching, streaming, and Server Components for Next.js 16 and React 19.
web-performance-optimizationSkillsecondsky/claude-skills594 installsReference guide for web performance work: code splitting, lazy loading, caching, compression, and Core Web Vitals tracking.