Back to skills
SKILL.md
Legacy Migration
ASecurity``` Before: After: ┌─────────────┐ ┌─────────────┐ │ PHP │ │ New TS │ │ Monolith │ │ Service │ └─────────────┘ └─────────────┘ ↑ ↑ │ ┌─────────────┐ │ ├────►│ Facade │◄─────┤ │ │ (Gateway) │ │ │ └─────────────┘ │ │ ↑ │ │ │ │ └────────────┴────────────┘ ```
- 21 stars
- 0 votes
- 1 copy
- 6 views
- Added September 7, 2026
Works with
Security analysis
100/100npx -y skills add modbender/skill-library-mcp --skill legacy-migration --agent claude-codeAre you the author of Legacy Migration?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/modbender-legacy-migration)# 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
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.