Install any skill in seconds. Free to start, no credit card required.
Get Started Free →sangrokjung/cache-components
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**:
Passed 22 of 22 test cases with the skill, and 14 of 22 without it.
and 7 more in the full report
8 fixed14 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are configuring `next.config.ts` for a new Next.js application that wants to leverage Partial Prerendering and granular component-level caching primitives like `'use cache'`. Show the exact `next.config.ts` file needed to enable this feature.
| Checked | Without skill | With skill |
|---|---|---|
| The Next.js config object sets cacheComponents to true. | Missed | Passed |
The instructions your model reads when the skill loads.
Auto-activation: This skill activates automatically in projects with
cacheComponents: truein next.config.
When starting work in a Next.js project, check if Cache Components are enabled:
# Check next.config.ts or next.config.js for cacheComponents
grep -r "cacheComponents" next.config.* 2>/dev/null
If cacheComponents: true is found, apply this skill's patterns proactively when:
Cache Components enable Partial Prerendering (PPR) - mixing static HTML shells with dynamic streaming content for optimal performance.
Cache Components represents a shift from segment configuration to compositional code:
| Before (Deprecated) | After (Cache Components) |
|---|---|
export const revalidate = 3600 | cacheLife('hours') inside 'use cache' |
export const dynamic = 'force-static' | Use 'use cache' and Suspense boundaries |
| All-or-nothing static/dynamic | Granular: static shell + cached + dynamic |
Key Principle: Components co-locate their caching, not just their data. Next.js provides build-time feedback to guide you toward optimal patterns.
┌─────────────────────────────────────────────────────┐
│ Static Shell │
test cases passed, vs 14 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.