Token导航 LogoToken导航

Agent Skill · 开发

migration-architect(迁移架构师)

migration-architect 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

migration-architect 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 11,071。

总安装 1,952周安装 83GitHub Stars 103下载 684核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:migration-architect(迁移架构师)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/migration-architect
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill migration-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

migration-architect 用于生成分阶段迁移计划,包含风险评估、兼容性分析和回滚手册。适合处理数据库、服务、基础设施和 API 的迁移项目,支持 schema 兼容性检查和破坏性变更检测。通过命令行工具生成迁移方案和兼容性报告,需配合具体输入文件使用。

安装前请确认权限范围和维护状态,注意可能涉及联网或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/migration-architect

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/borghei/claude-skills --skill migration-archit…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

migration-architect 怎么安装?

在终端执行 npx skills add https://github.com/borghei/claude-skills --skill migration-architect。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

migration-architect 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

migration-architect 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

migration-architect 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

migration-architect 用的人多吗?

公开数据是累计安装 1,952 次,近一周安装 83 次,下载 684 次,GitHub 103 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

migration-architect 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
migration-architect

迁移架构师 · 本页

1,952103需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Migration Architect

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

Quick Start

# Generate a phased migration plan
python scripts/migration_planner.py --input migration_spec.json --output plan.json --format both

# Check schema compatibility between versions
python scripts/compatibility_checker.py --before v1_schema.json --after v2_schema.json --type database

# Generate rollback runbook from a migration plan
python scripts/rollback_generator.py --input plan.json --output runbook.json --format both

Core Workflows

Workflow 1: Plan a Database Migration

  1. Create migration spec JSON with type: "database", source, target, constraints (data volume, max downtime, dependencies)
  2. Run migration_planner.py to generate phased plan with risk assessment
  3. Run compatibility_checker.py to detect breaking schema changes
  4. Review generated phases -- each should have validation criteria and rollback triggers
  5. Validation checkpoint: Zero unaddressed breaking changes; every phase has rollback steps; downtime within max_downtime_minutes constraint
python scripts/compatibility_checker.py --before v1.json --after v2.json --type database --format json
python scripts/migration_planner.py --input spec.json --output plan.json
python scripts/rollback_generator.py --input plan.json --output runbook.json

Workflow 2: Plan a Service Migration (Strangler Fig)

  1. Define spec with type: "service", pattern: "strangler_fig", source/target services, and dependencies
  2. Generate migration plan with traffic routing phases (10% -> 50% -> 100%)
  3. Review rollback triggers at each traffic percentage gate
  4. Validation checkpoint: Circuit breaker thresholds defined; monitoring configured; feature flags lock rollout percentage between phases

Workflow 3: Validate Migration Compatibility

  1. Export before/after schemas as JSON (database or OpenAPI format)
  2. Run compatibility_checker.py to identify breaking changes, type mismatches, and constraint violations
  3. Review generated migration scripts and their rollback counterparts
  4. Validation checkpoint: All breaking changes have migration scripts; rollback scripts verified; validation queries pass

Migration Patterns

PatternTypeBest For
Expand-ContractDatabaseZero-downtime schema evolution with backfill
Dual-WriteDatabaseMaintaining consistency during transition
Change Data CaptureDatabaseLarge dataset migration with eventual consistency
Strangler FigServiceIncremental service replacement via gateway routing
Parallel RunServiceShadow traffic for correctness validation
Canary DeploymentServiceGradual traffic shift with metric monitoring
Blue-GreenInfrastructureInstant cutover with full rollback capability

Anti-Patterns

  • Big bang migration -- migrating everything at once maximizes blast radius; always use phased execution with validation gates
  • Stale backups -- taking backups at plan creation instead of immediately before execution; always create fresh backup as first execution task
  • Skipping staging -- production-only migration attempts have no safety net; run the full process in a staging environment first
  • No data reconciliation -- row counts match but data differs; use checksum validation and business logic queries on critical tables
  • Ignoring dependent systems -- breaking downstream consumers during cutover; map all dependencies and coordinate migration windows
  • Feature flag drift -- changing rollout percentage mid-phase causes inconsistent user experience; lock flags during each phase

Troubleshooting

ProblemCauseSolution
Compatibility checker reports false positives on type changesSource and target schemas use vendor-specific type aliases (e.g., serial vs int) that are not in the built-in type compatibility matrixNormalize type aliases to canonical SQL/JSON types in both schema files before running the checker
Migration planner generates unrealistic duration estimatesComplexity multiplier does not account for organizational factors like change-board approvals or cross-team coordinationAdjust the constraints block in your input spec to include special_requirements entries for each non-technical blocker
Rollback generator produces empty rollback steps for a phaseThe phase name in the migration plan does not match any of the recognized keywords (migration, cutover, preparation)Use standard phase names from the planner output, or ensure custom phase names contain one of the recognized keywords
Data validation fails after migration but row counts matchSoft deletes, filtered records, or computed columns cause hash/checksum mismatches even when primary data is intactUse business logic validation (aggregate queries on key columns) instead of full-row checksums for tables with soft deletes or generated columns
Dual-write pattern causes write conflicts during cutoverRace conditions between source and target systems when replication lag exceeds the write intervalImplement idempotent writes with conflict-resolution timestamps, and increase the delta-sync frequency before the cutover window
Rollback triggered but legacy database backup is staleBackup was taken at plan creation time rather than immediately before the migration execution phaseAlways create a fresh backup as the first task of the migration execution phase; reference migration_planner.py preparation-phase tasks
Feature flag rollout causes inconsistent user experienceHash-based routing sends the same user to different paths across sessions when the flag name or rollout percentage changes mid-migrationLock the flag name and rollout percentage during each migration phase; only adjust between validated phase gates

Success Criteria

  • Data Integrity: 100% of records pass post-migration checksum and referential-integrity validation with zero data loss or corruption.
  • Downtime Within Budget: Actual service unavailability stays within the max_downtime_minutes constraint defined in the migration spec (target: zero-downtime for critical systems).
  • Performance Parity: P95 latency and throughput on the target system are within 10% of pre-migration baseline measurements during the first 72 hours after cutover.
  • Rollback Readiness: Every migration phase has a tested rollback procedure that can restore the previous state within 25% of the original phase duration.
  • Stakeholder Sign-off: All stakeholders listed in the migration plan confirm acceptance criteria are met before legacy decommission begins.
  • Zero Critical Defects: No severity-critical or severity-high issues remain unresolved 48 hours after cutover; all issues are tracked with owners and ETAs.
  • Compliance Continuity: All regulatory and compliance controls (audit logging, access controls, encryption) remain fully operational throughout the migration and are validated in the target environment.

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

Tool Reference

migration_planner.py

Purpose: Generates comprehensive, phased migration plans with risk assessment, rollback strategies, timeline estimates, and stakeholder communication structures from a JSON migration specification.

Usage:

python scripts/migration_planner.py --input <spec.json> [--output <plan.json>] [--format <format>] [--validate]

Flags/Parameters:

FlagRequiredDefaultDescription
--input, -iYes--Input migration specification file (JSON). Must contain type, source, and target fields.
--output, -oNostdoutOutput file path for the migration plan (JSON). Text output saved to same path with .txt extension when format includes text.
--format, -fNobothOutput format. Choices: json, text, both.
--validateNofalseValidate the migration specification without generating a plan. Exits with 0 if valid.

Input Specification Fields:

  • type (required): Migration type -- database, service, infrastructure, data, or api.
  • source (required): Source system identifier.
  • target (required): Target system identifier.
  • pattern: Migration pattern (e.g., schema_change, data_migration, strangler_fig, parallel_run, cloud_migration, on_prem_to_cloud).
  • constraints.data_volume_gb: Data volume in GB (affects complexity scoring).
  • constraints.dependencies: List of dependent systems.
  • constraints.max_downtime_minutes: Maximum allowed downtime in minutes.
  • constraints.special_requirements: List of additional requirements that increase complexity.
  • constraints.compliance_requirements: List of compliance frameworks that apply.

Example:

python scripts/migration_planner.py --input migration_spec.json --output plan.json --format both

Output Formats:

  • JSON: Complete MigrationPlan object with migration_id, phases (each with tasks, validation criteria, rollback triggers), risks (categorized by severity), rollback_plan, success_criteria, and stakeholders.
  • Text: Human-readable report with sections for phases, risk assessment, rollback strategy, success criteria, and stakeholders.

compatibility_checker.py

Purpose: Analyzes schema and API compatibility between two versions, identifies breaking changes, data type mismatches, constraint violations, and generates migration script suggestions with rollback counterparts.

Usage:

python scripts/compatibility_checker.py --before <old.json> --after <new.json> [--type <schema_type>] [--output <report.json>] [--format <format>]

Flags/Parameters:

FlagRequiredDefaultDescription
--beforeYes--Path to the before/old schema file (JSON).
--afterYes--Path to the after/new schema file (JSON).
--typeNodatabaseSchema type to analyze. Choices: database, api.
--output, -oNostdoutOutput file path for the compatibility report (JSON).
--format, -fNobothOutput format. Choices: json, text, both.

Input Schema Format (database): JSON with a tables object where each key is a table name containing columns (with type, nullable, length, default per column) and constraints (with primary_key, foreign_key, unique, check, index arrays).

Input Schema Format (api): OpenAPI-style JSON with paths (keyed by route, containing HTTP methods) and components.schemas (keyed by model name with properties, required arrays, and field type definitions).

Example:

python scripts/compatibility_checker.py --before v1_schema.json --after v2_schema.json --type database --format json

Output Formats:

  • JSON: CompatibilityReport with overall_compatibility level, counts by change type (breaking_changes_count, potentially_breaking_count, non_breaking_changes_count, additive_changes_count), detailed issues list (each with severity, impact, suggested migration), migration_scripts (with rollback scripts and validation queries), risk_assessment, and recommendations.
  • Text: Human-readable report with color-coded severity sections, issue details, and migration script listings.

rollback_generator.py

Purpose: Takes a migration plan (typically the JSON output of migration_planner.py) and generates a comprehensive rollback runbook with phase-by-phase reversal steps, automated trigger conditions, data recovery plans, escalation matrices, and communication templates.

Usage:

python scripts/rollback_generator.py --input <plan.json> [--output <runbook.json>] [--format <format>]

Flags/Parameters:

FlagRequiredDefaultDescription
--input, -iYes--Input migration plan file (JSON). Expects output from migration_planner.py or any JSON with migration_id, migration_type, and phases fields.
--output, -oNostdoutOutput file path for the rollback runbook (JSON).
--format, -fNobothOutput format. Choices: json, text, both.

Example:

python scripts/migration_planner.py --input spec.json --output plan.json --format json
python scripts/rollback_generator.py --input plan.json --output runbook.json --format both

Output Formats:

  • JSON: RollbackRunbook object with runbook_id, rollback_phases (each containing ordered steps with script content, validation commands, success criteria, and failure escalation), trigger_conditions (with metric thresholds and auto-execute flags), data_recovery_plan (backup location, recovery scripts, estimated recovery time), communication_templates (for technical, business, and executive audiences), escalation_matrix, validation_checklist, post_rollback_procedures, and emergency_contacts.
  • Text: Human-readable runbook with phase-by-phase rollback instructions, trigger condition summaries, communication templates, and a post-rollback checklist.

平台分布

Codex

39.22%
按下载量换算268

Claude

29.65%
按下载量换算203

Cursor

18.77%
按下载量换算128

Gemini CLI

8.57%
按下载量换算59

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills