Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bund...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install next-best-practices或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install next-best-practices⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/next-best-practices/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: next-best-practices description: Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling 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 ![]()
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安装 Next Best Practices 后,可以对 AI 说这些话来触发它
Help me get started with Next Best Practices
Explains what Next Best Practices does, walks through the setup, and runs a quick demo based on your current project
Use Next Best Practices to next
Invokes Next Best Practices with the right parameters and returns the result directly in the conversation
What can I do with Next Best Practices in my documents & notes workflow?
Lists the top use cases for Next Best Practices, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/next-best-practices/ 目录(个人级,所有项目可用),或 .claude/skills/next-best-practices/(项目级)。重启 AI 客户端后,用 /next-best-practices 主动调用,或让 AI 根据上下文自动发现并使用。
Next Best Practices 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Next Best Practices 可免费安装使用。请查阅仓库了解许可证信息。
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bund...
Next Best Practices 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Next Best Practices
Identifies repetitive steps in your workflow and sets up Next Best Practices to handle them automatically