component-migration
Installation
SKILL.md
Component Migration
Migrate components for RSC (React Server Component) compatibility. Determine which components need 'use client' directives and which can remain server components.
Toolkit Setup
This skill requires the nextjs-migration-toolkit skill to be installed. All migration skills depend on it for AST analysis.
TOOLKIT_DIR="$(cd "$(dirname "$SKILL_PATH")/../nextjs-migration-toolkit" && pwd)"
if [ ! -f "$TOOLKIT_DIR/package.json" ]; then
echo "ERROR: nextjs-migration-toolkit is not installed." >&2
echo "Run: npx skills add blazity/next-migration-skills -s nextjs-migration-toolkit" >&2
echo "Then retry this skill." >&2
exit 1
fi
bash "$TOOLKIT_DIR/scripts/setup.sh" >/dev/null
Related skills
More from blazity/next-migration-skills
nextjs-migration-toolkit
Required dependency for all next-migration-skills. Provides AST analysis and transform tools powered by ts-morph for analyzing routes, components, dependencies, and generating App Router code.
12migration-planning
>
10migration-assessment
>
9route-conversion
>
8dependency-mapping
>
8data-layer-migration
>
8