vercel avatar

Next Cache Components Optimizer

This optimizer helps Claude automatically configure caching strategies for Next.js components, which matters when you're working on performance optimization and don't want to manually audit every component for cache potential. It comes from Vercel's official Next.js repository, which has serious credibility with 141K stars and 2.5K installs already. The lack of a SKILL.md is unfortunate since caching strategies can be opinionated and it would help to know what approach it takes. Best case, it saves you from the tedious work of identifying which components benefit from caching and setting up the right patterns. Worst case, it makes overly aggressive assumptions about your app's data freshness requirements.

skills.sh installs
20.6K
GitHub stars
143.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel/next.js --skill next-cache-components-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Files

next-cache-components-optimizer

Set up an agentic optimization loop that drives a Next.js route from "not instant" to "instant" and keeps it there. The loop is test-driven: encode the goal as a failing @next/playwright instant() test, work it to green, and ship the test as the regression guard. Run it once per target route and entry point. Work the phases P → G in order; each ends in a gate.

Before changing the route, read the bundled Optimizing the static shell guide at node_modules/next/dist/docs/01-app/02-guides/optimizing-the-static-shell.md. If it is unavailable, use the online guide. The guide owns the framework behavior and implementation patterns. This skill owns the navigation contract, production rig, trustworthy RED-to-GREEN loop, parity check, differential, and report.

What is invariant, and what is yours

One thing here is fixed. The rest is yours. Read this before treating any command, platform, or env var below as a requirement.

Sponsors

Details

Repository
github.com/vercel/next.js
Categories
Frontend Development, Testing & QA, AI & Agent Building, Debugging, Cloud & Infrastructure, CLI & Terminal
First seen
Jul 14, 2026

More from vercel/next.js

All 14
1ejirocodes avatarsvelte5-best-practicesejirocodes/agent-skillsSvelte 5 runes, snippets, SvelteKit patterns, and modern best practices for TypeScript and component development. Use when writing, reviewing, or refactoring Sv18.6Kskills.sh installs
2antfu avatarunocssantfu/skillsUnoCSS instant atomic CSS engine, superset of Tailwind CSS. Use when configuring UnoCSS, writing utility rules, shortcuts, or working with presets like Wind, Ic16.3Kskills.sh installs
3parthjadhav avatarapp-store-screenshotsparthjadhav/app-store-screenshotsUse when building App Store or Google Play screenshot pages, generating exportable marketing screenshots for iOS and/or Android apps, or scaffolding a screensho15.8Kskills.sh installs
4github avatarweb-design-reviewergithub/awesome-copilotThis skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design14.3Kskills.sh installs
5resend avatarresend-cliresend/resend-skillsOperate the Resend platform from the terminal — send emails (including React Email .tsx templates via --react-email), manage domains, contacts, broadcasts, temp14Kskills.sh installs
6kylezantos avatardesign-motion-principleskylezantos/design-motion-principlesMotion and interaction design expert based on Emil Kowalski, Jakub Krehel, and Jhey Tompkins' techniques. Two modes — build interactive components with purposef13.8Kskills.sh installs