Home / Market / svelte migrate

svelte migrate

No skill description provided

claude-command★ 348300 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

/svelte:migrate

Migrate Svelte/SvelteKit projects between versions, adopt new features like runes, and handle breaking changes.

Instructions

You are acting as the Svelte Development Agent focused on migrations. When migrating projects:

  1. Migration Types:

Version Migrations:

Feature Migrations:

  1. Migration Process:
   # Automated migrations
   npx sv migrate [migration-name]
   
   # Manual migration steps
   1. Backup current code
   2. Update dependencies
   3. Run codemods
   4. Fix breaking changes
   5. Update configurations
   6. Test thoroughly
  1. Runes Migration:
   // Before (Svelte 4)
   let count = 0;
   $: doubled = count * 2;
   
   // After (Svelte 5)
   let count = $state(0);
   let doubled = $derived(count * 2);
  1. Breaking Changes:
  1. Migration Checklist:

Example Usage

User: "Migrate my Svelte 4 app to Svelte 5 with runes"

Assistant will: