component-migration とは?
「use client」ディレクティブを追加する場合、混合コンポーネントをサーバー部分とクライアント部分に分割する場合、または「useState はクライアント コンポーネントでのみ機能する」などの RSC 境界エラーを修正する場合に使用します。インタラクティブ UI (フォーム、モーダル、イベント ハンドラー) を App Router に移行する場合も同様です。 ソース: blazity/next-migration-skills。
「use client」ディレクティブを追加する場合、混合コンポーネントをサーバー部分とクライアント部分に分割する場合、または「useState はクライアント コンポーネントでのみ機能する」などの RSC 境界エラーを修正する場合に使用します。インタラクティブ UI (フォーム、モーダル、イベント ハンドラー) を App Router に移行する場合も同様です。
コマンドラインで component-migration AI スキルを開発環境にすばやくインストール
ソース: blazity/next-migration-skills。
Migrate components for RSC (React Server Component) compatibility. Determine which components need 'use client' directives and which can remain server components.
This skill requires the nextjs-migration-toolkit skill to be installed. All migration skills depend on it for AST analysis.
Before applying any migration patterns, check the target Next.js version. Read .migration/target-version.txt if it exists, or ask the user.
「use client」ディレクティブを追加する場合、混合コンポーネントをサーバー部分とクライアント部分に分割する場合、または「useState はクライアント コンポーネントでのみ機能する」などの RSC 境界エラーを修正する場合に使用します。インタラクティブ UI (フォーム、モーダル、イベント ハンドラー) を App Router に移行する場合も同様です。 ソース: blazity/next-migration-skills。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/blazity/next-migration-skills --skill component-migration「use client」ディレクティブを追加する場合、混合コンポーネントをサーバー部分とクライアント部分に分割する場合、または「useState はクライアント コンポーネントでのみ機能する」などの RSC 境界エラーを修正する場合に使用します。インタラクティブ UI (フォーム、モーダル、イベント ハンドラー) を App Router に移行する場合も同様です。 ソース: blazity/next-migration-skills。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/blazity/next-migration-skills --skill component-migration インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/blazity/next-migration-skills