SKILL18.9K installs143.3K

Next Cache Components Optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered/served/prefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.

Type
Skill
Author
vercel
Category
Frontend
GitHub stars
143.3K
Installs
18.9K
Last updated
November 2, 2026

Install

npx skills add https://github.com/vercel/next.js --skill next-cache-components-optimizer

Use cases


Frequently Asked Questions

What Next.js version does this skill require?

Next.js 16.3+ with cacheComponents enabled; it directs an upgrade if the project is older.

How does it track progress toward instant navigation?

It encodes the goal as a failing @next/playwright instant() e2e test and works it to green one route at a time.

What does the shipped test do afterward?

It guards the route against regression.


About this skill

Drives a Next.js route to instant navigation under Cache Components and PPR by encoding the goal as a failing @next/playwright instant() e2e test and working it to green one route at a time. The shipped test then guards against regressions. It's for routes whose static shell isn't prerendered, served, or prefetched, and requires Next.js 16.3+ with cacheComponents enabled.

Summary written with AI assistance from the project's public description.


Categories


More from vercel


Similar Skills