Next best practices

From artubss/SKILLS-CLAUDE-CODE · View interactive version

Next best practices is an AI agent skill from the GitHub repository artubss/SKILLS-CLAUDE-CODE. Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

How to use this skill

Skill file

Next.js Best Practices

Apply these rules when writing or reviewing Next.js code.

File Conventions

See file-conventions.md for:

RSC Boundaries

Detect invalid React Server Component patterns.

See rsc-boundaries.md for:

Async Patterns

Next.js 15+ async API changes.

See async-patterns.md for:

Runtime Selection

See runtime-selection.md for:

Directives

See directives.md for:

Functions

See functions.md for:

Error Handling

See error-handling.md for:

Data Patterns

See data-patterns.md for:

Route Handlers

See route-handlers.md for:

Metadata & OG Images

See metadata.md for:

Image Optimization

See image.md for:

Font Optimization

See font.md for:

Bundling

See bundling.md for:

Scripts

See scripts.md for:

Hydration Errors

See hydration-error.md for:

Suspense Boundaries

See suspense-boundaries.md for:

Parallel & Intercepting Routes

See parallel-routes.md for:

Self-Hosting

See self-hosting.md for:

Debug Tricks

See debug-tricks.md for:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.