nextjs-server-client-components
✓Next.js App Router でサーバー コンポーネントとクライアント コンポーネントのどちらを選択するためのガイド。 useSearchParams (Suspense + 'use client' が必要)、ナビゲーション (リンク、リダイレクト、useRouter)、Cookie/ヘッダー アクセス、および 'use client' ディレクティブに重要です。プロンプトに useSearchParams、Suspense、ナビゲーション、ルーティング、リンク コンポーネント、リダイレクト、パス名、searchParams、Cookie、ヘッダー、非同期コンポーネント、または「クライアントの使用」が記載されている場合にアクティブになります。サーバー/クライアント API の混在を避けるために不可欠です。
SKILL.md
Provide comprehensive guidance for choosing between Server Components and Client Components in Next.js App Router, including cookie/header access, searchParams handling, pathname routing, and React's 'use' API for promise unwrapping.
CRITICAL RULE: This codebase has @typescript-eslint/no-explicit-any enabled. Using any will cause build failures.
All components in the App Router are Server Components by default. No directive needed.
Next.js App Router でサーバー コンポーネントとクライアント コンポーネントのどちらを選択するためのガイド。 useSearchParams (Suspense + 'use client' が必要)、ナビゲーション (リンク、リダイレクト、useRouter)、Cookie/ヘッダー アクセス、および 'use client' ディレクティブに重要です。プロンプトに useSearchParams、Suspense、ナビゲーション、ルーティング、リンク コンポーネント、リダイレクト、パス名、searchParams、Cookie、ヘッダー、非同期コンポーネント、または「クライアントの使用」が記載されている場合にアクティブになります。サーバー/クライアント API の混在を避けるために不可欠です。 ソース: wsimmonds/claude-nextjs-skills。
引用可能な情報
AI/検索での引用用の安定したフィールドとコマンド。
- インストールコマンド
npx skills add https://github.com/wsimmonds/claude-nextjs-skills --skill nextjs-server-client-components- カテゴリ
- </>開発ツール
- 認証済み
- ✓
- 初回登録
- 2026-02-01
- 更新日
- 2026-02-18
クイックアンサー
nextjs-server-client-components とは?
Next.js App Router でサーバー コンポーネントとクライアント コンポーネントのどちらを選択するためのガイド。 useSearchParams (Suspense + 'use client' が必要)、ナビゲーション (リンク、リダイレクト、useRouter)、Cookie/ヘッダー アクセス、および 'use client' ディレクティブに重要です。プロンプトに useSearchParams、Suspense、ナビゲーション、ルーティング、リンク コンポーネント、リダイレクト、パス名、searchParams、Cookie、ヘッダー、非同期コンポーネント、または「クライアントの使用」が記載されている場合にアクティブになります。サーバー/クライアント API の混在を避けるために不可欠です。 ソース: wsimmonds/claude-nextjs-skills。
nextjs-server-client-components のインストール方法は?
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/wsimmonds/claude-nextjs-skills --skill nextjs-server-client-components インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code や Cursor で使用できるようになります
ソースリポジトリはどこですか?
https://github.com/wsimmonds/claude-nextjs-skills