Nextjs cache components runtime
Skill xirothedev/skills/skills/nextjs-cache-components-runtime
Use for Next.js 16 Cache Components and runtime rendering work involving `use cache`, `cacheLife`, `cacheTag`, `updateTag`, Suspense, runtime APIs, Partial Prerendering, remote cache, metadata/viewport runtime access, or migration from older route segment caching configs.From its SKILL.md
npx -y skills add xirothedev/skills --skill nextjs-cache-components-runtimeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.4 KB, 403 tokens by cl100k_base, as published. Nobody here has run it
Next.js Cache Components Runtime
Use this skill when the task changes how a Next.js route is prerendered, streamed, cached, personalized, or invalidated. Make the cache boundary explicit instead of relying on older route-level dynamic/static flags.
When to Apply
Use this skill when:
- Enabling or debugging
cacheComponents: true - Adding
use cache,cacheLife,cacheTag,updateTag, orrevalidateTag - Fixing "uncached data outside Suspense" build/runtime errors
- Moving runtime APIs like
cookies(),headers(),params, orsearchParamsthrough cached functions - Migrating
dynamic,revalidate, or previous-model caching code to Cache Components - Designing cache behavior for self-hosted or serverless deployments
Load On Demand
Start with this file. Load detailed files only when the task needs them:
references/_sections.md
references/cache-use-cache-scope.md
references/cache-runtime-suspense.md
references/cache-tag-invalidation.md
references/cache-remote-cache.md
references/cache-metadata-runtime.md
references/cache-migration-segment-configs.md
dataset/cache/use-cache-scope/correct.tsx
sources/inventory.json
Each rule file includes:
- Why the pattern matters
- Incorrect and correct examples
- Dataset path with larger TypeScript/TSX examples
- Official source references
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Cache Boundaries | CRITICAL | cache- |
| 2 | Data & Runtime Rendering | HIGH | data- |
| 3 | Operations & Deployment | HIGH | ops- |
Source Policy
Use official Next.js 16 docs for Cache Components. Do not rely on Next.js 13/14/15 caching advice unless the project has not enabled cacheComponents.
What ships with it: 29 files
22.0 KB alongside SKILL.md, 6 of them executable
dataset/
- cache/metadata-runtime/correct.tsruns458 B
- cache/metadata-runtime/incorrect.tsruns260 B
- cache/metadata-runtime/notes.md137 B
- cache/migration-segment-configs/correct.tsx323 B
- cache/migration-segment-configs/incorrect.tsx273 B
- cache/migration-segment-configs/notes.md132 B
- cache/remote-cache/correct.tsruns214 B
- cache/remote-cache/incorrect.tsruns227 B
- cache/remote-cache/notes.md131 B
- cache/runtime-suspense/correct.tsx431 B
- cache/runtime-suspense/incorrect.tsx256 B
- cache/runtime-suspense/notes.md143 B
- cache/tag-invalidation/correct.tsruns284 B
- cache/tag-invalidation/incorrect.tsruns212 B
- cache/tag-invalidation/notes.md180 B
- cache/use-cache-scope/correct.tsx399 B
- cache/use-cache-scope/incorrect.tsx332 B
- cache/use-cache-scope/notes.md127 B
references/
sources/
- inventory.json972 B
- AGENTS.md2.1 KB
- metadata.json827 B
- test-cases.json7.3 KB