mcpField
M
migration-architect

migration-architect

github.com/borgheiDevelopment1.0k124 installsUpdated 1w ago
Repository

About migration-architect

migration-architect is a skill for teams planning database, service, infrastructure, and API migrations. It generates phased plans, checks schema compatibility, and prepares rollback runbooks, but does not execute migrations on live systems.

Key features

  1. 01Create phased migration plans with risk assessment
  2. 02Compare schemas and detect breaking changes
  3. 03Generate migration and rollback scripts
  4. 04Produce rollback runbooks and recovery steps
  5. 05Use established migration patterns

Use cases

  1. 01Plan a database or service migration
  2. 02Check API or schema changes before cutover
  3. 03Prepare rollback procedures for a migration

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/borghei/claude-skills --skill migration-architect

After installing, type/migration-architectin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
assets/
database_schema_after.json
database_schema_before.json
sample_database_migration.json
sample_service_migration.json
expected_outputs/
rollback_runbook.json
rollback_runbook.txt
sample_database_migration_plan.json
sample_database_migration_plan.txt
sample_service_migration_plan.json
sample_service_migration_plan.txt
schema_compatibility_report.json
schema_compatibility_report.txt
references/
data_reconciliation_strategies.md
migration_patterns_catalog.md
tool-reference.md
workflows-patterns-and-quality.md
zero_downtime_techniques.md
scripts/
compatibility_checker.py
migration_planner.py
rollback_generator.py

Details

From the project README

Migration Architect

Generates phased migration plans with risk assessment, compatibility analysis, and rollback runbooks for database, service, infrastructure, and API migrations. Validates schema compatibility, detects breaking changes, and produces rollback procedures with trigger conditions and communication templates.

Core Capabilities

  • Phased planning — generate risk-assessed, multi-phase migration plans with validation gates, timelines, and stakeholder structures from a JSON spec.
  • Compatibility analysis — diff before/after database or REST/JSON schemas to detect breaking changes, type mismatches, and constraint violations, with migration + rollback scripts.
  • Rollback runbooks — phase-by-phase reversal steps, automated trigger conditions, data-recovery plans, escalation matrices, and communication templates.
  • Pattern catalog — Expand-Contract, Dual-Write, CDC, Strangler Fig, Parallel Run, Canary, Blue-Green.
  • Risk frameworks — technical, business, operational, and compliance risk categories.

When to Use

  • Migrating databases, APIs, infrastructure, or services between platforms or versions.
  • Validating schema/API compatibility and detecting breaking changes before cutover.
  • Building rollback runbooks and zero-downtime execution plans.

Clarify First

Before planning the migration, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • What's migrating — database, API, infrastructure, or service (sets --type and which pattern catalog applies)
  • Deliverable — phased plan, compatibility diff, or rollback runbook (selects migration_planner.py vs compatibility_checker.py vs rollback_generator.py)
  • Downtime budget & pattern — zero-downtime requirement and which pattern (expand-contract, dual-write, strangler fig, blue-green) (drives the phases and cutover technique)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Tools

ToolPurposeCommand
migration_planner.pyGenerate a phased migration plan with risk assessmentpython scripts/migration_planner.py --input spec.json --output plan.json --format both
compatibility_checker.pyDiff schemas/APIs and flag breaking changespython scripts/compatibility_checker.py --before v1.json --after v2.json --type database
rollback_generator.pyGenerate a rollback runbook from a planpython scripts/rollback_generator.py --input plan.json --output runbook.json --format both

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

Scope & Limitations

This skill covers:

  • End-to-end migration planning for databases, services, infrastructure, and APIs with phased execution and validation gates.
  • Automated compatibility analysis between schema versions (SQL and REST/JSON) including breaking-change detection and migration script generation.
  • Rollback runbook generation with trigger conditions, data recovery plans, escalation matrices, and communication templates.
  • Risk assessment frameworks covering technical, business, operational, and compliance risk categories.

This skill does NOT cover:

  • Actual execution of migrations against live systems -- the tools generate plans, reports, and scripts but do not connect to databases or cloud APIs.
  • Application-level code refactoring required to support new schemas or APIs; see engineering/api-design-reviewer for API contract changes and engineering/database-designer for schema design.
  • Real-time monitoring, alerting, or dashboard provisioning during migration execution; see engineering/observability-designer for observability setup.
  • Cloud cost optimization or capacity planning for target infrastructure; see engineering/ci-cd-pipeline-builder for deployment pipeline configuration.

Integration Points

SkillIntegrationData Flow
engineering/database-designerDesign target schema before migration planningTarget schema JSON feeds into compatibility_checker.py --after
engineering/api-design-reviewerValidate API contract changes for service migrationsOpenAPI spec diffs feed into compatibility_checker.py --type api
engineering/observability-designerSet up monitoring dashboards referenced in migration runbooksMigration plan success metrics inform alerting rule definitions
engineering/ci-cd-pipeline-builderEmbed migration validation in CI/CD stagescompatibility_checker.py runs as a pipeline stage; migration_planner.py --validate gates deployments
engineering/runbook-generatorExtend rollback runbooks with operational proceduresrollback_generator.py output serves as input for detailed operational runbooks
engineering/release-managerCoordinate migration cutover with release schedulesMigration plan phases and timelines align with release windows and feature-flag rollout stages

Comments

Markdown supported