Skip to content
vercel avatar

Next Cache Components Adoption

Turn on Cache Components in a Next.js app and walk its blocking routes to a passing build.

CCM score
82 of 100
skills.sh installs
31.5K
GitHub stars
143.8K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers adoption order: App Router check, version and config prerequisites, then a route-by-route dev-loop and build pass
  • Offers two paths, Incremental (run cache-components-instant-false codemod first) or Direct (enable the flag and fix in one branch)
  • Enforces a per-route bar: no dev-loop errors and a passing next build, with the user confirming each commit
  • Designed for Next.js 16.3+ App Router projects with blocking-prerender or instant validation errors to resolve

Install

$ npx -y skills add vercel/next.js --skill next-cache-components-adoption -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

next-cache-components-adoption

Enable Cache Components on an app and walk it to a passing build. This skill sequences the work; per-error recipes live in the dev overlay fix cards and the build's terminal output. The migrating to Cache Components guide is the canonical reference for the concepts and per-API recipes this skill applies — consult it whenever the skill steps reference a pattern ("use cache", cacheLife, <Suspense> placement, etc.) and you want the full explanation.

requires

  • App Router project. Cache Components is an App Router feature; cacheComponents: true does nothing for pages/ routes. If the project has a pages/ or src/pages/ tree but no app/ or src/app/ tree, stop and tell the user — Pages → App migration is its own project, not part of this skill. A hybrid app (both pages/ and app/) is fine: the flag affects the app/ routes; pages/ routes are unaffected and don't need opt-outs.

Details

Repository
github.com/vercel/next.js
Categories
Frontend & UI Code, Debugging
First seen
Jul 14, 2026

Questions

What does the next-cache-components-adoption skill do?

It turns on Cache Components in a Next.js app and resolves the blocking routes it surfaces. It sequences the work and walks the app to a passing build, verifying each route with the dev server and a browser.

What do I need before using this skill?

You need an App Router project running Next.js 16.3 or later, and the app must boot locally. The skill also expects you to remove the old experimental.dynamicIO key and inventory exports like dynamic, revalidate, or fetchCache.

How do I install it?

Run npx -y skills add vercel/next.js --skill next-cache-components-adoption -y in your project. The agent can then enable the cacheComponents flag and work through blocking-prerender errors and the cache-components-instant-false codemod.

Where does this skill rank in its category?

It is in the Frontend & UI Code category and ranks in the top 50 there. It focuses on migrating Next.js apps to Cache Components, unlike general React or design guidance skills in the same category.

More from vercel/next.js

All 14

Similar to Next Cache Components Adoption

More Frontend & UI Code