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
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
- enes9103/my-claude-agents-skillstheir own version, first seen Sep 28, 2026
- The-AIOS/aiostheir own version, first seen Sep 24, 2026
- MortuisVMain/ai-agent-superpowerstheir own version, first seen Sep 15, 2026
- talhaMah56/claude_skillstheir own version, first seen Sep 12, 2026
- socialadsmentor/sam-agentic-harnesstheir own version, first seen Sep 3, 2026
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.
xfstudioSkillpython-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
xfstudioSkilltailwind-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
StrayDragonSkillui-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
OpenAISkilltest-driven-development
Use when implementing any feature or bugfix, before writing implementation code
Also in 5 projects that use this
VercelSkillweb-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
OpenAISkillwriting-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
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- rshankras/claude-code-apple-skills★ 777same name
- The-AIOS/aios★ 69same name
- nilecui/SkillsBase★ 27same name
- garrettw/php-arch-skills★ 13same name
- wpank/ai★ 11same name
- joabgonzalez/ai-agents-skills★ 9same name
- xfstudio/skills★ 9same name
- Harmeet10000/skills★ 7same name
- AhmedHabiba/architor★ 6same name
- nicholyx/ai-skills★ 6same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- core-principles-decision-engineSkill
- foundationsSkill
- product-businessSkill
- frontend-architectureSkill
- backend-architectureSkill
- database-data-architectureSkill
- api-communication-architectureSkill
- cloud-infrastructureSkill
- devops-cicdSkill
- ai-ml-architectureSkill
- robotics-systems-architectureSkill
- security-architectureSkill
- reliability-sreSkill
- performance-engineeringSkill
- engineering-practicesSkill
- team-leadershipSkill
- cost-business-architectureSkill
- domain-reference-architecturesSkill
- review-output-standardsSkill
- archon-decision-engineSkill
The file
Files
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
| Pattern | Solves | Adopt when | Avoid when |
| Monolith | Simplicity, fast iteration, easy reasoning about the whole system | Small team, early stage, unclear domain boundaries | Team has grown large enough that independent deploy cadence is now the bottleneck |
| Modular Monolith | Monolith's simplicity + clear internal boundaries that ease a future split | Almost always the right starting point for new products | Never really wrong as a starting point — only outgrown, not avoided |
| Microservices | Independent deployability, independent scaling, team autonomy at scale | Demonstrated team-coordination bottleneck, genuinely independent scaling needs across components | Pre-PMF, small team, unclear domain boundaries — the classic over-engineering trigger |
| Event-Driven Architecture | Decoupling producers from consumers, reacting to business events across boundaries | Multiple independent systems need to react to the same business events | Simple request/response needs being forced into events for no decoupling benefit |
| CQRS | Read and write models with very different shape/scale needs | Read patterns are numerous/complex and genuinely different from the write model | Most CRUD apps, where read and write models are naturally similar |
| Event Sourcing | Full audit/replay of state changes | Regulatory audit trail or genuine replay/rebuild-state need | Used by default for typical CRUD — adds real query complexity for no corresponding benefit |
| Domain-Driven Design | Managing complex business logic clarity across a large domain | Genuinely 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 Architecture | Decoupling business logic from frameworks/infrastructure for testability and swap-ability | Long-lived systems where infrastructure (DB, framework) is likely to change, or testability is a priority | Short-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.
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
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.

