agentleFS
Pouya-MansourniaPouya-Mansournia/ARCHON/skills/07_Architecture/SKILL.md

architecture-patterns

Skill2 starsChanged 5 months agoMITView on GitHub

System architecture patterns — monolith, modular monolith, microservices, event-driven, CQRS, event sourcing, domain-driven design, clean/hexagonal architecture, and service mesh — with explicit stage-aware decision rules for when each pattern earns its complexity.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use python-testing-patterns, tailwind-design-system and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    python-testing-patterns

    Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

    Also in 5 projects that use this

  • xfstudioSkill

    tailwind-design-system

    Build scalable design systems with Tailwind CSS, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

    Also in 5 projects that use this

  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 5 projects that use this

  • OpenAISkill

    test-driven-development

    Use when implementing any feature or bugfix, before writing implementation code

    Also in 5 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 3 projects that use this

  • OpenAISkill

    writing-plans

    Use when you have a spec or requirements for a multi-step task, before touching code

    Also in 3 projects that use this

  • +4 more from xfstudio

The file

Files
SKILL.md

07 — Architecture Patterns (L4)

Level: L4 — Principal Engineering.

Goal

Match the structural pattern to the team's actual size, the system's actual complexity, and the actual scaling/ownership pressures present today — architecture patterns are tools for solving specific problems (team coordination at scale, independent deployability, complex domain logic clarity), not badges of engineering maturity.

Pattern Decision Matrix

PatternSolvesAdopt whenAvoid when
MonolithSimplicity, fast iteration, easy reasoning about the whole systemSmall team, early stage, unclear domain boundariesTeam has grown large enough that independent deploy cadence is now the bottleneck
Modular MonolithMonolith's simplicity + clear internal boundaries that ease a future splitAlmost always the right starting point for new productsNever really wrong as a starting point — only outgrown, not avoided
MicroservicesIndependent deployability, independent scaling, team autonomy at scaleDemonstrated team-coordination bottleneck, genuinely independent scaling needs across componentsPre-PMF, small team, unclear domain boundaries — the classic over-engineering trigger
Event-Driven ArchitectureDecoupling producers from consumers, reacting to business events across boundariesMultiple independent systems need to react to the same business eventsSimple request/response needs being forced into events for no decoupling benefit
CQRSRead and write models with very different shape/scale needsRead patterns are numerous/complex and genuinely different from the write modelMost CRUD apps, where read and write models are naturally similar
Event SourcingFull audit/replay of state changesRegulatory audit trail or genuine replay/rebuild-state needUsed by default for typical CRUD — adds real query complexity for no corresponding benefit
Domain-Driven DesignManaging complex business logic clarity across a large domainGenuinely complex business domain with rich rules (e.g., a logistics/pricing/insurance engine)Simple CRUD domains where DDD's ceremony (aggregates, bounded contexts, ubiquitous language) outweighs its clarity benefit
Clean / Hexagonal ArchitectureDecoupling business logic from frameworks/infrastructure for testability and swap-abilityLong-lived systems where infrastructure (DB, framework) is likely to change, or testability is a priorityShort-lived prototypes where the abstraction overhead isn't earning its keep

Decision Rule

Start every new product as a modular monolith. Define clear internal module boundaries (by domain, not by technical layer) from day one — this is nearly free and makes a future extraction mechanical rather than a rewrite. Only extract a true microservice when there's a demonstrated, specific need: a team that needs to deploy independently of others, or a component with genuinely different scaling characteristics from the rest of the system (e.g., a video transcoding service vs. the main API).

Reference Files

  • reference/architecture-patterns.md — full pattern deep dive with concrete examples and migration paths between patterns.
  • reference/service-mesh.md — when a service mesh (Istio, Linkerd) earns its operational complexity, and what it solves that a simpler approach doesn't.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.