본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)7.1k · #13506

evolutionary-modular-architecture

하는 일

이 스킬은 AI가 강한 내부 경계를 가진 하나의 애플리케이션으로서 플랫폼을 설계하도록 안내합니다. 도메인 설계, 외부 벤더로부터 코드 보호, 실패 처리를 다룹니다. 마이크로서비스를 너무 일찍 도입하지 않으려는 새 백엔드 팀을 위한 것입니다.

사용하는 경우

  • ✓새 플랫폼이나 백엔드를 처음부터 설계할 때.
  • ✓외부 벤더에 연결하면서 내 코드가 그 벤더에 묶이지 않게 하고 싶을 때.
  • ✓단일 애플리케이션, 모듈형 모놀리스, 마이크로서비스 중에서 고를 때.

스킬 링크

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/evolutionary-modular-architecture/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/evolutionary-modular-architecture/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“새 플랫폼의 아키텍처를 설계하는 것을 도와주세요. 하나의 앱으로 유지하되 내부 경계는 깔끔하게 나눠 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 시스템을 바운디드 컨텍스트로 나누고, 외부 시스템 주변에 보호 계층을 추가하며, 안전하게 실패하는 이벤트와 재시도를 쓰는 규칙을 정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Evolutionary Modular Architecture

Design and build platforms as an evolutionary modular monolith: strong logical boundaries from day one (DDD bounded contexts, flat-by-aggregate modules, an Anti-Corruption Layer around every external system, event-driven communication, resilience by default) while keeping physical boundaries (separate deploys, separate databases) as a later, optional step. Start simple, evolve granularity only when the product and the team justify it — never reverse-engineer microservices from hype.

When to use this skill

  • Designing a new platform, backend, or service from scratch.
  • Defining bounded contexts and a context map for a domain.
  • Deciding how to organize a module's folders and files.
  • Choosing between monolith, modular monolith, and microservices.
  • Integrating with (or decoupling from) an external vendor: ERP, ticketing, storage, payment, AI, identity, durable-workflow engine.
  • Making external/inter-module calls resilient.
  • Adding real-time server-to-client updates.
  • Picking a modern (2026) full-stack TypeScript stack.

When NOT to use it

  • Simple CRUD with a handful of endpoints — framework defaults are enough.
  • Deep, NestJS-specific implementation detail — prefer nestjs-modular-monolith.
  • Reviewing or refactoring a single domain model for anemia — prefer tactical-ddd.

The one rule that governs everything

Separate the logical boundary (always strong) from the physical boundary (evolutionary). Modules, contracts, state ownership, and the Anti-Corruption Layer are non-negotiable from day one. Whether a module is its own deploy or its own database is an operational decision made later — never a structural prerequisite. This is what lets the system start as one deploy and grow without a rewrite.

A useful mental image: the house has well-divided rooms (modules). Inside each room things sit out in the open, grouped by what they are for (flat-by-aggregate) — not buried in nested drawers (technical-layer folders). The floor plan (boundaries) is what matters most.


Core model (load the matching reference when you go deep)

Topic What it covers Reference
Principles 10 modular (P1–P10) + 9 structural (P11–P19) + conflict hierarchy references/principles.md
DDD Strategic (subdomains, context map, integration patterns) + tactical (rich aggregates, intensity by subdomain) references/ddd.md
Module internals Flat-by-aggregate, suffixes, depth, flat vs subdomain test, scaffolding references/flat-by-aggregate.md
Communication Ports & Adapters / ACL, events + transactional outbox, SSE real-time references/acl-and-communication.md
Resilience Backoff + full jitter, circuit breaker, retry budget, idempotency, bulkhead, timeouts references/resilience.md
Stack 2026 Frontend, backend, data, observability, durable workflow, decisions references/stack-2026.md
Architecture doc Building the elegant, self-contained HTML architecture document with SVG diagrams references/architecture-doc.md + assets/architecture-template.html
Validation Deterministic checks for structure and module boundaries scripts/validate-structure.mjs, scripts/validate-boundaries.mjs

Do not load all references at once. Read a reference only when the current phase needs it (the workflow below states when).


Workflow

Use this whether you are designing a new system or reviewing an existing one. Move through phases in order; each has an exit criterion. State assumptions explicitly; if the domain is unclear, ask before guessing.

Phase 0 — Frame the scope

Confirm: is this a new platform, a new module in an existing one, or a review? Confirm the runtime/stack constraints (default target is the 2026 TypeScript stack — see references/stack-2026.md). Default to one deploy (modular monolith) unless a hard constraint says otherwise.

Exit: scope and constraints written down.

Phase 1 — Domain discovery (DDD strategic)

Read references/ddd.md. Identify subdomains from the business language, classify each as Core, Supporting, or Generic, and find the ubiquitous language of each. Do not group by technical layer. If multiple bounded-context interpretations exist, present them — do not pick silently.

Exit: a list of candidate bounded contexts, each classified, with one-line responsibility and key aggregates.

Phase 2 — Boundaries & context map

Dr

자주 묻는 질문

항상 마이크로서비스를 권하나요?

아니요. 단순하게 시작하고, 제품과 팀이 정당화할 때만 별도 서비스를 추가합니다.

실시간 업데이트도 다루나요?

네. 서버에서 클라이언트로 실시간 업데이트를 추가하는 것도 포함합니다.

엔드포인트가 몇 개뿐인 단순한 앱에도 쓰나요?

아니요. 단순한 앱에는 프레임워크 기본 설정이 더 잘 맞습니다.

상세 정보

작성자의 원본 설명

Guides design and implementation of evolutionary modular-monolith platforms with DDD (strategic + tactical), flat-by-aggregate organization, an Anti-Corruption Layer for vendor independence, a transactional outbox for events, smart resilience (backoff with jitter, circuit breakers, idempotency), and a polished architecture HTML document with elegant SVG diagrams. Use when designing a platform or backend, defining bounded contexts, organizing modules and folders, choosing monolith vs microservices, decoupling from an external service (ERP, storage, AI), making calls resilient, adding real-time

repo: tech-leads-club/agent-skills

인기도

GitHub 스타
7.1k
순위
#13506
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬