MCPInstall

migrate

Plan and execute migrations to Astro or between Astro versions with minimal regressions.

Installs
366
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/incluud/astro-agent-skills --skill migrate
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads migrate automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Migrate to Astro

Use this skill when moving a project from another framework to Astro, converting a static site into Astro, or upgrading an existing Astro codebase.

If astro-best-practices is available, apply it alongside this skill so the migrated result follows good Astro defaults rather than just reproducing the old system mechanically.

Workflow

1. Inventory the current system

Before changing code, identify:

  • routing structure
  • layout/shared shell patterns
  • data sources
  • styling strategy
  • interactive components
  • image handling
  • deployment/runtime requirements

This determines whether the target should be static, hybrid, or server-rendered.

2. Choose the migration shape

Common patterns:

  • static HTML to Astro pages and layouts
  • Next.js or Nuxt to Astro pages plus framework islands
  • Gatsby content/data flows to content collections
  • Astro major-version upgrades using the official upgrade guide

Prefer an incremental migration plan when the existing app has meaningful runtime behavior or a large interactive surface.

3. Map concepts instead of copying files blindly

Typical mappings:

SourceAstro target
shared app shelllayout
route componentpage or dynamic route
markdown/content pipelinecontent collection
framework-only widgetisland with client directive
image helperastro:assets or the project’s current image strategy

Keep framework components only where they still add value. Static content should usually become .astro.

4. Rebuild the routing and data flow

For each migrated slice:

  • recreate routes in src/pages/
  • move shared wrappers into src/layouts/
  • migrate structured content into src/content/
  • replace framework-specific fetching patterns with Astro frontmatter or content APIs

When a page was using getStaticPaths-style route generation before, rebuild it explicitly in Astro rather than simulating the old framework lifecycle.

5. Handle interactivity as islands

Do not port an entire framework app into Astro unchanged unless that is a deliberate compatibility bridge.

Instead:

  • keep the static shell in .astro
  • preserve framework components for interactive islands
  • choose client directives intentionally
  • minimize the hydrated surface

6. Validate behavior and regressions

Check at least:

  • route parity
  • metadata and head output
  • image rendering
  • form behavior
  • keyboard navigation
  • build and preview behavior
  • deployment assumptions

Astro Upgrade Guidance

For Astro-to-Astro upgrades:

  • start with the official upgrade guide and use npx @astrojs/upgrade when it fits the repo
  • update official integrations and adapters together with Astro, not as a separate afterthought
  • verify the local and deployment runtime meet the current Node requirement before debugging code-level issues
  • rerun content, routing, and build checks after the upgrade

For Astro 6 specifically, check these breakpoints:

  • Node runtime: Astro 6 requires Node 22.12.0 or newer
  • content collections: use src/content.config.*, define a loader for every collection, remove type, import z from astro/zod, use entry.id instead of slug, and replace entry.render() with render(entry)
  • legacy collection flags: remove any legacy.collections config
  • file querying: replace Astro.glob() with import.meta.glob() or getCollection() for content collections
  • view transitions: replace <ViewTransitions /> with <ClientRouter /> if it still exists in the project
  • getStaticPaths(): remove Astro.generator, and replace Astro.site with import.meta.env.SITE if it is used inside getStaticPaths()
  • custom schemas: review custom Zod usage against Zod 4 if validation starts failing after the upgrade

Use version-specific docs for breaking changes. Do not assume older migration advice still applies to the current Astro release.

FAQ

What does the migrate skill do?

Plan and execute migrations to Astro or between Astro versions with minimal regressions.

How do I install migrate?

Run npx skills add https://github.com/incluud/astro-agent-skills --skill migrate in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/migrate/ (personal) or .claude/skills/migrate/ (project).

Which AI agents can use migrate?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is migrate safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains migrate?

It is published by incluud in incluud/astro-agent-skills. It has 366 recorded installs.

More from incluud/astro-agent-skills

View all →

astro-best-practices

incluud/astro-agent-skills

Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects.

create-component

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design429 installs

docs-lookup

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing423 installs

content-collection

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

AI & Agents414 installs

add-integration

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

AI & Agents404 installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs