01
It starts by itself
route picked for optimizing. Runs in Claude Code routine or GitHub Actions.
- ↻ route picked for optimizing
you name a route and entry point
One more route paints instantly.
Install the Next Cache Components Optimizer skill and make it a habit: follow https://gethabit.dev/skills/vercel/next-cache-components-optimizer.md
18K installs143K starsMIT licenceSource on GitHub ↗

Next Cache Components Optimizer
by vercel · 18K installs
The skill
The next cache components optimizer skill helps Next.js teams make routes paint instantly, using a failing instant() test that turns green and then guards against regressions.
Only when you ask.
The habit
One more route paints instantly.
↻ Runs by itselfroute picked for optimizing
When does it start? How does it check its work? What does it remember?
Stops after one route and entry point per run, with at most two fix retries.
The agent confirms Next.js 16.3+ with cacheComponents: true and a matching @next/playwright.
It reads instant-nav.rig.md, or writes it on first use, and the Optimizing the static shell guide.
Without the lock it confirms SHELL_MARKER renders for the test user.
It wraps the navigation in instant() and confirms the RED is trustworthy before fixing.
It applies the guide pattern that matches the blocker until the locked test is GREEN.
It checks the route renders the same content, redirects and state as before.
It reverts only the fix to get RED, re-applies for GREEN, and runs the full rig command.
It walks the PR checklist and removes the baseline test.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Next Cache Components Optimizer skill helps.
No. The skill says next dev does not prefetch and its lock is unreliable, so only a production build counts.
The skill hands that case to next-partial-prefetching-optimizer.
Copy the prompt at the top into your agent. It installs the skill from vercel/next.js and sets up the habit. Or run npx skills add vercel/next.js --skill next-cache-components-optimizer.
Yes. It is published under MIT. Habit is free too.
Install the Next Cache Components Optimizer skill and make it a habit: follow https://gethabit.dev/skills/vercel/next-cache-components-optimizer.md
All vercel skills →More code skills →
Works in
Made by vercel, published under MIT. Habit links to the original and never changes it. Is this your skill?