next-best-practices
Installation
SKILL.md
Next.js Best Practices
Apply these rules when writing or reviewing Next.js code. Next.js ships
version-matched docs in node_modules/next/dist/docs/; when they disagree with
this skill, the installed docs win.
Cache Components patterns: When the project has
cacheComponents: trueinnext.config.ts, use the separatecache-componentsskill for'use cache',cacheLife(),cacheTag(),updateTag(), andrevalidateTag()guidance.
File Conventions
See file-conventions.md for:
- Project structure and special files
- Route segments (dynamic, catch-all, groups)
- Parallel and intercepting routes
- Middleware rename in v16 (middleware → proxy)