arupbiswas09/claude_skills/nextjs-caching
Claude Code and agent skill by arupbiswas09/claude_skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Next.js Cache Components and Partial Prerendering (PPR). Use when implementing 'use cache' directive, cacheLife() profiles, cacheTag()/updateTag() invalidation, PPR static shells with dynamic streaming, or debugging cache issues. Auto-activates in projects with cacheComponents: true in next.config.ts.
Install
npx vskill@latest install arupbiswas09/claude_skills/nextjs-cachingSKILL.md
The same SKILL.md was published earlier as arupbiswas09/claude_skills/nextjs-caching.
Next.js Caching (Cache Components)
Requires:cacheComponents: trueinnext.config.ts(Next.js 16).
Project Detection
Enable
Decision Steps
- Does component fetch data? No → skip. Yes → continue.
- Depends on
cookies()/headers()/searchParams? No → step 3. Yes → step 4. - Same data for all users? Yes →
'use cache'+cacheTag()+cacheLife(). No →<Suspense>. - Can extract runtime data as args? Yes → pass outside cache. No →
'use cache: private'(last resort).
Core APIs
'use cache' Directive
cacheLife() Profiles
By content type: news → seconds, blog/docs → hours, marketing → days, legal → max
cacheTag() + Invalidation
Server Actions vs Data Fetching (CRITICAL)
PPR Pattern
Runtime Data Pattern (cookies inside cache)
Review Checklist
- [ ]
cacheComponents: trueinnext.config.ts - [ ] All
'use cache'functions areasync - [ ]
'use cache'is first statement - [ ]
cacheTag()present (enables targeted invalidation) - [ ]
cacheLife()present (don't rely on defaults) - [ ]
cookies()/headers()NOT inside'use cache'scope - [ ] Server Actions call
updateTag()after mutations - [ ] Dynamic components wrapped in
<Suspense> - [ ]
revalidateTag(tag, profile)— two-arg form (not deprecated single-arg) - [ ] Server Actions return
void, never used for data fetching
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nextjs-caching/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/arupbiswas09/claude_skills/nextjs-caching)