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.

sanity-io 962a594 6 files · 70.0 KB Updated

File contents

sanity-io/next-sanity/tree/main/.agents/skills/next-cache-components-optimizer commit 962a594d22

Frequently asked questions

npx skillmds add sanity-io-next-sanity/next-cache-components-optimizer