cache-components by vercel

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

Coding
137,140 Stars
30,281 Forks
0 Scripts
Updated Jan 14, 2026, 02:01 PM

Why Use This

This skill provides expert guidance for implementing Next.js Cache Components and Partial Prerendering (PPR). It facilitates a shift from segment-level configuration to granular, compositional code for optimal performance.

Use Cases

  • Implementing 'use cache' directives with custom cache lifetimes and tagging
  • Optimizing page performance by mixing static shells with dynamic streaming content
  • Migrating deprecated configurations like revalidate or dynamic export constants to Cache Component patterns

Skill Snapshot

Auto scan of skill assets. Informational only.

Valid SKILL.md

Checks against SKILL.md specification

Source & Community

Repository vercel/next.js
Skill Version
0df959c
Community
137,140 30,281
Updated At Jan 14, 2026, 02:01 PM

Skill Stats

SKILL.md 468 Lines
Total Files 4
Total Size 81.5 KB
License MIT

Signals & Permissions

Type
Status
Detailed Findings
EXE Scripts
No scripts
-
Network Access
None detected
-
Allowed Tools
None
-