Skip to main content

dev:architecture

Router for architecture knowledge — 7 architectural styles (layered, hexagonal, clean, modular monolith, microservices, event-driven, CQRS) and the 22 GoF design patterns.

Part of dev.

42 reference documents, about 14,081 lines.

The skill itself does not contain them. It reads your question and names the one or two worth opening — which is the point, because loading everything below to answer one question would cost more than the answer is worth.

Overviews

DocumentCoversLines
adr.mdArchitecture decision records927
behavioral.mdBehavioral patterns108
creational.mdCreational patterns83
real-world-examples.mdReal-world examples399
refactoring.mdRefactoring index225
selection.mdChoosing a pattern, and when not to142
structural.mdStructural patterns97

Patterns

DocumentCoversLines
abstract-factory.mdAbstract Factory94
adapter.mdAdapter91
bridge.mdBridge87
builder.mdBuilder93
chain-of-responsibility.mdChain of Responsibility103
command.mdCommand103
composite.mdComposite98
decorator.mdDecorator118
facade.mdFacade82
factory-method.mdFactory Method93
flyweight.mdFlyweight96
iterator.mdIterator96
mediator.mdMediator108
memento.mdMemento118
observer.mdObserver107
prototype.mdPrototype92
proxy.mdProxy93
singleton.mdSingleton111
state.mdState115
strategy.mdStrategy105
template-method.mdTemplate Method115
visitor.mdVisitor112

Refactoring · techniques

DocumentCoversLines
composing-methods.mdComposing Methods803
dealing-with-generalization.mdDealing with Generalization1441
moving-features.mdMoving Features between Objects1436
organizing-data.mdOrganizing Data1805
simplifying-conditionals.mdSimplifying Conditional Expressions1479
simplifying-method-calls.mdSimplifying Method Calls2074

Styles

DocumentCoversLines
clean.mdClean architecture101
cqrs-event-sourcing.mdCQRS and event sourcing135
event-driven.mdEvent-driven architecture134
hexagonal.mdHexagonal architecture (ports and adapters)129
layered.mdLayered architecture116
microservices.mdMicroservices104
modular-monolith.mdModular monolith113

Reading these

You do not open these yourself in normal use — /dev:architecture picks for you. Read them directly when you want the reference rather than the answer, or to check what the advice is actually based on.