Routes software-architecture work to the right sub-skill: choosing topology or code organization (monolith vs microservices, layered/hexagonal/clean), service boundaries and inter-service communication, DDD modeling, component decomposition, C4 diagrams, coupling/cohesion analysis, and CI architecture rules.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fabiandistler-architecture)
---
name: architecture
category: architecture
activation: router
environments: coding
description: "Routes software-architecture work to the right sub-skill: choosing topology or code organization (monolith vs microservices, layered/hexagonal/clean), service boundaries and inter-service communication, DDD modeling, component decomposition, C4 diagrams, coupling/cohesion analysis, and CI architecture rules."
when_to_use: "Use even when the word architecture is absent: how should I structure or organize this project, how should this repo be split into modules, two services share a database, draw an overview of how the system fits together, make CI enforce layering rules, model this domain, is this class or file doing too much, did we split this into too many modules, which modules are too tangled or brittle, is it OK that this module imports that one. Not for single-file placement or routine refactors."
---
# Architecture & design
## How to use
1. Match the request to a row in the table below.
2. **Read that sub-skill's `SKILL.md` before acting.** Open
`members/<name>/SKILL.md` relative to this router, even if your agent lists
the member separately. Follow the member's workflow, references, and scripts.
3. When the table does not give exactly one row:
- Two rows apply: take the default member from the tie-breaks below; read
a second member only if the first points to it.
- No row fits (including plain table or index design): answer from general
knowledge and say the catalogue has no dedicated sub-skill.
<!-- BEGIN generated:members -->
| Sub-skill | When to use | Read before acting |
|---|---|---|
| architecture-pattern-advisor | Guides choosing a repository's architecture — topology (monolith, modular monolith, microservices, serverless) or code organization (layered, by-domain, hexagonal, clean/onion). | `members/architecture-pattern-advisor/SKILL.md` |
| c4-modeling | Drafts a C4 model of a software system with the user and renders it as Mermaid at Context, Container, Component, Landscape, Dynamic, and Deployment level (not Code). | `members/c4-modeling/SKILL.md` |
| coupling-cohesion | Assesses existing code for module cohesion and LCOM, codebase-wide coupling metrics and zones, or the balance of one dependency (Khononov). | `members/coupling-cohesion/SKILL.md` |
| ddd | Applies Domain-Driven Design: subdomain classification, context mapping, legacy integration (ACL), tactical pattern choice, and conventions for aggregates, value objects, events, and event sourcing. | `members/ddd/SKILL.md` |
| fitness-functions | Designs and implements architecture fitness functions — automated CI checks that fail the build when a characteristic such as modularity, layering, coupling, security, or resilience erodes. | `members/fitness-functions/SKILL.md` |
| logical-component-design | Decomposes a NEW system or feature into named logical components; not for measuring an existing decomposition. | `members/logical-component-design/SKILL.md` |
| microservices-design | Guides microservice interaction design and review — boundaries, coupling, communication style, contract versioning, sagas, and resiliency patterns from Newman's *Building Microservices*. | `members/microservices-design/SKILL.md` |
<!-- END generated:members -->
The table above is generated from `skills.json` by
`scripts/build_routers.py`; edit the manifest, not this region.
## Tie-breaks
When more than one row matches, route to exactly one default member:
- Split into services or organize code → `architecture-pattern-advisor`
- Where domain boundaries lie → `ddd`
- Components of a new system or feature → `logical-component-design`
- How services talk to each other → `microservices-design`
- Measure existing code for coupling or cohesion, or judge one dependency
between modules of one codebase → `coupling-cohesion`
- Enforce a rule in CI so the design cannot erode → `fitness-functions`
- Two deployed services share a database → `microservices-design`
- Where to start refactoring an unfamiliar codebase → the top-level `refactoring` skill, outside this router