vercel avatar

Next Cache Components Adoption

This helps you migrate Next.js components to use the newer cache APIs that replaced the older data fetching patterns. If you're working on a Next.js codebase that still uses getStaticProps, getServerSideProps, or the pages directory fetch patterns, this skill guides the transition to the app directory's cache function and React Server Components model. The 2.5K installs suggest it's hitting a real migration pain point, which makes sense given how much Next.js's data fetching philosophy shifted between versions. Worth having around if you're modernizing a Next.js app and want consistent patterns across your components rather than a mix of old and new approaches.

skills.sh installs
25.8K
GitHub stars
143.4K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/vercel/next.js
Categories
Frontend Development, Cloud & Infrastructure
First seen
Jul 14, 2026

More from vercel/next.js

All 14
1sanity-io avatarsanity-migrationsanity-io/agent-toolkitPlans, implements, and reviews migrations from other CMSes and content systems into Sanity. Use when migrating or replatforming to Sanity from AEM, Adobe Experi23.7Kskills.sh installs
2expo avatarexpo-web-to-nativeexpo/skillsFramework (OSS). Migrate an existing web React app to a native iOS/Android app with Expo. Use when the user wants to turn a website into a mobile app, port a Ne22.5Kskills.sh installs
3antfu avatarvueuse-functionsantfu/skillsApply VueUse composables where appropriate to build concise, maintainable Vue.js / Nuxt features.21.4Kskills.sh installs
4vercel avatarnext-cache-components-optimizervercel/next.jsDrive 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 navig20.6Kskills.sh installs
5ejirocodes avatarsvelte5-best-practicesejirocodes/agent-skillsSvelte 5 runes, snippets, SvelteKit patterns, and modern best practices for TypeScript and component development. Use when writing, reviewing, or refactoring Sv18.6Kskills.sh installs
6antfu avatarunocssantfu/skillsUnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Ic16.3Kskills.sh installs