deco-migrate-script

Automate Deco storefront migration from Fresh/Preact/Deno to TanStack Start/React/Cloudflare Workers.

5|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/decocms/deco-start --skill deco-migrate-script
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deco-migrate-script
Source: https://github.com/decocms/deco-start/tree/main/.agents/skills/deco-migrate-script
Command: npx skills add https://github.com/decocms/deco-start --skill deco-migrate-script

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the migration of Deco storefronts from Fresh/Preact/Deno to TanStack Start/React/Cloudflare Workers, eliminating manual refactors and platform mismatches.

Core Features & Use Cases

  • Multi-phase migration orchestration: analyze, scaffold, transform, cleanup, report, verify, and bootstrap runs end-to-end.
  • Scaffold and transform: generates new project structure, rewrites imports, and aligns APIs for the Start ecosystem.
  • Verification & reporting: produces MIGRATION_REPORT.md and smoke tests to validate migration outcomes.

Quick Start

From the NEW site root (already has @decocms/start installed), run the migrate script with the path to the old storefront to migrate to TanStack Start and consider a dry-run first to preview changes.

Frequently Asked Questions about deco-migrate-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate a Deco storefront from Fresh and Preact to TanStack Start?

To migrate a Deco storefront from Fresh and Preact to TanStack Start, you run an automated TypeScript migration script via the tsx runner from your project root. This orchestrates the entire transformation process end-to-end without manual refactoring.

What does the automated Deco storefront migration process include?

The Deco storefront migration process includes seven orchestrated phases: analyze, scaffold, transform, cleanup, report, verify, and bootstrap. It generates a new project structure, rewrites imports, aligns APIs for the Start ecosystem, and runs smoke tests.

Do I need to install anything specific before migrating my Deco storefront to Start?

Yes, migrating a Deco storefront to Start requires the tsx runner to execute the migrate.ts entry point from the project root. The new site root must already have @decocms/start installed before running the migration script.

Can I preview storefront migration changes before applying them to my codebase?

Yes, you can preview storefront migration changes by performing a dry run. Executing the migration script with the dry-run option previews structural changes and import rewrites before modifying your project files.

How do I verify that my Deco to TanStack Start migration was successful?

You verify a Deco to TanStack Start migration by checking the generated MIGRATION_REPORT.md and running automated smoke tests. These validation steps confirm the transformed codebase aligns correctly with the Start ecosystem.

What are the limitations of using an automated script for Deco storefront migration?

The automated migration script only applies to compatible Deco storefront projects using Fresh, Preact, and Deno. It requires a specific scripts/migrate.ts entry point and cannot migrate projects outside this specific technology stack.