/arn-infra:arn-infra-migratefrom arn-infra
Manages infrastructure migrations between cloud providers, from PaaS to IaC, provider consolidation, and partial migrations with full lifecycle tracking.
Ships in arn-infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Handle infrastructure migrations as tracked projects with four scenarios: PaaS-to-IaC graduation, provider-to-provider migration, provider consolidation, and partial migration. Creates a parent issue with migration overview and decomposes into individual task issues with dependencies, verification criteria, and rollback procedures.
This skill manages the full migration lifecycle: planning, IaC generation for the target, incremental deployment to staging, verification, cutover, and cleanup. It warns other skills about in-progress migrations to prevent conflicting changes.
Read ## Arness from the project's CLAUDE.md. If no ## Arness section exists or Arness Infra fields are missing, inform the user: "Arness Infra is not configured for this project yet. Run /arn-infra-wizard to get started — it will set everything up automatically." Do not proceed without it.
Check the Deferred field. If Deferred: yes, inform the user: "Infrastructure is in deferred mode. Migration is not available until infrastructure is fully configured. Run /arn-infra-assess to un-defer." Stop.
Extract:
~/.arness/user-profile.yaml (or .claude/arness-profile.local.md if it exists — project override takes precedence). Apply the experience derivation mapping from ${CLAUDE_PLUGIN_ROOT}/skills/arn-infra-ensure-config/references/experience-derivation.md. If no profile exists, check for legacy Experience level in ## Arness as fallback.providers.mdenvironments.md.arness/infra-plans)Ask (using AskUserQuestion):
"What kind of migration are you planning?"
Options:
fly.toml to OpenTofu, Heroku to AWS)Read the local override or plugin default for
migration-scenarios.md.
Read the provider configuration:
Read <providers-config-path>
Check if any providers have Migration: <id> (in progress):
If active migration detected: Warn: "There is an active migration in progress: [migration-id] affecting [providers/services]. Starting a new migration that overlaps with these services could cause conflicts."
Ask (using AskUserQuestion):
"How would you like to handle the active migration conflict?"
Options:
If no active migrations: Continue to Step 3.
Based on the chosen scenario:
Graduate:
## Arness configProvider migration:
Consolidation:
Partial migration:
Invoke the arn-infra-specialist agent via the Task tool, passing the model from .arness/agent-models/infra.md as the model parameter (see plugins/arn-infra/skills/arn-infra-ensure-config/references/ensure-config.md "Dispatch convention" for fallback). Context:
--- MIGRATION CONTEXT --- Scenario: [graduate | provider-migration | consolidation | partial] Source: [source provider(s) and current configuration] Target: [target provider(s) and IaC tool] Services affected: [list of services being migrated] Environments: [environment promotion order] --- END MIGRATION CONTEXT ---
--- INSTRUCTIONS --- Generate a migration plan covering:
Invoke the arn-infra-cost-analyst agent via the Task tool, passing the model from .arness/agent-models/infra.md as the model parameter (see plugins/arn-infra/skills/arn-infra-ensure-config/references/ensure-config.md "Dispatch convention" for fallback). Context:
--- COST CONTEXT --- Source infrastructure: [current provider resources and costs] Target infrastructure: [proposed target resources] Migration type: [scenario] --- END COST CONTEXT ---
--- INSTRUCTIONS --- Compare monthly costs before and after migration:
Present the migration plan to the user:
"Here is the migration plan:
Scenario: [type] Source: [provider(s)] Target: [provider(s)] Services affected: [list]
Cost comparison:
| Current | After Migration | Change | |
|---|---|---|---|
| Monthly cost | $X | $Y | +/-$Z |
Migration steps: [numbered list of steps with dependencies and estimated duration]
Rollback plan: [summary of rollback strategy]
Risks: [identified risks with mitigation]
Ask (using AskUserQuestion):
"How would you like to proceed with the migration plan?"
Options:
Upon approval, create the migration project in the issue tracker.
If Issue tracker is none: Skip issue creation (Steps 5.1, 5.2). Record the migration plan in a file at <infra-plans-dir>/MIGRATION_<name>.md instead. Mark providers as migrating in providers.md (Step 5.3) and proceed to Step 6.
5.1: Create parent issue:
GitHub:
gh issue create \
--title "Migration: [scenario description]" \
--label "arn-infra-migration" \
--body "[migration plan overview: source/target providers, affected services, timeline, risk assessment, cost comparison]"
Jira: Use the Atlassian MCP to create an Epic with the migration plan.
For all subsequent issue operations in Steps 5.2, 6.4, 7, 8, and 9: use the Atlassian MCP to perform the equivalent Jira operation (create sub-task, update status, transition to Done, add comment, close Epic).
Record the parent issue number as migration-id.
5.2: Create task issues:
For each migration step, create a task issue:
GitHub:
gh issue create \
--title "Migration task: [step description]" \
--label "arn-infra-migration-task" \
--body "[step details: source, target, dependencies, verification criteria, rollback procedure]"
Link each task issue to the parent issue (reference in body: "Part of #[parent-number]").
5.3: Mark providers as migrating:
Update providers.md for each affected provider:
Migration: <migration-id> (in progress) to the affected provider entriesRead the local override or plugin default for
migration-checklist.md.
Execute migration steps incrementally. For each task:
6.1: Generate target IaC
Adapt IaC generation instructions to experience level (beginner: simplified configs with comments, expert: production-ready with minimal comments).
Invoke the arn-infra-specialist agent to generate IaC for the target provider/service. Follow the same patterns as arn-infra-define: invoke the arn-infra-specialist agent via the Task tool, passing the model from .arness/agent-models/infra.md as the model parameter (see plugins/arn-infra/skills/arn-infra-ensure-config/references/ensure-config.md "Dispatch convention" for fallback), with the target provider's IaC tool and patterns reference, scoped to the specific migration task.
6.2: Deploy to staging
Deploy the target infrastructure to the staging environment:
6.3: Verify in staging
Run verification checks:
6.4: Update task status
GitHub:
gh issue edit <task-number> --remove-label "arn-infra-migration-task" --add-label "arn-infra-migration-ready"
Present: "Migration step [N] verified in staging. Task #[number] is marked as ready."
When all migration tasks are marked arn-infra-migration-ready:
Pre-cutover checklist:
Execute cutover:
Update the parent issue:
gh issue edit <parent-number> --remove-label "arn-infra-migration" --add-label "arn-infra-migration-cutover"
For each migration task (in dependency order):
Post-cutover verification:
On successful cutover:
8.1: Update providers.md:
Migration: <id> flags8.2: Create cleanup issues:
For each decommissioned resource on the source provider:
gh issue create \
--title "Cleanup: Decommission [resource] on [old provider]" \
--label "arn-infra-cleanup" \
--body "Resource [name] on [provider] has been replaced by [target]. Verify no residual traffic, then destroy."
8.3: Close parent issue:
gh issue close <parent-number> --comment "Migration complete. All services verified on [target provider]. Cleanup issues created for decommissioning source resources."
8.4: Update CLAUDE.md:
Update the ## Arness Providers field if the provider list has changed.
At any point during the migration, if something goes wrong:
Rollback procedure:
gh issue edit <task-number> --add-label "arn-infra-migration-rollback"
providers.md if the entire migration is abandonedPresent: "Migration step [N] has been rolled back. Source infrastructure is still active and serving traffic. Diagnostics have been preserved in the task issue."
Ask (using AskUserQuestion):
"What would you like to do next?"
Options:
Migration Summary:
Recommended next steps:
"Migration is [status]. Here is the recommended path:
[If completed:]
/arn-infra-monitor to verify monitoring on the new provider/arn-infra-pipeline to update pipelines for the new provider[If in-progress:]
[If rolled-back:]
/arn-infra-migrate"## Arness config missing: Suggest running /arn-infra-wizard to get started. Stop./arn-infra-init.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub appsvortex/arness --plugin arn-infra25 skills in this plugin
/arn-infra-assessThis skill should be used when the user says "assess infrastructure", "infra assess", "arn infra assess", "infrastructure assessment", "analyze infrastructure needs", "what infrastructure do I need", "infrastructure audit", "app infrastructure assessment", "full infra assessment", "infrastructure review", "assess my app", "un-defer infrastructure", "infra backlog", or wants a comprehensive analysis of their application's infrastructure needs, including processing deferred infrastructure backlogs, to produce a prioritized infrastructure backlog published as issues./arn-infra-change-planThis skill should be used when the user says "plan infra change", "arn-infra-change-plan", "infra change plan", "plan this infrastructure change", "create infra plan", "arn infra plan", "plan the infra spec", "infrastructure implementation plan", "infra plan from spec", "generate infra plan", "plan infrastructure", or wants to generate a phased implementation plan from an infrastructure change specification, structured by provisioning order, blast radius, rollback checkpoints, and environment promotion gates./arn-infra-change-specThis skill should be used when the user says "infra change spec", "infrastructure change", "specify infrastructure change", "change spec", "arn infra spec", "describe infra change", "what infrastructure needs to change", "infra spec", "spec this infra change", "write infra spec", "infrastructure change specification", "create infra change spec", "upgrade to pipeline", "convert to pipeline", or wants to iteratively develop an infrastructure change idea into a well-formed specification through guided conversation, or wants to upgrade existing interactive IaC artifacts into the structured change pipeline./arn-infra-cleanupThis skill should be used when the user says "cleanup", "infra cleanup", "arn infra cleanup", "clean up resources", "destroy expired resources", "check ttl", "check expired", "ttl cleanup", "remove old deployments", "destroy dev environment", "tear down", "teardown infra", "destroy resources", "cleanup ephemeral", "check for expired resources", "clean up infra", "resource cleanup", "destroy old resources", "prune resources", "delete expired deployments", "decommission", or wants to check for and destroy expired ephemeral infrastructure resources. This skill also supports periodic monitoring via `/loop 6h /arn-infra-cleanup` for session-duration TTL enforcement./arn-infra-containerizeThis skill should be used when the user says "containerize", "dockerize", "create dockerfile", "docker setup", "container setup", "arn infra containerize", "infra containerize", "generate docker", "docker compose", "compose setup", "containerize my app", "docker configuration", "create docker-compose", "multi-stage docker", "container config", "dockerize my application", "infra docker", "set up containers", or wants to generate Dockerfiles, docker-compose configurations, and .dockerignore files for their application with security auditing and multi-stage build best practices./arn-infra-defineThis skill should be used when the user says "define infrastructure", "generate IaC", "infra define", "arn infra define", "generate terraform", "generate opentofu", "generate pulumi", "generate cdk", "generate bicep", "create kubernetes manifests", "provision cloud resources", "create IaC", "infrastructure as code", or wants to generate infrastructure-as-code in their chosen IaC tool for configured cloud provider(s). It produces provider-specific infrastructure code, validates it through a multi-level validation ladder, and writes an infrastructure architecture spec.Other plugins' skills for the same job