Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds correct cached and dynamic boundaries in Next.js App Router with Cache Components or PPR, including cache invalidation.
73% 100%+27 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 16 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Name: cache-components
Purpose: Build correct cached/dynamic boundaries in Next.js App Router when Cache Components or PPR are in use.
Use this skill to avoid request-context leaks and to enforce proper cache invalidation.
Applies when: cacheComponents: true, Partial Prerendering (PPR), 'use cache', cacheLife, cacheTag, updateTag, revalidateTag.
Do not use when: Working in the Pages Router or when Cache Components/PPR are not enabled.
<Suspense>.cookies(), headers(), or auth/session inside a 'use cache' scope.'use cache' function/component must be async.dynamic, dynamicParams, revalidate, and fetchCache route segment exports are removed; use 'use cache', cacheLife, and cacheTag.updateTag for read-your-own-writes consistency. In Route Handlers (or for background refresh), use revalidateTag(tag, "max"); updateTag throws outside Server Actions.cacheComponents: true and partialPrefetching: true, so Next.js prefetches one reusable App Shell per route. Every server await is a Stream (<Suspense>) / Cache ('use cache') / Block (export const instant = false + reason comment) decision. The dev overlay's instant-navigation insights link the documented fix for each case; apply that pattern instead of improvising.<Link prefetch={true}> additionally resolves URL data (params, searchParams) and the cached content behind it for that link; if the destination reads non-static data such as cookies or headers, each such prefetch is a fresh server render. Opt in per docs/ai/rules/frontend.md. The prefetch segment export accepts only 'auto', 'partial', and 'force-disabled' (see node_modules/next/dist/docs/01-app/03-api-reference/03-file-conventions/02-route-segment-config/prefetch.md).'use cache' + cacheTag (and cacheLife if needed).<Suspense>.'use cache'cacheTag<Suspense>asyncexport const instant = false with a reasonSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.