adapt-architecture
정보
이 스킬은 모놀리스에서 마이크로서비스로의 전환과 같은 점진적이고 안전한 아키텍처 변환을 실행하기 위한 구조화된 방법론을 제공합니다. 스트랭글러 피그(Strangler Fig) 마이그레이션과 크리살리스(Chrysalis) 단계와 같은 패턴을 사용하여 병렬 운영, 점진적 전환, 롤백 설계를 가능하게 합니다. 시스템이 통제된 진화를 준비하고 있으며, 의존 시스템에 최소한의 중단만을 요구하는 경우에 사용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/adapt-architectureClaude 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.
- Sequence of intermediate forms:
- Current → Intermediate 1 → ... → Target
- Each intermediate operationally viable
- No intermediate harder to maintain
- Seams:
- Where cut current to insert new?
- Natural: interfaces, module bounds, data partitions
- Artificial: anti-corruption layers
- 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)
- 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.
- Anti-corruption layer:
- Thin translation old ↔ new
- Routes reqs → correct system per migration state
- Translates data formats
- "Cocoon" protects transform
- Parallel run infra:
- Both systems deployable simultaneously
- Feature flags → traffic routing
- Comparison validates equivalence
- Rollback checkpoints:
- Each intermediate → rollback possible
- Rollback faster than forward step
- Data migration reversible (or dual-write during transition)
- 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.
- Order components:
- Start least-coupled, lowest-risk → build confidence
- Progress → more critical
- Most coupled/critical last
- 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
- 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.
- Chrysalis reality:
- Partly old + partly new during migration
- Hybrid more complex than pure state
- Complexity peaks at midpoint
- Discipline:
- No new features during chrysalis
- Freeze non-essential deploys
- Increased monitoring + on-call
- Daily check-ins
- Mid-chrysalis assessment:
- Halfway → target still right?
- Market/reqs/team change?
- Continue, pause, redirect?
- 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.
- Final cutover:
- Migrate last components
- Full valid. against complete new system
- Perf test under prod load
- Remove scaffold:
- Decommission anti-corruption layer
- Remove migration feature flags
- Clean up parallel infra
- Archive (don't delete) old code
- Post-metamorphosis stabilization:
- Run new form 2-4 weeks w/ enhanced monitoring
- Address real-world issues
- Update docs → new architecture
- 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 assessmentdissolve-form— rigid systems → create seamsrepair-damage— recovery when transform damagesshift-camouflage— surface adapt may sufficecoordinate-swarm— swarm sequencing across distributedscale-colony— growth pressure triggers architectural adaptimplement-gitops-workflow— GitOps deploy infra for cutoverreview-software-architecture— evaluate target architecture
GitHub 저장소
연관 스킬
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 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
