From maister
Orchestrates full migration workflows from current state analysis through planning, incremental implementation, and verification for technologies, platforms, and architecture patterns with rollback planning.
npx claudepluginhub skillpanel/maister --plugin maisterThis skill uses the workspace's default tool permissions.
Systematic migration workflow from current state analysis to verified migration with rollback capabilities.
Orchestrates complete migration workflows for frameworks (e.g., Vue 2β3, ExpressβFastify), databases (MySQLβPostgreSQL), and architectures (RESTβGraphQL, monolithβmicroservices) with analysis, incremental execution, and rollback.
Plans and executes phased migrations for framework upgrades, API bumps, dependency major versions, and deprecations with compatibility verification.
Guides system migrations and technology transitions using strategies like Strangler Fig, Big Bang, Parallel Run, and Branch by Abstraction, with plans for JS to TS, REST to GraphQL, monolith to microservices, and zero-downtime data migration.
Share bugs, ideas, or general feedback.
Systematic migration workflow from current state analysis to verified migration with rollback capabilities.
BEFORE executing any phase, you MUST complete these steps:
Read the framework reference file NOW using the Read tool:
../orchestrator-framework/references/orchestrator-patterns.md - Delegation rules, interactive mode, state schema, initialization, context passing, issue resolutionTaskCreate for all phases (see Phase Configuration), then set dependencies with TaskUpdate addBlockedBy.maister/tasks/migrations/YYYY-MM-DD-task-name/orchestrator-state.yml with migration contextOutput:
π Migration Orchestrator Started
Task: [migration description]
Directory: [task-path]
Starting Phase 1: Analyze current state...
Use for:
DO NOT use for: New features, bug fixes, pure refactoring without technology change.
| Type | Keywords | Strategy | Risk Focus |
|---|---|---|---|
| Code | framework, library, upgrade | Incremental or phased | Breaking changes, API differences |
| Data | database, schema, data migration | Dual-run (zero downtime) | Data integrity, checksums |
| Architecture | RESTβGraphQL, monolithβmicroservices | Dual-run or phased | Compatibility, rollback |
| Phase | content | activeForm | Agent/Skill |
|---|---|---|---|
| 1 | "Analyze current state" | "Analyzing current state" | codebase-analyzer |
| 2 | "Plan target state and gaps" | "Planning target state and gaps" | gap-analyzer |
| 3 | "Gather requirements & create migration strategy" | "Gathering requirements & creating migration strategy" | Direct + specification-creator (subagent) |
| 4 | "Plan implementation" | "Planning implementation" | implementation-planner (subagent) |
| 5 | "Execute migration" | "Executing migration" | implementation-plan-executor |
| 6 | "Verify and test compatibility" | "Verifying and testing compatibility" | implementation-verifier |
| 7 | "Resolve verification issues" | "Resolving verification issues" | Direct (conditional) |
| 8 | "Generate documentation" | "Generating documentation" | user-docs-generator (optional) |
Purpose: Comprehensive analysis of current system before migration, followed by scope/requirements clarification Execute:
maister:codebase-analyzeranalysis/clarifications.md
Output: analysis/current-state-analysis.md, analysis/clarifications.md
State: Update task_context with current system info, task_context.clarifications_resolvedβ AUTO-CONTINUE β Do NOT end turn, do NOT prompt user. Proceed immediately to Phase 2.
Purpose: Define target system and identify migration gaps
Execute: Task tool - maister:gap-analyzer subagent
Output: analysis/target-state-plan.md
State: Update migration_context.migration_type, target_system, risk_level, breaking_changes
Gap Analyzer Tasks:
β Pause
AskUserQuestion - Display executive summary before asking. Extract from gap analysis: current system overview, target system, migration type classified, number of gaps identified, recommended strategy, risk level. Format as brief overview then "Continue to migration strategy?"
Phase gate: Requires
AskUserQuestionconfirmation from Phase 2 before executing.
Purpose: Gather migration requirements, then create detailed migration specification with rollback procedures Execute:
Part A β Migration Requirements Gathering (inline):
analysis/requirements.mdPart B β Specification Creation (subagent):
3. Task tool - maister:specification-creator subagent
Context to pass to subagent: task_path, task_type (migration), task_description, requirements_path (analysis/requirements.md), project_context_paths, migration_type, current_system, target_system, risk_level, breaking_changes, phase_summaries (current_state_analysis, gap_analysis)
Output: analysis/requirements.md, implementation/spec.md, analysis/rollback-plan.md, optionally analysis/dual-run-plan.md
State: Update rollback_plan_created, dual_run_configured
β Pause
AskUserQuestion - Display executive summary before asking. Read implementation/spec.md and extract: migration strategy chosen, scope boundaries, rollback approach, breaking changes identified, key constraints. Format as brief overview then "Continue to implementation planning?"
Phase gate: Requires
AskUserQuestionconfirmation from Phase 3 before executing.
Purpose: Break migration into task groups with rollback steps
Execute: Task tool - maister:implementation-planner subagent
Output: implementation/implementation-plan.md with rollback procedures
State: Update task groups and dependencies
Context to pass to subagent: task_path, task_type (migration), migration_type, task_description, phase_summaries (current_state_analysis, gap_analysis, specification)
β Pause
AskUserQuestion - Display executive summary before asking. Read implementation/implementation-plan.md and extract: number of task groups, total steps, rollback steps included, key dependencies, execution sequence. Format as brief overview then "Continue to execute migration?"
Phase gate: Requires
AskUserQuestionconfirmation from Phase 4 before executing.
Purpose: Execute migration steps with incremental verification
ANTI-PATTERN β DO NOT DO THIS:
INVOKE NOW β Skill tool call:
Execute: Skill tool - maister:implementation-plan-executor
Output: Implemented migration changes, implementation/work-log.md
State: Update implementation progress, extract phase_summaries.implementation
π Standards Reminder: Review .maister/docs/INDEX.md before implementing.
SELF-CHECK: Did you just invoke the Skill tool with maister:implementation-plan-executor? Or did you start writing migration code yourself? If the latter, STOP immediately and invoke the Skill tool instead.
β οΈ POST-IMPLEMENTATION CONTINUATION β After the skill completes and returns control:
orchestrator-state.yml to confirm you are the orchestratorcompleted_phasesβ Pause
AskUserQuestion - Display executive summary before asking. Extract from phase_summaries.implementation and implementation/work-log.md: migration steps completed, files changed, test results, rollback readiness status. Format as brief overview then "Continue to verification?"
Phase gate: Requires
AskUserQuestionconfirmation from Phase 5 before executing.
Purpose: Verify migration success with compatibility and rollback testing
Execute: Skill tool - maister:implementation-verifier
Output: verification/implementation-verification.md, verification/compatibility-test-results.md
State: Update verification results
Migration-Specific Checks:
β οΈ POST-VERIFICATION CONTINUATION β After the skill completes and returns control:
orchestrator-state.yml to confirm you are the orchestratorcompleted_phasesβ Pause
AskUserQuestion - Display executive summary before asking. Extract from verification results: overall verdict, issue counts by severity, compatibility test results, data integrity status, rollback test results. Format as detailed overview then "Continue to Phase [7 or 8]?"
Phase gate: Requires
AskUserQuestionconfirmation from Phase 6 before executing.
Purpose: Fix verification issues through direct editing and re-verification
Execute: Direct - apply fixes, re-verify
Output: Updated code, verification_context.fixes_applied
State: Update reverify_count, decisions_made
Skip if: verdict = PASS
Process:
maister:implementation-verifier β return to Step 1Data Safety Critical: HALT on any data integrity issue - never auto-fix data problems. Always present data issues to user with rollback option.
Exit Conditions:
β Pause
AskUserQuestion - Display executive summary: total issues found, issues fixed, issues remaining by severity. Then "Continue to documentation?"
Phase gate: Requires
AskUserQuestionconfirmation from the preceding phase before executing.
Purpose: Create migration guide for end users
Execute: Task tool - maister:user-docs-generator subagent
Output: documentation/migration-guide.md
State: Set documentation complete
Skip if: options.docs_enabled = false
Documentation Covers:
β End of workflow
Migration-specific fields in orchestrator-state.yml:
migration_context:
migration_type: "code" | "data" | "architecture" | "general"
current_system:
description: null
technologies: []
target_system:
description: null
technologies: []
migration_strategy:
approach: "incremental" | "big-bang" | "dual-run" | "phased"
phases: []
risk_level: null
breaking_changes: []
rollback_plan_created: false
dual_run_configured: false
external_research:
performed: false
category: null
breaking_changes: []
migration_guide_url: null
verification_context:
last_status: null
issues_found: null
fixes_applied: []
decisions_made: []
reverify_count: 0
options:
docs_enabled: false
.maister/tasks/migrations/YYYY-MM-DD-migration-name/
βββ orchestrator-state.yml
βββ analysis/
β βββ current-state-analysis.md # Phase 1
β βββ target-state-plan.md # Phase 2
β βββ requirements.md # Phase 3
β βββ rollback-plan.md # Phase 3
β βββ dual-run-plan.md # Phase 3 (if dual-run)
βββ implementation/
β βββ spec.md # Phase 3
β βββ implementation-plan.md # Phase 4
β βββ work-log.md # Phase 5
βββ verification/
β βββ implementation-verification.md # Phase 6
β βββ compatibility-test-results.md # Phase 6
βββ documentation/
βββ migration-guide.md # Phase 8 (optional)
| Phase | Max Attempts | Strategy |
|---|---|---|
| 1 | 2 | Expand search patterns, prompt user for file paths |
| 2 | 2 | Re-prompt for target details |
| 3 | 2 | Re-gather requirements, re-invoke spec-creator subagent, regenerate rollback plan |
| 4 | 2 | Regenerate with migration constraints |
| 5 | 5 | Fix syntax errors, prompt user on repeated failure |
| 6 | 3 | Fix-then-reverify. HALT on data integrity issues |
| 8 | 1 | Generate text-only without screenshots |
Invoked via:
/maister:migration [description] [--type=TYPE] (new)/maister:migration [task-path] [--from=PHASE] (resume)Task directory: .maister/tasks/migrations/YYYY-MM-DD-task-name/