MCP HubMCP Hub
스킬 목록으로 돌아가기

adapt-architecture

pjt222
업데이트됨 2 days ago
4 조회
17
2
17
GitHub에서 보기
디자인design

정보

이 스킬은 모놀리스에서 마이크로서비스로의 전환과 같은 점진적이고 안전한 아키텍처 변환을 실행하기 위한 구조화된 방법론을 제공합니다. 스트랭글러 피그(Strangler Fig) 마이그레이션과 크리살리스(Chrysalis) 단계와 같은 패턴을 사용하여 병렬 운영, 점진적 전환, 롤백 설계를 가능하게 합니다. 시스템이 통제된 진화를 준비하고 있으며, 의존 시스템에 최소한의 중단만을 요구하는 경우에 사용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add pjt222/agent-almanac -a claude-code
플러그인 명령대체
/plugin add https://github.com/pjt222/agent-almanac
Git 클론대체
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/adapt-architecture

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Adapt Architecture

Structural metamorphosis → system transform current → target form. Strangler fig, chrysalis, interface preserve → never stops.

Use When

  • assess-form → READY
  • Evolve architecture, no downtime
  • Monolith ↔ microservices
  • Replace core subsystem, dependents keep running
  • Data model evolve w/ backward compat
  • Gradual, not big-bang

In

  • Required: Current form assessment (assess-form)
  • Required: Target architecture
  • Required: Operational continuity reqs
  • Optional: Transform budget (time, people, compute)
  • Optional: Rollback reqs
  • Optional: Parallel run duration

Do

Step 1: Blueprint

Plan path current → target.

  1. Sequence of intermediate forms:
    • Current → Intermediate 1 → ... → Target
    • Each intermediate operationally viable
    • No intermediate harder to maintain
  2. Seams:
    • Where cut current to insert new?
    • Natural: interfaces, module bounds, data partitions
    • Artificial: anti-corruption layers
  3. Pattern:
    • Strangler fig: new grows around old, replaces gradually
    • Chrysalis: wrap old, replace internals, shell preserves external interface
    • Budding: parallel, traffic shifts (see scale-colony)
    • Metamorphic migration: phased in dep order (leaves→roots)
  4. Interface preservation layer:
    • External consumers no disrupt
    • API versioning, backward-compat, adapters
    • Temp scaffold → plan removal
Metamorphosis Patterns:
┌───────────────┬───────────────────────────────────────────────────┐
│ Strangler Fig │ New code intercepts routes one by one;            │
│               │ old code handles everything else until replaced   │
│               │ ┌──────────┐                                     │
│               │ │ Old ████ │ → │ Old ██ New ██ │ → │ New ████ │  │
│               │ └──────────┘                                     │
├───────────────┼───────────────────────────────────────────────────┤
│ Chrysalis     │ Wrap old system in new interface; replace         │
│               │ internals while external shell stays stable       │
│               │ ┌──────────┐     ┌──[new]───┐     ┌──[new]───┐  │
│               │ │ old core │ → │ old core │ → │ new core │  │
│               │ └──────────┘     └──────────┘     └──────────┘  │
├───────────────┼───────────────────────────────────────────────────┤
│ Budding       │ New system runs in parallel; traffic shifts       │
│               │ ┌──────┐ ┌──────┐     ┌──────┐ ┌──────┐         │
│               │ │ Old  │ │ New  │  →  │ Old  │ │ New  │         │
│               │ │ 100% │ │  0%  │     │  0%  │ │ 100% │         │
│               │ └──────┘ └──────┘     └──────┘ └──────┘         │
└───────────────┴───────────────────────────────────────────────────┘

Blueprint: intermediate forms, seams, pattern, preservation strategy. Concrete + testable.

If err: No clean seam → preliminary dissolution (dissolve-form) first. Intermediates not viable → steps too large → decompose.

Step 2: Scaffold

Temp infra → supports metamorphosis.

  1. Anti-corruption layer:
    • Thin translation old ↔ new
    • Routes reqs → correct system per migration state
    • Translates data formats
    • "Cocoon" protects transform
  2. Parallel run infra:
    • Both systems deployable simultaneously
    • Feature flags → traffic routing
    • Comparison validates equivalence
  3. Rollback checkpoints:
    • Each intermediate → rollback possible
    • Rollback faster than forward step
    • Data migration reversible (or dual-write during transition)
  4. Valid. harness:
    • Auto tests → operational continuity
    • Perf benchmarks → regression detection
    • Data integrity checks

Scaffold (anti-corruption, parallel, rollback, valid.) in place pre-transform. Scaffold itself tested.

If err: Too expensive → simplify. Minimum: feature flag + rollback proc. Anti-corruption + parallel optional for small transforms.

Step 3: Progressive Cutover

Migrate incrementally.

  1. Order components:
    • Start least-coupled, lowest-risk → build confidence
    • Progress → more critical
    • Most coupled/critical last
  2. Per component: a. Impl new ver behind anti-corruption layer b. Parallel: both process same in c. Compare out → equivalent (or differences documented) d. Confident → flip feature flag → switch traffic e. Monitor anomalies (increased sensitivity) f. Stable → decommission old ver
  3. Continuous delivery:
    • Each cutover = normal deploy, not event
    • System always known, tested, operational
    • Issue → rollback → prev state operational

Functionality migrates component-by-component w/ valid. at each step. System always operational.

If err: Parallel reveals discrepancies → new impl bug → fix before cutover. Perf degrade → optimize new or anti-corruption layer too heavy. Team loses confidence → pause + stabilize. Half-migrated known > rushed full.

Step 4: Chrysalis Phase

Manage most vulnerable period — system between forms.

  1. Chrysalis reality:
    • Partly old + partly new during migration
    • Hybrid more complex than pure state
    • Complexity peaks at midpoint
  2. Discipline:
    • No new features during chrysalis
    • Freeze non-essential deploys
    • Increased monitoring + on-call
    • Daily check-ins
  3. Mid-chrysalis assessment:
    • Halfway → target still right?
    • Market/reqs/team change?
    • Continue, pause, redirect?
  4. Protect:
    • Rollback path clear always
    • Doc hybrid state → future debuggers need
    • Resist "clean up" scaffold pre-complete

Chrysalis = deliberate, time-bounded, increased discipline + monitoring. Temp complexity = cost of safe transform.

If err: Drags too long → hybrid = new normal = worse than either. Set time limit. Limit hit → accelerate or accept hybrid as "new form".

Step 5: Complete + Stabilize

Finish + remove scaffold.

  1. Final cutover:
    • Migrate last components
    • Full valid. against complete new system
    • Perf test under prod load
  2. Remove scaffold:
    • Decommission anti-corruption layer
    • Remove migration feature flags
    • Clean up parallel infra
    • Archive (don't delete) old code
  3. Post-metamorphosis stabilization:
    • Run new form 2-4 weeks w/ enhanced monitoring
    • Address real-world issues
    • Update docs → new architecture
  4. Retrospective:
    • What went well?
    • Harder than expected?
    • Do differently next?
    • Update playbook

Transform complete. System new form. Scaffold removed. Docs updated. Team captured learnings.

If err: New form unstable post-cutover → maintain rollback, continue stabilize. Stabilize > planned period → design issue → targeted fixes or partial rollback worst component.

Check

  • Blueprint shows viable intermediates
  • Scaffold in place pre-migration
  • Components migrate low→high risk
  • Parallel validates equivalence each step
  • Chrysalis time-bounded + feature freeze
  • All scaffold removed post-transform
  • Post-metamorphosis stabilization passes
  • Retro captures learnings

Traps

  • Big-bang: Transform all at once → abandons incremental safety → max blast radius. Always incremental.
  • Permanent scaffold: Never removed → tech debt. Plan removal part of transform.
  • Chrysalis denial: Pretending hybrid normal → features on unstable foundation. Enforce discipline.
  • Target fixation: Better alternative signs ignored. Mid-chrysalis assessment exists for this.
  • Transform fatigue: Long migrations exhaust teams. Days, not weeks per step. Celebrate milestones.

  • assess-form — prereq assessment
  • dissolve-form — rigid systems → create seams
  • repair-damage — recovery when transform damages
  • shift-camouflage — surface adapt may suffice
  • coordinate-swarm — swarm sequencing across distributed
  • scale-colony — growth pressure triggers architectural adapt
  • implement-gitops-workflow — GitOps deploy infra for cutover
  • review-software-architecture — evaluate target architecture

GitHub 저장소

pjt222/agent-almanac
경로: i18n/caveman-ultra/skills/adapt-architecture
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

연관 스킬

executing-plans

디자인

executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.

스킬 보기

requesting-code-review

디자인

이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.

스킬 보기

connect-mcp-server

디자인

이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.

스킬 보기

web-cli-teleport

디자인

이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.

스킬 보기