**Description**: Create a detailed modernization strategy and execution plan, utilizing ASSESSMENT.md if available, with phase breakdown, timeline, and resource allocation
Creates a comprehensive modernization execution plan with phases, timeline, resources, and risk mitigation.
/plugin marketplace add laird/agents/plugin install modernize@plugin-marketplaceDescription: Create a detailed modernization strategy and execution plan, utilizing ASSESSMENT.md if available, with phase breakdown, timeline, and resource allocation
Version: 1.0
Purpose: Create a comprehensive, actionable modernization plan
Input: Optional ASSESSMENT.md from /modernize-assess
Output: PLAN.md with detailed execution strategy
Duration: 3-6 hours
Note: Time estimates are based on typical human execution times and may vary significantly based on project complexity, team experience, and AI assistance capabilities.
This protocol creates a detailed modernization execution plan that serves as the blueprint for the /modernize-project command. The plan includes:
Core Principle: Proper planning prevents poor performance - plan before you execute.
# Check for ASSESSMENT.md
if [ -f "ASSESSMENT.md" ]; then
echo "✅ Found ASSESSMENT.md - using as input"
# Extract: scores, risks, estimates, recommendations
else
echo "⚠️ No ASSESSMENT.md found - will create basic assessment"
# Run abbreviated assessment inline
fi
If assessment exists:
If no assessment:
Primary Objectives (MUST achieve):
Secondary Objectives (SHOULD achieve):
Out of Scope (explicitly NOT doing):
Technical Success:
Business Success:
For each of the 7 phases, define:
Duration: [X-Y days] Team: [Names/Roles] Agent: Migration Coordinator + Security Agent + Architect Agent
Tasks:
Project Inventory (4 hours)
Security Baseline (4 hours)
Test Baseline (4 hours)
Technology Assessment (4 hours)
Effort Estimation (2 hours)
Exit Criteria:
Risks:
Duration: [X-Y days] Team: [Names/Roles] Agent: Security Agent (lead) + Coder Agent + Tester Agent
Tasks:
Fix CRITICAL Vulnerabilities (XX hours)
Fix HIGH Vulnerabilities (YY hours)
Update Security Dependencies (ZZ hours)
Validation Testing (WW hours)
Exit Criteria:
Risks:
Contingency:
Duration: [X-Y days] Team: [Names/Roles] Agent: Architect Agent (lead) + Migration Coordinator
Tasks:
Create Migration ADRs (8 hours)
Dependency Migration Matrix (6 hours)
Breaking Changes Analysis (8 hours)
Module Migration Order (4 hours)
Exit Criteria:
Risks:
Duration: [X-Y days] Team: [Names/Roles] Agent: Coder Agent (multiple) + Tester Agent
Parallel Execution Strategy:
Module A: [Dev 1] → [X days]
Module B: [Dev 2] → [Y days]
Module C: [Dev 3] → [Z days]
Tasks by Module:
Module A: [Name] (XX hours)
Module B: [Name] (YY hours) [Similar breakdown]
Module C: [Name] (ZZ hours) [Similar breakdown]
Integration (WW hours)
Exit Criteria:
Risks:
Duration: [X-Y days] Team: [Names/Roles] Agent: Coder Agent + Tester Agent + Architect Agent
Tasks:
Replace Obsolete APIs (XX hours)
Apply Modern Patterns (YY hours)
Enhance Test Coverage (ZZ hours)
Code Quality (WW hours)
Exit Criteria:
Risks:
Duration: [X-Y days] Team: [Names/Roles] Agent: Coder Agent + Tester Agent
Tasks:
Baseline Benchmarks (4 hours)
Identify Bottlenecks (8 hours)
Implement Optimizations (XX hours)
Validate Performance (6 hours)
Exit Criteria:
Risks:
Duration: [X-Y days] Team: [Names/Roles] Agent: Documentation Agent (lead)
Tasks:
CHANGELOG.md (6 hours)
MIGRATION-GUIDE.md (12 hours)
Update Documentation (8 hours)
ADR Summaries (4 hours)
Exit Criteria:
Duration: [X-Y days] Team: [Names/Roles] Agent: Tester Agent (lead) + Security Agent + Coordinator
Tasks:
Complete Test Execution (12 hours)
Final Security Scan (4 hours)
Release Preparation (8 hours)
GO/NO-GO Decision (2 hours)
Exit Criteria:
Week 1-2: Phase 0 (Discovery) ████████
Week 3-4: Phase 1 (Security) ████████████
Week 5-6: Phase 2 (Arch) ████████
Week 7-10: Phase 3 (Framework) ████████████████████
Module A ████████
Module B ████████
Module C ████████
Week 11-13: Phase 4 (API Mod) ████████████
Week 14-15: Phase 5 (Perf) ████████
Week 16-17: Phase 6 (Docs) ████████
Week 18: Phase 7 (Validate) ████
| Milestone | Date | Deliverables | Success Criteria |
|---|---|---|---|
| M1: Assessment Complete | Week 2 | Security baseline, test baseline, plan | All baselines captured |
| M2: Security Remediated | Week 4 | Security score ≥45, CVEs fixed | Zero CRITICAL/HIGH |
| M3: Architecture Approved | Week 6 | ADRs, migration strategy | Team aligned |
| M4: Framework Migrated | Week 10 | All modules on new framework | Builds, 100% tests |
| M5: Code Modernized | Week 13 | Modern APIs, ≥85% coverage | Quality improved |
| M6: Performance Validated | Week 15 | Benchmarks, optimizations | No regressions |
| M7: Documentation Complete | Week 17 | CHANGELOG, migration guide | All docs done |
| M8: Production Ready | Week 18 | Final validation, approval | GO decision |
Phase 0: Discovery
Phase 1: Security
Phase 2: Architecture
Phase 3: Framework (PARALLEL)
Phase 4-7: [Similar breakdown]
| Week | Available Hours | Allocated Hours | Buffer | Utilization |
|---|---|---|---|---|
| 1-2 | 160 | 120 | 40 | 75% |
| 3-4 | 160 | 140 | 20 | 88% |
| ... | ... | ... | ... | ... |
Total Project:
| ID | Risk | Probability | Impact | Severity | Mitigation | Owner |
|---|---|---|---|---|---|---|
| R01 | Dependency conflicts unresolvable | Medium | High | HIGH | Upfront analysis, alternatives ready | [Name] |
| R02 | Timeline overrun >30% | Medium | High | HIGH | Phased approach, weekly reviews | [Coordinator] |
| R03 | Critical bug in production | Low | Critical | HIGH | Comprehensive testing, rollback plan | [Tester] |
| R04 | Team member leaves | Low | Medium | MEDIUM | Knowledge sharing, documentation | [Manager] |
| R05 | Breaking changes missed | Medium | High | HIGH | Thorough analysis, peer review | [Architect] |
For High-Priority Risks:
R01: Dependency Conflicts
R02: Timeline Overrun
R03: Production Bug
Gate 1: Post-Assessment (End of Phase 0)
Gate 2: Post-Security (End of Phase 1)
Gate 3: Post-Architecture (End of Phase 2)
Gate 4: Post-Framework (End of Phase 3)
Gate 5: Post-API Modernization (End of Phase 4)
Gate 6: Post-Performance (End of Phase 5)
Gate 7: Post-Documentation (End of Phase 6)
Gate 8: Final GO/NO-GO (End of Phase 7)
Scenario 1: Critical Dependency Has No Compatible Version
Scenario 2: Test Pass Rate Drops Below 80%
Scenario 3: Performance Regression >20%
Scenario 4: Key Team Member Leaves
# Project Modernization Plan
**Project**: [Name]
**Current Version**: [Version]
**Target Version**: [Version]
**Plan Created**: [Date]
**Plan Owner**: [Name]
**Executive Sponsor**: [Name]
---
## Executive Summary
### Objectives
[Primary and secondary objectives]
### Timeline
- **Start Date**: [Date]
- **End Date**: [Date]
- **Duration**: XX weeks (YY calendar months)
- **Contingency Buffer**: 30% additional time
### Team
- **Team Size**: X developers
- **Key Roles**: [List]
- **External Resources**: [If any]
### Success Criteria
[Top 5 success criteria]
---
## Assessment Summary
[If ASSESSMENT.md exists, summarize key findings]
**Overall Assessment Score**: XX/100
**Recommendation**: [PROCEED/CAUTION/DEFER/DO NOT]
**Key Risks**:
1. [Risk 1]
2. [Risk 2]
**Mitigation Strategies**:
[Summary of how risks will be addressed]
---
## Scope
### In Scope
✅ [Item 1]
✅ [Item 2]
✅ [Item 3]
### Out of Scope
❌ [Item 1]
❌ [Item 2]
### Success Criteria
**Technical**:
- [Criterion 1]
- [Criterion 2]
**Business**:
- [Criterion 1]
- [Criterion 2]
---
## Phase Breakdown
[Include all 7 phases with tasks, durations, teams, deliverables, exit criteria]
### Phase 0: Discovery & Assessment
[Detailed breakdown as created above]
### Phase 1: Security Remediation
[Detailed breakdown]
[... Phases 2-7 ...]
---
## Timeline & Milestones
[Gantt chart and milestone table]
---
## Resource Allocation
[Team assignments and capacity planning]
---
## Risk Management
[Risk register and mitigation strategies]
---
## Quality Gates
[All 8 quality gates with criteria]
---
## Contingency Plans
[What-if scenarios and responses]
---
## Communication Plan
### Status Reporting
- **Daily**: Stand-up (15 min)
- **Weekly**: Status report to stakeholders
- **Bi-weekly**: Executive update
- **Monthly**: Board update (if applicable)
### Escalation Path
1. Team Lead
2. Tech Lead / Coordinator
3. Engineering Manager
4. CTO
5. Executive Sponsor
---
## Appendices
### A. Dependency Migration Matrix
[Detailed dependency upgrade plan]
### B. Breaking Changes Guide
[All breaking changes with remediation]
### C. Test Strategy
[Testing approach for each phase]
### D. Deployment Strategy
[How changes will be deployed]
---
**Plan Version**: 1.0
**Last Updated**: [Date]
**Next Review**: [Every 2 weeks during execution]
User: /modernize-plan
Claude: Checking for ASSESSMENT.md...
✅ Found ASSESSMENT.md (score: 78/100, PROCEED WITH CAUTION)
Using assessment findings:
- Technical Viability: 82/100
- Business Value: 74/100
- Risk Profile: MEDIUM (3 HIGH risks)
- Estimated Effort: 22-28 days
Creating detailed plan...
[Generates comprehensive plan based on assessment]
Phase 0: Discovery (2 days)
- Already have baseline from assessment
- Focus on detailed breaking changes
- Estimated: 2 days vs 1-2 days typical
Phase 1: Security (3-5 days)
- Assessment identified 3 CRITICAL, 12 HIGH CVEs
- [Detailed remediation plan]
[Continues through all phases]
✅ PLAN.md created (47 pages)
Summary:
- Duration: 24 weeks
- Team: 3 developers
- Milestones: 8 quality gates
- Timeline includes 30% contingency buffer
User: /modernize-plan
Claude: No ASSESSMENT.md found.
Running quick assessment first...
[30-minute abbreviated assessment]
Quick Assessment Results:
- Project Size: Medium (~35k LOC)
- Current: .NET 6
- Target: .NET 9
- Rough Estimate: 25-35 days
⚠️ Recommendation: Run full /modernize-assess for better accuracy
Creating plan with conservative estimates...
[Generates plan with wider ranges]
✅ PLAN.md created
Note: This plan has wider time/cost ranges due to limited assessment.
Consider running /modernize-assess for refined planning.
/modernize-assess firstThe plan created by this command is automatically used by /modernize-project:
User: /modernize-project
Claude: Checking for existing plan...
✅ Found PLAN.md
Using existing plan:
- 7 phases defined
- 24 weeks timeline
- 3 developers allocated
- 8 quality gates
Proceeding with execution...
[Follows plan exactly]
Document Owner: Migration Coordinator
Protocol Version: 1.0
Last Updated: 2025-10-25
Required Before: Running /modernize-project
Remember: Plans are worthless, but planning is essential. Create the plan, then adapt as needed. ✅