← Catalog

No. 043 · performance

Next.js Caching

Caching strategies and cache-aware components

Version 1.0.0 License MIT Format SKILL.md

Master Next.js caching: fetch cache, router cache, full route cache, unstable_cache, revalidate tags, and cache-aware component patterns for optimal performance.

When to use this skill

  • Caching API calls in Next.js
  • Invalidating cache in Next.js
  • Using revalidate tags

Core concepts

This skill provides guidance on next.js caching best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.

Installation

curl -LO https://opencode-skills.example/downloads/performance/nextjs-cache.zip
unzip nextjs-cache.zip -d ~/.config/opencode/skills/

Restart OpenCode — the skill loads automatically.

When it triggers

  • caching API calls in Next.js
  • invalidating cache in Next.js
  • using revalidate tags