evolutionary-modular-architecture
Qué hace
Esta skill guía a la IA para diseñar una plataforma que es una sola aplicación con límites internos fuertes. Cubre el diseño de dominios, la protección del código frente a proveedores externos y el manejo de fallos. Es para equipos que construyen un backend nuevo y quieren evitar microservicios prematuros.
Cuándo usarla
- ✓Cuando diseñas una plataforma o un backend nuevo desde cero.
- ✓Cuando necesitas conectarte a un proveedor externo sin atar tu código a él.
- ✓Cuando eliges entre una sola aplicación, un monolito modular y microservicios.
Link de la skill
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/evolutionary-modular-architecture/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Ayúdame a diseñar la arquitectura de nuestra nueva plataforma, manteniéndola como una sola app pero con límites internos limpios.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Establece reglas para dividir el sistema en contextos delimitados, añadir una capa protectora alrededor de los sistemas externos y usar eventos y reintentos que fallen de forma segura.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Recomienda siempre microservicios?
No. Empieza de forma sencilla y añade servicios separados solo cuando el producto y el equipo lo justifican.
¿Cubre las actualizaciones en tiempo real?
Sí. La skill incluye la adición de actualizaciones en tiempo real del servidor al cliente.
¿Sirve para una app sencilla con unos pocos endpoints?
No. Las apps sencillas se resuelven mejor con los valores por defecto del framework.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 7,1 mil
- Posición en el ranking
- #13506
- Licencia
- —
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
component-common-domain-detection
7,1 milAyuda a tu agente a encontrar la lógica de negocio repetida en varias partes de una base de código y a sugerir cómo combinarla.
component-flattening-analysis
7,1 milAyuda a tu agente a encontrar código mal colocado y aplanar las estructuras de carpetas de componentes desordenadas, para que cada pieza esté donde debe.
component-identification-sizing
7,1 milAyuda a tu agente a mapear las partes de una base de código y medir su tamaño, para encontrar qué módulo conviene dividir primero.
coupling-analysis
7,1 milAyuda a tu agente a comprobar cuán estrechamente dependen unas partes de una base de código de otras, y qué conexiones conviene aflojar primero.
Skills parecidas
api-connector-builder
280 milHace que tu agente cree nuevas conexiones de API siguiendo el patrón existente. Úsalo para añadir una integración más sin inventar otra forma de hacer las cosas.
api-design
280 milAyuda a tu agente a diseñar APIs REST según las buenas prácticas. Es útil para definir cómo se comunican las APIs, cómo se muestran los errores y cómo organizar los datos.
backend-patterns
280 milAyuda a tu agente con patrones de arquitectura del lado del servidor y optimización de bases de datos. Es útil para crear o revisar código que se ejecuta en el servidor.