From core
Orchestrates multi-phase code modernization, conversion, or re-architecture projects (e.g. C++→Java, monolith→microservices) with sequential phase execution and state tracking.
How this command is triggered — by the user, by Claude, or both
Slash command
/core:modernization-flowThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Modernization Flow - Execute Phases Sequentially ## Context This modernization process is designed to systematically analyze, specify, and implement code modernization/migration projects. The process is divided into phases that **MUST be executed one-by-one**. ### Critical Requirements - **ONE PHASE AT A TIME**: Read one phase file, execute it completely, update state file, then move to next phase. - **DO NOT SKIP PHASES**: Each phase builds on the previous one. - **STATE TRACKING**: After each phase, update `agents/modernization-flow-state.md` with completion status, keep this docume...
This modernization process is designed to systematically analyze, specify, and implement code modernization/migration projects. The process is divided into phases that MUST be executed one-by-one.
agents/modernization-flow-state.md with completion status, keep this document concise.Phase 2 and Phase 6, unless you discover dependencies and project becomes bigger.Phase 1: Existing Library Analysis for Reusing in Target State [modernization-flow-reuse.md]
agents/modernization-flow-state.md with brief statePhase 2: Old Code Analysis, Generating Original Specs [modernization-flow-analysis.md]
agents/modernization-flow-state.md with brief statePhase 3: Pre-Modernization Test Coverage (OPTIONAL) [modernization-flow-testing.md] NOTE: Execute this phase if user explicitly approves it
agents/modernization-flow-state.md with brief statePhase 4: Class Group Analysis [modernization-flow-grouping.md]
agents/modernization-flow-state.md with brief statePhase 5: Cross-Project Analysis [modernization-flow-crossproject.md]
agents/modernization-flow-state.md with brief statePhase 6: Implementation Mapping, Generating Target Specs [modernization-flow-mapping.md]
agents/modernization-flow-state.md with brief statePhase 7: Final Review [modernization-flow-review.md]
agents/modernization-flow-state.md with brief statePhase 8: Implementation [modernization-flow-implement.md]
Create/update agents/modernization-flow-state.md briefly after each phase using sample:
# Modernization State
**Last Updated**: [Date and Time]
**Current Status**: [Phase Number or COMPLETE]
**Project**: [Project/Feature Name]
## Phase Completion Status
- [x] Phase 1: Existing Library Analysis - Completed [Date]
- [ ] Phase 2: Old Code Analysis - Not Started
- [ ] Phase 3: Test Coverage (OPTIONAL) - Not Started / Skipped
- [ ] Phase 4: Class Group Analysis - Not Started
- [ ] Phase 5: Cross-Project Analysis - Not Started
- [ ] Phase 6: Implementation Mapping - Not Started
- [ ] Phase 7: Final Review - Not Started
- [ ] Implementation Phase - Not Started
## Phase Details
### Phase 1
- Completed: [Date/Time]
- Files Created: [List files]
- Projects Analyzed: [List projects]
- Notes: [Any relevant notes]
[Add similar sections for each completed phase]
npx claudepluginhub p/griddynamics-core-instructions-r2-core/legacy-modernizeOrchestrates legacy codebase modernization using the strangler fig pattern with a selected strategy, producing analysis, migration plans, and phased output artifacts.
/modernize-briefGenerates a phased Modernization Brief from assessment outputs, topology, and business rules, producing a steering-committee-ready plan with target architecture and phased sequence.
/migrateAnalyzes legacy and new codebase paths to generate a prioritized plan of independently shippable migrations via structure scans and developer interview.
/migrateGuides code migration, framework upgrades, and technology modernization. Supports assessment, dependency analysis, and rollback planning.
/modernization-reviewAnalyzes code for outdated patterns and deprecated features, then generates a prioritized modernization plan as a markdown report. Accepts optional scope: file, directory, current changes, recent commits, or PR.