·nextjs-caching
</>

nextjs-caching

goncy/skills

Provides expert guidance on Next.js caching behavior, including use cache directive, revalidation strategies, ISR patterns, and common pitfalls. Use when working with Next.js caching, revalidatePath, revalidateTag, use cache, or stale-while-revalidate patterns.

16Installs·0Trend·@goncy

Installation

$npx skills add https://github.com/goncy/skills --skill nextjs-caching

SKILL.md

This skill provides expert-level guidance on Next.js caching behavior, focusing on the "use cache" directive, revalidation strategies, and Incremental Static Regeneration (ISR) patterns.

The "use cache" directive marks a component or function as cacheable—it doesn't immediately cache anything. Caching happens at build time when Next.js writes the output to the cache store. This is a fundamental distinction that affects how you reason about cache behavior.

Next.js automatically renders from top to bottom as deep as possible until it encounters something dynamic (like uncached data fetches). It then creates a "dynamic hole" for that content. You don't need to add "use cache" to every page—the framework handles partial static rendering automatically. Cached functions are NOT considered dynamic, so they don't create holes.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/goncy/skills --skill nextjs-caching
Category
</>Dev Tools
Verified
First Seen
2026-02-13
Updated
2026-02-18

Quick answers

What is nextjs-caching?

Provides expert guidance on Next.js caching behavior, including use cache directive, revalidation strategies, ISR patterns, and common pitfalls. Use when working with Next.js caching, revalidatePath, revalidateTag, use cache, or stale-while-revalidate patterns. Source: goncy/skills.

How do I install nextjs-caching?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/goncy/skills --skill nextjs-caching Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/goncy/skills

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-13