Skip to content
Kitbay
Skill

next-cache-components-adoption

MITUpdated on Nov 11, 2026143,470GitHub stars

A skill in the Next.js repository's user-facing skills folder for switching a Next.js App Router project to Cache Components.

What the skill teaches

A skill in the Next.js repository's user-facing skills folder for switching a Next.js App Router project to Cache Components. The agent first checks the app runs Next.js 16.3 or later and clears route settings that conflict with the feature. With the user it picks either an incremental route, where a codemod opts every page and layout out and routes are fixed one by one in later pull requests, or a direct route that enables the flag and fixes everything on one branch. It then works down the route tree with next dev and a browser, fixing request-time reads, synchronous work during render and cached files that read request data, and checks the build and static shell for each part.

Capabilities

  • Check an app meets the Cache Components prerequisites
  • Run the codemod that opts routes out
  • Fix routes that block prerendering
  • Verify the static shell in the browser