next-best-practices
Next.js best practices: file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, and optimization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Next.js best practices: file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, and optimization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
AI browser automation CLI for navigating pages, filling forms, clicking, screenshots, extraction, web testing, login flows, and scripted web interactions.
Create algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
Use when setting up, improving, or auditing analytics tracking (GA4, GTM, conversion/event tracking, UTM, measurement plans).
Audit websites for SEO, performance, security, technical and content issues with actionable recommendations.
Create comic-style illustrations from topic/story inputs with configurable styles and layouts.
Generate infographic visuals from structured content and data with style/layout control.
| name | next-best-practices |
| description | Next.js best practices: file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, and optimization. |
| user-invocable | false |
Apply 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 <img>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-paths