Skip to content
Back to skills

Legacy Migration

ASecurity

``` Before: After: ┌─────────────┐ ┌─────────────┐ │ PHP │ │ New TS │ │ Monolith │ │ Service │ └─────────────┘ └─────────────┘ ↑ ↑ │ ┌─────────────┐ │ ├────►│ Facade │◄─────┤ │ │ (Gateway) │ │ │ └─────────────┘ │ │ ↑ │ │ │ │ └────────────┴────────────┘ ```

  • 21 stars
  • 0 votes
  • 1 copy
  • 6 views
  • Added September 7, 2026
developmenttypescriptphpapi

Works with

  • api

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill legacy-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Legacy Migration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Legacy Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-legacy-migration/badge)](https://www.skillsdirectory.com/skills/modbender-legacy-migration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# 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

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.