[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AMQE1RDS4KXB53FA5HR10K":3,"skill-same:01M7AMQE1RDS4KXB53FA5HR10K":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7AMQE1RDS4KXB53FA5HR10K","patterns-architectural",null,"Use when choosing or evaluating an application architecture: layered architecture, hexagonal \u002F ports and adapters (and Clean and Onion), Domain-Driven Design and its tactical and strategic halves, and the monolith versus modular monolith versus microservices decision — including when a distributed architecture is the wrong answer and what it costs you.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesign-patterns\u002Fskills\u002Fpatterns-architectural\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: patterns-architectural\ndescription: \"Use when choosing or evaluating an application architecture: layered architecture, hexagonal \u002F ports and adapters (and Clean and Onion), Domain-Driven Design and its tactical and strategic halves, and the monolith versus modular monolith versus microservices decision — including when a distributed architecture is the wrong answer and what it costs you.\"\n---\n\n# Design Patterns: Architectural Patterns, Monoliths, Modules, and Microservices\n\n> **Part 2 of 5** of the *Design Patterns* reference (plugin `design-patterns`), covering §6–§7. Sibling skills: `patterns-foundations-gof-and-alternatives` (§0–§5), `patterns-distributed-concurrency-and-messaging` (§8–§11), `patterns-llm-agentic-and-legacy-migration` (§12–§13), `patterns-reference` (§14–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `patterns-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not a catalogue. **The 23 GoF patterns are freely\n> available with diagrams and code samples everywhere** — this document does not reproduce\n> them. It addresses the harder questions: which ones still earn their keep, which ones\n> are artifacts of 1994's languages, what replaced them, where the genuinely useful\n> modern patterns live, and **when not to use any of them.**\n>\n> Three markers:\n> - **[DURABLE]** — design forces that recur regardless of language or era.\n> - **[VERSIONED]** — language features, framework practice, emerging pattern languages.\n> - **[CONTESTED]** — genuine disagreement, and **this domain has more of it than most.**\n>\n> **⚠️ GOTCHA** boxes mark where applying a pattern makes things worse.\n>\n> **The three framings that organize everything below:**\n> 1. **Patterns are a vocabulary, not a construction kit.** Their durable value is that\n>    \"this is a circuit breaker\" communicates a design in four words. **Their value was\n>    never that you should go looking for places to install them** — and treating the\n>    catalogue as a checklist is the single most damaging misreading of the entire\n>    literature (§14 → `patterns-reference`).\n> 2. **A pattern is a solution to a *force*, and the force is what's durable — not the\n>    implementation.** Many GoF implementations were workarounds for what C++ and Java\n>    couldn't express in 1994. **The forces persisted; the workarounds became language\n>    features** (§3 → `patterns-foundations-gof-and-alternatives`). Learn to see the force.\n> 3. **Over-application is the dominant failure mode, by a wide margin.** The cost of a\n>    missing pattern is some duplication you can refactor later. **The cost of an unneeded\n>    pattern is permanent indirection that every future reader must decode.** As one\n>    2026 practitioner framing puts it: add a pattern only when it removes duplication,\n>    isolates change, or clarifies intent — **and if introducing it makes the code harder\n>    to explain, it's the wrong moment for it.**\n\n---\n\n## §6. Architectural Patterns\n\n### 6.1 Layered\n\nPresentation → Application → Domain → Infrastructure. **Familiar, easy to explain, and\nadequate for a great deal of software.** ⚠️ Its failure modes: **anemic domain models**\n(logic drains into the service layer, leaving data-bags — see §14 → `patterns-reference`), layer-skipping that\nnobody notices, and **dependency flowing the wrong way toward infrastructure.**\n\n### 6.2 Hexagonal \u002F Ports and Adapters (and Clean, and Onion)\n\n**[DURABLE] The single most valuable architectural idea for most business applications,\nand the family is largely one idea under three names.**\n\n**Domain logic in the centre, knowing nothing about the outside world. Ports are\ninterfaces the domain defines. Adapters implement them for a database, an HTTP API, a\nqueue, a third-party service.** ⚠️ **The dependency rule is the whole point: dependencies\npoint inward, always.** Infrastructure depends on the domain; the domain depends on\nnothing.\n\n**What you actually get**: the domain is testable without a database or a network; you can\nreplace infrastructure without touching business rules; and **the business logic is\nfindable**, which matters more than it sounds.\n\n**⚠️ What it costs**: more indirection, more files, and **it's genuinely overkill for a\nCRUD app.** The honest heuristic: **if your domain logic is thin, you don't need this** —\nand much software has thin domain logic.\n\n### 6.3 Domain-Driven Design\n\n**Strategic DDD is the more valuable half and the more neglected one**: **bounded\ncontexts** (⚠️ **the single most useful concept here** — the same word means different\nthings in different parts of the business, and pretending otherwise produces the\nuniversal-model disaster), **ubiquitous language**, and **context mapping**.\n\n**Tactical DDD**: entities, value objects (**⚠️ underused — most \"primitives\" in a domain\nare value objects with invariants**), aggregates (**consistency boundaries — and the \"one\naggregate per transaction\" rule is what makes them useful**), repositories, domain events,\ndomain services.\n\n**⚠️ The characteristic DDD failure is adopting the tactical patterns without the strategic\nwork** — you get repositories and value objects laid over a model nobody talked to the\nbusiness about, which is the ceremony without the benefit.\n\n---\n\n## §7. Monoliths, Modules, and Microservices\n\n**[CONTESTED, though the pendulum has swung noticeably.]**\n\n**[DURABLE] The modular monolith is the correct default for most teams**: one deployable,\nstrong internal module boundaries, no network between your own components. You get\nenforced boundaries without distributed-systems tax.\n\n**⚠️ Microservices buy independent deployment and scaling, and they cost you: distributed\ntransactions (§8 → `patterns-distributed-concurrency-and-messaging`), network failure as a permanent condition, debugging across process\nboundaries, eventual consistency everywhere, and operational overhead per service.**\nThe honest framing: **microservices are an organizational solution to a team-coordination\nproblem, adopted for a technical-sounding reason.** If your teams aren't blocked on each\nother's deploys, you're paying the cost without collecting the benefit.\n\n**Related patterns**: **Strangler Fig** (§13 → `patterns-llm-agentic-and-legacy-migration`), **API Gateway**, **Backend for Frontend\n(BFF)**, **Sidecar \u002F Ambassador** (cross-cutting concerns beside rather than inside your\nprocess — the basis of service meshes), **Anti-Corruption Layer** (⚠️ **the essential\npattern when integrating a legacy or third-party model you don't control** — translate at\nthe boundary so their model doesn't leak into yours).\n\n**Serverless\u002Fevent-driven adds its own**: function-per-endpoint, fan-out\u002Ffan-in, and\n⚠️ **cold-start and statelessness constraints that are design forces, not implementation\ndetails.**\n","# Design Patterns: Architectural Patterns, Monoliths, Modules, and Microservices\n\n> **Part 2 of 5** of the *Design Patterns* reference (plugin `design-patterns`), covering §6–§7. Sibling skills: `patterns-foundations-gof-and-alternatives` (§0–§5), `patterns-distributed-concurrency-and-messaging` (§8–§11), `patterns-llm-agentic-and-legacy-migration` (§12–§13), `patterns-reference` (§14–§20). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** Verified August 2026. See §17 → `patterns-reference` for the currency snapshot and what goes stale first.\n\n> **How to read this.** Reference, not a catalogue. **The 23 GoF patterns are freely\n> available with diagrams and code samples everywhere** — this document does not reproduce\n> them. It addresses the harder questions: which ones still earn their keep, which ones\n> are artifacts of 1994's languages, what replaced them, where the genuinely useful\n> modern patterns live, and **when not to use any of them.**\n>\n> Three markers:\n> - **[DURABLE]** — design forces that recur regardless of language or era.\n> - **[VERSIONED]** — language features, framework practice, emerging pattern languages.\n> - **[CONTESTED]** — genuine disagreement, and **this domain has more of it than most.**\n>\n> **⚠️ GOTCHA** boxes mark where applying a pattern makes things worse.\n>\n> **The three framings that organize everything below:**\n> 1. **Patterns are a vocabulary, not a construction kit.** Their durable value is that\n>    \"this is a circuit breaker\" communicates a design in four words. **Their value was\n>    never that you should go looking for places to install them** — and treating the\n>    catalogue as a checklist is the single most damaging misreading of the entire\n>    literature (§14 → `patterns-reference`).\n> 2. **A pattern is a solution to a *force*, and the force is what's durable — not the\n>    implementation.** Many GoF implementations were workarounds for what C++ and Java\n>    couldn't express in 1994. **The forces persisted; the workarounds became language\n>    features** (§3 → `patterns-foundations-gof-and-alternatives`). Learn to see the force.\n> 3. **Over-application is the dominant failure mode, by a wide margin.** The cost of a\n>    missing pattern is some duplication you can refactor later. **The cost of an unneeded\n>    pattern is permanent indirection that every future reader must decode.** As one\n>    2026 practitioner framing puts it: add a pattern only when it removes duplication,\n>    isolates change, or clarifies intent — **and if introducing it makes the code harder\n>    to explain, it's the wrong moment for it.**\n\n---\n\n## §6. Architectural Patterns\n\n### 6.1 Layered\n\nPresentation → Application → Domain → Infrastructure. **Familiar, easy to explain, and\nadequate for a great deal of software.** ⚠️ Its failure modes: **anemic domain models**\n(logic drains into the service layer, leaving data-bags — see §14 → `patterns-reference`), layer-skipping that\nnobody notices, and **dependency flowing the wrong way toward infrastructure.**\n\n### 6.2 Hexagonal \u002F Ports and Adapters (and Clean, and Onion)\n\n**[DURABLE] The single most valuable architectural idea for most business applications,\nand the family is largely one idea under three names.**\n\n**Domain logic in the centre, knowing nothing about the outside world. Ports are\ninterfaces the domain defines. Adapters implement them for a database, an HTTP API, a\nqueue, a third-party service.** ⚠️ **The dependency rule is the whole point: dependencies\npoint inward, always.** Infrastructure depends on the domain; the domain depends on\nnothing.\n\n**What you actually get**: the domain is testable without a database or a network; you can\nreplace infrastructure without touching business rules; and **the business logic is\nfindable**, which matters more than it sounds.\n\n**⚠️ What it costs**: more indirection, more files, and **it's genuinely overkill for a\nCRUD app.** The honest heuristic: **if your domain logic is thin, you don't need this** —\nand much software has thin domain logic.\n\n### 6.3 Domain-Driven Design\n\n**Strategic DDD is the more valuable half and the more neglected one**: **bounded\ncontexts** (⚠️ **the single most useful concept here** — the same word means different\nthings in different parts of the business, and pretending otherwise produces the\nuniversal-model disaster), **ubiquitous language**, and **context mapping**.\n\n**Tactical DDD**: entities, value objects (**⚠️ underused — most \"primitives\" in a domain\nare value objects with invariants**), aggregates (**consistency boundaries — and the \"one\naggregate per transaction\" rule is what makes them useful**), repositories, domain events,\ndomain services.\n\n**⚠️ The characteristic DDD failure is adopting the tactical patterns without the strategic\nwork** — you get repositories and value objects laid over a model nobody talked to the\nbusiness about, which is the ceremony without the benefit.\n\n---\n\n## §7. Monoliths, Modules, and Microservices\n\n**[CONTESTED, though the pendulum has swung noticeably.]**\n\n**[DURABLE] The modular monolith is the correct default for most teams**: one deployable,\nstrong internal module boundaries, no network between your own components. You get\nenforced boundaries without distributed-systems tax.\n\n**⚠️ Microservices buy independent deployment and scaling, and they cost you: distributed\ntransactions (§8 → `patterns-distributed-concurrency-and-messaging`), network failure as a permanent condition, debugging across process\nboundaries, eventual consistency everywhere, and operational overhead per service.**\nThe honest framing: **microservices are an organizational solution to a team-coordination\nproblem, adopted for a technical-sounding reason.** If your teams aren't blocked on each\nother's deploys, you're paying the cost without collecting the benefit.\n\n**Related patterns**: **Strangler Fig** (§13 → `patterns-llm-agentic-and-legacy-migration`), **API Gateway**, **Backend for Frontend\n(BFF)**, **Sidecar \u002F Ambassador** (cross-cutting concerns beside rather than inside your\nprocess — the basis of service meshes), **Anti-Corruption Layer** (⚠️ **the essential\npattern when integrating a legacy or third-party model you don't control** — translate at\nthe boundary so their model doesn't leak into yours).\n\n**Serverless\u002Fevent-driven adds its own**: function-per-endpoint, fan-out\u002Ffan-in, and\n⚠️ **cold-start and statelessness constraints that are design forces, not implementation\ndetails.**\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesign-patterns\u002Fskills\u002Fpatterns-architectural",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill patterns-architectural",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill patterns-architectural",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill patterns-architectural","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fdesign-patterns\u002Fskills\u002Fpatterns-architectural\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]