The skill is published by the Next.js repository and requires an App Router project, Next.js 16.3 or higher, and a successfully starting application. Before beginning, audit files that still export dynamic, revalidate, or fetchCache, and remove the deprecated experimental.dynamicIO. Then proceed with either a gradual migration or direct fixes: use the cache-components-instant-false code transformation to first add export const instant = false to routes for an exit strategy, then fix each issue in place. Refer to the official migration guide for specific implementation details.
Why it matters Enabling the feature often triggers a large number of blocking prerendering errors; the skill mandates checking prerequisites first and then migrating in order, verifying each step with the development server and browser.
Security Audit: Not audited
- Not yet scanned
Rationale
- skills.sh 24 hours installed 813 (indicates only attention level); official Vercel publisher
- SKILL.md notes that documentation for Next.js 16.2 and later is included in the package at node_modules/next/dist/docs, allowing agents to access it offline
Usage
- Run npx skills add https://github.com/vercel/next.js --skill next-cache-components-adoption, then tell the agent in the project root directory: "Help me enable Cache Components and fix issues until the build passes"
Risks
- Not audited: not scanned on desktop, and the website does not display installation commands
- Applicable only to App Router; if the version is below 16.3, upgrade first. The agent will run commands such as npx @next/codemod to modify code