``` Before: After: ┌─────────────┐ ┌─────────────┐ │ PHP │ │ New TS │ │ Monolith │ │ Service │ └─────────────┘ └─────────────┘ ↑ ↑ │ ┌─────────────┐ │ ├────►│ Facade │◄─────┤ │ │ (Gateway) │ │ │ └─────────────┘ │ │ ↑ │ │ │ │ └────────────┴────────────┘ ```
Scanned 9/7/2026
Install to Claude Code
npx -y skills add modbender/skill-library-mcp --skill legacy-migration --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Legacy Migration?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-legacy-migration)More formats (shields.io, HTML) on the badges page.
# Legacy Code Migration
## Strangler Pattern
```
Before: After:
┌─────────────┐ ┌─────────────┐
│ PHP │ │ New TS │
│ Monolith │ │ Service │
└─────────────┘ └─────────────┘
↑ ↑
│ ┌─────────────┐ │
├────►│ Facade │◄─────┤
│ │ (Gateway) │ │
│ └─────────────┘ │
│ ↑ │
│ │ │
└────────────┴────────────┘
```
## Incremental Extraction
```typescript
// New service imports from legacy via API
// Once feature is migrated, point to new service
// Phase 1: API Gateway routes to PHP
router.get('/users', proxyToLegacy)
// Phase 2: Extract to new service
router.get('/users', userController.findAll)
// Phase 3: Remove legacy dependency
// DELETE /users from PHP
```
## Risk Mapping
| Feature | Complexity | Risk | Migration Order |
|---------|------------|------|-----------------|
| Auth | High | Critical | 1st |
| User Profile | Medium | Medium | 2nd |
| Dashboard | Low | Low | 3rd |
| Legacy Reports | High | Low | Last |
## Checklist
- [ ] Audit legacy codebase
- [ ] Map dependencies
- [ ] Identify bounded contexts
- [ ] Implement strangler facade
- [ ] Extract one feature at a time
- [ ] Run both systems in parallel
- [ ] Cut over gradually
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!