next-best-practicesNext.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bund...
Install via ClawdBot CLI:
clawdbot install TuanViDev/next-best-practicesApply these rules when writing or reviewing Next.js code.
See file-conventions.md for:
Detect invalid React Server Component patterns.
See rsc-boundaries.md for:
Next.js 15+ async API changes.
See async-patterns.md for:
params and searchParamscookies() and headers()See runtime-selection.md for:
See directives.md for:
'use client', 'use server' (React)'use cache' (Next.js)See functions.md for:
useRouter, usePathname, useSearchParams, useParamscookies, headers, draftMode, aftergenerateStaticParams, generateMetadataSee error-handling.md for:
error.tsx, global-error.tsx, not-found.tsxredirect, permanentRedirect, notFoundforbidden, unauthorized (auth errors)unstable_rethrow for catch blocksSee data-patterns.md for:
Promise.all, Suspense, preload)See route-handlers.md for:
route.ts basicspage.tsxSee metadata.md for:
generateMetadata functionnext/ogSee image.md for:
next/image over ![]()
sizes attributeSee font.md for:
next/font setupSee bundling.md for:
See scripts.md for:
next/script vs native script tagsid@next/third-partiesSee hydration-error.md for:
See suspense-boundaries.md for:
useSearchParams and usePathnameSee parallel-routes.md for:
@slot and (.) interceptorsdefault.tsx for fallbacksrouter.back()See self-hosting.md for:
output: 'standalone' for DockerSee debug-tricks.md for:
--debug-build-pathsGenerated Mar 1, 2026
A team building a high-performance online store using Next.js 15+ needs to implement best practices for file conventions, RSC boundaries, and image optimization to ensure fast page loads and SEO compliance. They must handle dynamic product pages with async patterns for params and searchParams, and use error handling for 404 and redirects.
A media company creating a content-heavy website requires efficient data patterns to avoid waterfalls, metadata generation for SEO, and font optimization for branding. They use route handlers for API endpoints and Suspense boundaries to manage client-side rendering with navigation hooks.
A startup developing a dashboard for analytics uses Next.js best practices for async APIs, error handling with global-error.tsx, and bundling to minimize server-incompatible packages. They implement parallel and intercepting routes for modal-based user interactions and self-hosting for Docker deployment.
A freelancer building a personal portfolio with a blog section applies file conventions for route segments, metadata for OG images, and image optimization with next/image. They use debug tricks for route-specific rebuilds and ensure hydration errors are minimized with proper HTML structure.
Offers a Next.js-based platform with features like async patterns and error handling, charging monthly fees for access to premium components and support. Revenue comes from tiered plans based on usage and customization levels.
Provides consulting and development services to clients, leveraging Next.js best practices for file conventions and RSC boundaries to build custom websites. Revenue is generated through project-based fees and ongoing maintenance contracts.
Distributes open-source Next.js best practices guides and tools for free, with premium add-ons like advanced debugging via MCP endpoints or bundled analysis. Revenue streams include paid upgrades and enterprise licensing.
💬 Integration Tip
Integrate this skill by referencing the linked markdown files during code reviews or development sprints to enforce consistent practices across teams.
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Connect to 100+ APIs (Google Workspace, Microsoft 365, GitHub, Notion, Slack, Airtable, HubSpot, etc.) with managed OAuth. Use this skill when users want to...
Build, debug, and deploy websites using HTML, CSS, JavaScript, and modern frameworks following production best practices.
YouTube Data API integration with managed OAuth. Search videos, manage playlists, access channel data, and interact with comments. Use this skill when users want to interact with YouTube. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Scaffold, test, document, and debug REST and GraphQL APIs. Use when the user needs to create API endpoints, write integration tests, generate OpenAPI specs, test with curl, mock APIs, or troubleshoot HTTP issues.
Search for jobs across LinkedIn, Indeed, Glassdoor, ZipRecruiter, Google Jobs, Bayt, Naukri, and BDJobs using the JobSpy MCP server.