Loading...
Loading...
Use after migrating a route or completing a migration phase to verify correctness. Also use when the build breaks, tests fail, or you suspect migration regressions.
npx skill4agent add blazity/next-migration-skills validation-testingNO MIGRATION IS COMPLETE WITHOUT A PASSING BUILDnextjs-migration-toolkitTOOLKIT_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/nullnpx tsx "$TOOLKIT_DIR/src/bin/ast-tool.ts" validate <appDir>next/routernext/navigation'use client'npx tsx "$TOOLKIT_DIR/src/bin/ast-tool.ts" transform imports <file> --dry-runnpx tsx "$TOOLKIT_DIR/src/bin/ast-tool.ts" transform router <file>npx next buildnpm test'use client'.migration/validation-report.md