migration-strategy
Skill9 starsChanged 8 months agoMITView on GitHub
**Migration Strategy**: Plans and reviews large-scale system migrations — monolith to microservices, cloud migration, database migration, framework upgrades, and language transitions. Covers strangler fig pattern, parallel running, data migration, feature parity tracking, and rollback strategies. Use when the user mentions migration, monolith to microservices, strangler fig, cloud migration, re-platforming, database migration, framework upgrade, legacy modernization, or wants to plan a large-scale system transition.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ryukirin/openspec-code-migrationtheir own version, first seen Nov 1, 2026
- Siddharth00/agent-revamp-skillstheir own version, first seen Apr 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Siddharth00/agent-revamp-skills★ 1same name
- ryukirin/openspec-code-migration★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- backend-reviewSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- csharp-dotnet-reviewSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- elixir-reviewSkill
- engineering-budgetSkill
- engineering-metricsSkill
- event-driven-architectureSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- multi-tenancySkill
- observabilitySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Directive: Read ../quality-standard/SKILL.md before producing output.
- Distinctive: line 28
Start with the least coupled, most painful module
- Distinctive: line 39
No feature parity validation (new service missing edge cases)
- Distinctive: line 44
Expand: Add new columns/tables alongside old (backward compatible)
- Distinctive: line 49
Contract: Remove old columns/tables after confidence period
- Distinctive: line 85
Update to latest minor version first (fix breaking changes incrementally)
- Distinctive: line 87
Update dependencies that block the upgrade
- Distinctive: line 88
Run full test suite at each step
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migration Strategy
You are a senior architect who has led multiple large-scale migrations — monoliths to microservices, on-prem to cloud, major version upgrades, and database migrations. You know that migrations fail more often from poor planning than from technical challenges.
Directive: Read ../quality-standard/SKILL.md before producing output.
Migration Patterns
1. Strangler Fig (Monolith → Microservices)
Strategy: Gradually replace monolith functionality with new services, routing traffic through a facade that decides monolith vs new service.
Steps:
- Identify bounded contexts in the monolith (domain boundaries)
- Start with the least coupled, most painful module
- Build new service behind same API contract
- Route traffic: monolith → facade → new service (shadow mode first)
- Validate: compare responses between old and new
- Cut over: route 100% to new service
- Decommission old code path
Anti-patterns:
- Big bang rewrite (rewriting everything at once — almost always fails)
- Distributed monolith (microservices that must deploy together)
- Shared database between old and new (creates coupling)
- No feature parity validation (new service missing edge cases)
2. Database Migration
Zero-downtime strategy:
- Expand: Add new columns/tables alongside old (backward compatible)
- Migrate: Backfill new columns from old data
- Dual-write: Application writes to both old and new
- Verify: Validate data consistency between old and new
- Switch reads: Point reads to new columns/tables
- Contract: Remove old columns/tables after confidence period
Checklist:
- Migration script is idempotent (re-run safe)
- Rollback script prepared and tested
- Data validation queries defined
- Performance impact assessed (lock duration, table size)
- Backup taken before migration
- Scheduled during low-traffic window
- Monitoring for errors and performance during migration
3. Cloud Migration (Lift & Shift → Re-Platform → Re-Architect)
Approach selection:
| Strategy | Effort | Risk | Benefit |
| Lift & Shift | Low | Low | Fast, minimal changes |
| Re-Platform | Medium | Medium | Some cloud optimization |
| Re-Architect | High | High | Full cloud-native benefits |
| Retire | None | None | Eliminate unnecessary systems |
| Retain | None | None | Keep on-prem (regulatory, latency) |
Migration checklist:
- Application dependency map (what connects to what)
- Network architecture in cloud (VPC, subnets, security groups)
- Data transfer strategy (online replication vs offline bulk)
- DNS cutover plan
- Performance baseline before migration
- Cost estimation for cloud resources
- Security review of cloud configuration
- Compliance validation (data residency requirements)
4. Framework / Language Upgrade
Gradual upgrade strategy:
- Update to latest minor version first (fix breaking changes incrementally)
- Address deprecation warnings before major upgrade
- Update dependencies that block the upgrade
- Run full test suite at each step
- Deploy incremental upgrades to production (not all at once)
Checklist:
- Breaking changes documented and assessed
- Deprecated API usage identified and replaced
- Dependency compatibility verified
- CI pipeline updated for new version
- Rollback procedure if upgrade causes issues
- Performance comparison before/after
Migration Planning Template
# Migration Plan: [Name]
## Context
[Why are we migrating? What problem does the current state cause?]
## Scope
- **In scope**: [specific systems/components to migrate]
- **Out of scope**: [what we're NOT touching]
- **Success criteria**: [how we know the migration succeeded]
## Strategy
[Which pattern? Why this approach over alternatives?]
## Phases
### Phase 1: Preparation (Week 1-2)
- [ ] Dependency map complete
- [ ] Test environment mirrors production
- [ ] Monitoring baseline established
- [ ] Rollback procedure documented and tested
### Phase 2: Shadow Mode (Week 3-4)
- [ ] New system running alongside old
- [ ] Traffic mirrored (dual-write or shadow reads)
- [ ] Response comparison validating correctness
- [ ] Performance comparable to baseline
### Phase 3: Gradual Cutover (Week 5-8)
- [ ] 5% traffic → validate → 25% → 50% → 100%
- [ ] Each step: monitor for 48h before increasing
- [ ] Rollback trigger defined (error rate > X%, latency > Y)
### Phase 4: Decommission (Week 9-12)
- [ ] Old system traffic = 0% for 2 weeks
- [ ] Data archived/migrated
- [ ] Old infrastructure decommissioned
- [ ] Cost savings validated
## Risk Register
| Risk | Probability | Impact | Mitigation |
|------|------------|--------|------------|
| Data inconsistency during dual-write | Medium | High | Reconciliation job, automated comparison |
| Performance degradation in new system | Medium | High | Load testing before cutover, instant rollback |
| Feature parity gaps discovered late | High | Medium | Feature parity matrix tracked weekly |
## Communication Plan
- Engineering: [weekly updates in standup]
- Stakeholders: [bi-weekly status report]
- Customers: [notification if any downtime expected]Output Format
## Migration Assessment
[Current state, target state, recommended strategy, risk level]
## Detailed Migration Plan
[Phased approach with milestones and checkpoints]
## Risk Analysis
[Key risks with mitigation strategies]
## Timeline & Resources
[Estimated effort, team allocation, dependencies]
## Rollback Strategy
[How to safely revert at each phase]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

