一键导入
next-best-practices
Next.js best practices - RSC boundaries, data patterns, async APIs, error handling, route handlers, directives, runtime selection
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Next.js best practices - RSC boundaries, data patterns, async APIs, error handling, route handlers, directives, runtime selection
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
SQLAlchemy-first DB patterns, Alembic migrations, ParentChildEdges partition handling, and UDF policy
FastAPI + SQLModel conventions, request dependencies, transaction safety, and backend architecture
Upgrade Next.js to the latest version following official migration guides and codemods
Auth0 scopes, recaptcha verification, and share/edit token security patterns
CMS editing/review workflows, TipTap extensions, and comment moderation
docker-compose topology, env files, local container workflows, and quality-gate commands
| name | next-best-practices |
| description | Next.js best practices - RSC boundaries, data patterns, async APIs, error handling, route handlers, directives, runtime selection |
| user-invocable | false |
Apply these rules when writing or reviewing Next.js code.
React.FC<Props> syntax for reusable component declarations (pages/layouts use export default function as required by Next.js)output: 'standalone'/map/*) are almost entirely client-side — heavy 'use client' usage is expectedDetect 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.tsx