next-best-practices
Originally fromvercel-labs/next-skills
Installation
SKILL.md
Next.js Best Practices
Apply these rules when writing or reviewing Next.js code.
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)
RSC Boundaries
Detect invalid React Server Component patterns.