
A decision framework that tells you which architectural patterns to apply and when, covering the foundational ones (Dependency Injection, SOA) and situational ones (Repository, Domain Events, Circuit Breaker, Anti-Corruption Layer). The philosophy is problem-first: it gives you decision trees based on specific pain points like "code is hard to test" or "one slow service breaks everything" rather than pattern catalogs to memorize. Useful when designing new systems, adding integrations, or refactoring existing architecture. The best part is the explicit anti-YAGNI warnings, like stopping you from adding patterns preemptively or cargo-culting "best practices" without understanding what problem they solve.
$ npx -y skills add bobmatnyc/claude-mpm-skills --skill software-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Architectural patterns solve specific structural problems. This skill provides a decision framework for when to apply each pattern, not a catalog to memorize.
Core philosophy: Patterns solve problems. No problem? No pattern needed.
Activate when:
These patterns provide the structural foundation for maintainable systems. Apply unless you have specific reasons not to.
| Pattern | Problem Solved | Signal to Apply |
|---|---|---|
| Dependency Injection | Tight coupling, untestable code | Classes instantiate their own dependencies |
| Service-Oriented Architecture | Monolithic tangles, unclear boundaries | Business logic scattered, no clear ownership |
DI quick example — before and after:
Sponsors