Next.js 服务端与客户端组件
io.github.wsimmonds/claude-nextjs-skills/nextjs-server-client-components
Next.js App Router 中如何权衡选择 Server Components 与 Client Components 的指南。对 useSearchParams(需配合 Suspense 与 'use client')、导航(Link、redirect、useRouter)、读取 cookies/headers 以及 'use client' 指令至关重要。当提问涉及 useSearchParams、Suspense、导航、路由、Link 组件、redirect、pathname、searchParams、cookies、headers、异步组件或 'use client' 时激活。是避免混用服务端/客户端 API 的必备知识。