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
| Document | Covers | Lines |
|---|---|---|
adr.md | Architecture decision records | 927 |
behavioral.md | Behavioral patterns | 108 |
creational.md | Creational patterns | 83 |
real-world-examples.md | Real-world examples | 399 |
refactoring.md | Refactoring index | 225 |
selection.md | Choosing a pattern, and when not to | 142 |
structural.md | Structural patterns | 97 |
Patterns
| Document | Covers | Lines |
|---|---|---|
abstract-factory.md | Abstract Factory | 94 |
adapter.md | Adapter | 91 |
bridge.md | Bridge | 87 |
builder.md | Builder | 93 |
chain-of-responsibility.md | Chain of Responsibility | 103 |
command.md | Command | 103 |
composite.md | Composite | 98 |
decorator.md | Decorator | 118 |
facade.md | Facade | 82 |
factory-method.md | Factory Method | 93 |
flyweight.md | Flyweight | 96 |
iterator.md | Iterator | 96 |
mediator.md | Mediator | 108 |
memento.md | Memento | 118 |
observer.md | Observer | 107 |
prototype.md | Prototype | 92 |
proxy.md | Proxy | 93 |
singleton.md | Singleton | 111 |
state.md | State | 115 |
strategy.md | Strategy | 105 |
template-method.md | Template Method | 115 |
visitor.md | Visitor | 112 |
Refactoring · techniques
| Document | Covers | Lines |
|---|---|---|
composing-methods.md | Composing Methods | 803 |
dealing-with-generalization.md | Dealing with Generalization | 1441 |
moving-features.md | Moving Features between Objects | 1436 |
organizing-data.md | Organizing Data | 1805 |
simplifying-conditionals.md | Simplifying Conditional Expressions | 1479 |
simplifying-method-calls.md | Simplifying Method Calls | 2074 |
Styles
| Document | Covers | Lines |
|---|---|---|
clean.md | Clean architecture | 101 |
cqrs-event-sourcing.md | CQRS and event sourcing | 135 |
event-driven.md | Event-driven architecture | 134 |
hexagonal.md | Hexagonal architecture (ports and adapters) | 129 |
layered.md | Layered architecture | 116 |
microservices.md | Microservices | 104 |
modular-monolith.md | Modular monolith | 113 |
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.