legacy-modernizer
하는 일
업무를 방해하지 않으면서 오래된 소프트웨어를 현대화하도록 AI 에이전트를 안내합니다. 레거시 코드베이스를 업그레이드하거나, 모놀리스를 나누거나, 프레임워크를 단계적으로 바꿔야 하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓큰 오래된 시스템을 더 작은 서비스로 나눠야 할 때.
- ✓위험한 전면 재작성 없이 프레임워크나 언어를 업그레이드하고 싶을 때.
- ✓오래된 코드베이스의 기술 부채가 팀의 속도를 늦출 때.
스킬 링크
https://github.com/Jeffallan/claude-skills/blob/main/skills/legacy-modernizer/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 오래된 PHP 모놀리스를 다운타임 없이 한 조각씩 새 서비스로 옮기는 계획을 세워 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 시스템과 의존성을 파악한 뒤, 현재 동작을 보호하기 위해 특성화 테스트를 작성합니다. 그다음 기능 플래그와 함께 스트랭글러 피그 패턴을 사용해 트래픽을 단계적으로 옮깁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Legacy Modernizer
Core Workflow
Assess system — Analyze codebase, dependencies, risks, and business constraints. Produce a dependency map and risk register before proceeding.
- Validation checkpoint: Confirm all external integrations and data contracts are documented before moving to step 2.
Plan migration — Design an incremental roadmap with explicit rollback strategies per phase. Reference
references/system-assessment.mdfor code analysis templates.- Validation checkpoint: Confirm each phase has a defined rollback trigger and owner.
Build safety net — Create characterization tests and monitoring before touching production code. Target 80%+ coverage of existing behavior.
- Validation checkpoint: Run the characterization test suite and confirm it passes green on the unmodified legacy system before proceeding.
Migrate incrementally — Apply strangler fig pattern with feature flags. Route traffic via a facade; shift load gradually.
- Validation checkpoint: Verify error rates and latency metrics remain within baseline thresholds after each traffic increment (e.g., 5% → 25% → 50% → 100%).
Validate & iterate — Run full test suite, review monitoring dashboards, and confirm business behavior is preserved before retiring legacy code.
- Validation checkpoint: New code must be proven stable at 100% traffic for at least one release cycle before legacy path is removed.
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Strangler Fig | references/strangler-fig-pattern.md |
Incremental replacement, facade layer, routing |
| Refactoring | references/refactoring-patterns.md |
Extract service, branch by abstraction, adapters |
| Migration | references/migration-strategies.md |
Database, UI, API, framework migrations |
| Testing | references/legacy-testing.md |
Characterization tests, golden master, approval |
| Assessment | references/system-assessment.md |
Code analysis, dependency mapping, risk evaluation |
Code Examples
Strangler Fig Facade (Python)
# facade.py — routes requests to legacy or new service based on a feature flag
import os
from legacy_service import LegacyOrderService
from new_service import NewOrderService
class OrderServiceFacade:
def __init__(self):
self._legacy = LegacyOrderService()
self._new = NewOrderService()
def get_order(self, order_id: str):
if os.getenv("USE_NEW_ORDER_SERVICE", "false").lower() == "true":
return self._new.fetch(order_id)
return self._legacy.get(order_id)
Feature Flag Wrapper
# feature_flags.py — thin wrapper around an environment or config-based flag store
import os
def flag_enabled(flag_name: str, default: bool = False) -> bool:
"""Check whether a migration feature flag is active."""
return os.getenv(flag_name, str(default)).lower() == "true"
# Usage
if flag_enabled("USE_NEW_PAYMENT_GATEWAY"):
result = new_gateway.charge(order)
else:
result = legacy_gateway.charge(order)
Characterization Test Template (pytest)
# test_characterization_orders.py
# Captures existing legacy behavior as a golden-master safety net.
import pytest
from legacy_service import LegacyOrderService
service = LegacyOrderService()
@pytest.mark.parametrize("order_id,expected_status", [
("ORD-001", "SHIPPED"),
("ORD-002", "PENDING"),
("ORD-003", "CANCELLED"),
])
def test_order_status_golden_master(order_id, expected_status):
"""Fail loudly if legacy behavior changes unexpectedly."""
result = service.get(order_id)
assert result["status"] == expected_status, (
f"Characterization broken for {order_id}: "
f"expected {expected_status}, got {result['status']}"
)
Constraints
MUST DO
- Maintain zero production disruption during all migrations
- Create comprehensive test coverage before refactoring (target 80%+)
- Use feature flags for all incremental rollouts
- Implement monitoring and rollback procedures
- Document all migration decisions and rationale
- Preserve existing business logic and behavior
- Communicate progress and risks transparently
MUST NOT DO
- Big bang rewrites or replacements
- Skip testing legacy behavior before changes
- Deploy without rollback capability
- Break existing integrations or APIs
- Ignore technical debt in new code
- Rush migrations without prope
자주 묻는 질문
스트랭글러 피그 패턴이 무엇인가요?
새 코드가 오래된 시스템의 작업을 한 조각씩 점차 넘겨받는 방법입니다.
업무는 어떻게 안전하게 유지하나요?
현재 동작에 대한 테스트를 먼저 작성하고, 오류율을 지켜보며 트래픽을 작은 단계로 옮깁니다.
롤백 계획도 있나요?
네. 각 마이그레이션 단계마다 정해진 롤백 기준과 담당자가 있습니다.
상세 정보
작성자의 원본 설명
Designs incremental migration strategies, identifies service boundaries, produces dependency maps and migration roadmaps, and generates API facade designs for aging codebases. Use when modernizing legacy systems, implementing strangler fig pattern or branch by abstraction, decomposing monoliths, upgrading frameworks or languages, or reducing technical debt without disrupting business operations.
repo: Jeffallan/claude-skills
인기도
- GitHub 스타
- 12k
- 순위
- #11435
- 라이선스
- MIT
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
angular-architect
12k에이전트가 독립형 컴포넌트, 지연 로딩 라우팅, NgRx 상태 관리, RxJS 패턴, 성능 최적화를 갖춘 Angular 17 이상 앱을 만들도록 돕습니다.
api-designer
12k에이전트가 REST 또는 GraphQL API를 설계하고 OpenAPI 3.1 명세를 작성하도록 돕습니다. 리소스, 페이지네이션, 오류 형식, 버전 관리 규칙을 포함합니다.
architecture-designer
12k에이전트가 시스템 아키텍처를 설계하고, 패턴과 기술을 비교하며, 각 선택의 이유를 설명하는 ADR을 작성하도록 돕습니다.
atlassian-mcp
12kMCP를 통해 Jira 이슈와 Confluence 페이지를 검색하고 수정하도록 에이전트를 돕습니다. JQL과 CQL 검색, 스프린트, 문서 동기화를 포함합니다.