Astro Component Migrator
Migrates SPA components from React, Vue, or Svelte to optimized Astro components and Islands.
This skill automates the complex process of refactoring Single Page Application (SPA) components into the Astro framework's performance-first architecture. It intelligently analyzes component logic—including props, state, and side effects—to determine whether to convert a file into a static .astro component or a hydrated Island. By strictly following your project's architectural guidelines, it handles the relocation of data fetching to page frontmatter, ensures prop serializability for hydration, and validates the migration through automated build and check commands, significantly reducing the manual effort involved in modernizing frontend codebases.