Agent skills for common Next.js workflows.
Start here. These background skills are auto-applied to prevent common mistakes.
Core Next.js knowledge:
- File Conventions - Project structure and special files
- RSC Boundaries - Server/Client Component rules
- Data Patterns - Fetching and mutation strategies
- Async Patterns - Next.js 15+ async APIs
- Directives -
'use client','use server','use cache' - Functions - Navigation hooks, server functions, generate functions
- Runtime Selection - Node.js vs Edge runtime
- Error Handling - Error boundaries and redirects
- Route Handlers - API routes with
route.ts - Metadata - SEO, OG images, sitemaps
- Image -
next/imageoptimization - Font -
next/fontoptimization - Bundling - Package compatibility, CSS imports, polyfills
- Scripts - Third-party scripts, Google Analytics
- Hydration Errors - Debugging mismatches
- Suspense Boundaries - CSR bailout, Cache Components requirements
- Parallel Routes - Modal patterns with intercepting routes
- Self-Hosting - Docker, standalone output, ISR
- Debug Tricks - MCP endpoint, rebuild specific routes
# Install essentials (recommended)
npx skills add vercel-labs/next-skills --skill next-best-practices
# Or install everything
npx skills add vercel-labs/next-skillsOptional skills for specific needs. Invoke via slash commands.
Upgrading between Next.js versions with official migration guides.
npx skills add vercel-labs/next-skills --skill next-upgradeNext.js 16 Cache Components and PPR. Covers cacheComponents: true, 'use cache' directive, cache profiles, cacheLife(), cacheTag(), and updateTag().
npx skills add vercel-labs/next-skills --skill next-cache-componentsBackground skills (next-best-practices) are automatically applied when relevant.
Slash commands for advanced skills:
/next-upgrade
/next-cache-components
For React-specific patterns (hooks, state management, component composition):
npx skills add vercel-labs/agent-skills --skill react-best-practicesEach skill follows the Agent Skills open standard:
- Create a directory under
skills/with the skill name (prefix withnext-) - Add a
SKILL.mdfile with YAML frontmatter:--- name: next-skill-name description: Brief description user-invocable: false # for background skills ---
- For complex skills, add additional
.mdfiles and reference them fromSKILL.md