evolutionary-modular-architecture
यह क्या करती है
यह स्किल AI को ऐसा प्लेटफ़ॉर्म डिज़ाइन करने में ले जाती है जो एक ही एप्लिकेशन हो पर भीतर मज़बूत सीमाएँ हों। इसमें डोमेन डिज़ाइन, बाहरी वेंडरों से कोड की सुरक्षा और विफलताओं का प्रबंधन शामिल है। यह नया बैकएंड बनाने वाली टीमों के लिए है जो समय से पहले माइक्रोसर्विसेज़ से बचना चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप शून्य से नया प्लेटफ़ॉर्म या बैकएंड डिज़ाइन कर रहे हैं।
- ✓जब आपको बाहरी वेंडर से जुड़ना है, बिना अपने कोड को उससे बाँधे।
- ✓जब आप एक एप्लिकेशन, मॉड्यूलर मोनोलिथ और माइक्रोसर्विसेज़ के बीच चुन रहे हैं।
Skill का लिंक
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 में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे नए प्लेटफ़ॉर्म का आर्किटेक्चर डिज़ाइन करने में मदद कीजिए, उसे एक ही ऐप रखते हुए, पर साफ़ भीतरी सीमाओं के साथ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह सिस्टम को bounded contexts में बाँटने, बाहरी सिस्टम के चारों ओर सुरक्षात्मक परत जोड़ने, और सुरक्षित रूप से विफल होने वाले events और retries इस्तेमाल करने के नियम तय करती है।
तकनीकी सामग्री (मूल 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
लोकप्रियता
- GitHub स्टार
- 7.1k
- रैंकिंग में स्थान
- #13506
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
component-common-domain-detection
7.1kयह आपके एजेंट को कोडबेस के कई हिस्सों में दोहराए गए बिज़नेस लॉजिक को ढूँढने और उन्हें मिलाने का तरीका सुझाने में मदद करती है।
component-flattening-analysis
7.1kयह आपके एजेंट को गलत जगह रखा गया कोड ढूँढने और उलझे हुए कंपोनेंट फ़ोल्डर ढाँचे को सीधा करने में मदद करती है, ताकि हर चीज़ अपनी सही जगह रहे।
component-identification-sizing
7.1kयह आपके एजेंट को कोडबेस के हिस्सों का नक्शा बनाने और उनका आकार मापने में मदद करती है, ताकि पता चले कि पहले किस मॉड्यूल को तोड़ना है।
coupling-analysis
7.1kयह आपके एजेंट को जाँचने में मदद करती है कि कोडबेस के हिस्से एक-दूसरे पर कितनी कसकर निर्भर हैं, और पहले कौन से जोड़ ढीले करने चाहिए।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।