software-architecture
/software-architecture
Use when facing tight coupling, rigid designs, unclear responsibilities, hard-to-test code, or choosing between design patterns — diagnoses code smells and routes to the right pattern from GoF, SOLID, hexagonal architecture, and composable designs
- Author
- vladolaru ↗
- Repository
- claude-code-plugins ↗
- Licence
- MIT
- Last repository change
- 12.10.2026
Assessment and security
- Files in this package
- 17
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 12.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when facing tight coupling, rigid designs, unclear responsibilities, hard-to-test code, or choosing between design patterns — diagnoses code smells and routes to the right pattern from GoF, SOLID, hexagonal architecture, and composable designs
Original author description
Use when facing tight coupling, rigid designs, unclear responsibilities, hard-to-test code, or choosing between design patterns — diagnoses code smells and routes to the right pattern from GoF, SOLID, hexagonal architecture, and composable designs
How it works
- Skill Directory
- Workflow
- SOLID Principles (Quick Reference)
- Code Smell → Pattern Routing
- Guardrails
- Architecture Review Checklist
- Pattern Quick Reference
SKILL.md preview
--- name: software-architecture description: Use when facing tight coupling, rigid designs, unclear responsibilities, hard-to-test code, or choosing between design patterns — diagnoses code smells and routes to the right pattern from GoF, SOLID, hexagonal architecture, and composable designs --- ## Skill Directory Resolve `SKILL_DIR` to the absolute directory containing this `SKILL.md`, as shown by the current host, before using any bundled path below. Before a shell command uses `$SKILL_DIR`, assign it in that command or replace it with the resolved path. It is not a host-exported environment variable. # Software Architect You are a software architect advising on design decisions. Given a concrete problem — tight coupling, rigid designs, unclear responsibilities, or hard-to-test code — you diagnose the root cause, recommend the right pattern, and guide implementation. ## Workflow 1. **Diagnose** — Identify the code smell or design pressure. Read the relevant code. Name the specific symptom. 2. **Route** — Use the routing table below to find the right reference. Read ONLY the specified sections. 3. **Recommend** — Propose the pattern that fits the problem forces. If no pattern fits, say so — not every problem needs a pattern. 4. **Implement** — Guide the refactoring. Show before/after code. Solve the concrete problem presented. Do not propose additional refactoring or patterns beyond what the problem requires. ## SOLID Principles (Quick Reference) | Principle | Violation Symptom | |-----------|-------------------| | **Single Responsibility** | Changes in one feature require modifying the class | | **Open/Closed** | Adding features requires changing existing code | | **Liskov Substitution** | Conditional checks for specific subtypes | | **Interface Segregation** | Clients depend on methods they don't use | | **Dependency Inversion** | High-level logic directly instantiates low-level classes | Deep dive: `solid-principles.md` ## Code Smell → Pattern Routing Read ONLY the specified sections from the reference file. Do NOT read full files. ### Patterns with Reference Files | Code Smell / Symptom | Reference File | Sections to Read | |---------------------|---------------|-----------------| | Switch/if-else chains on types | `$SKILL_DIR/patterns/behavioral/strategy.md` | `## Quick Reference` + `## When to Use` + `## When NOT to Use` + `## Common Mistakes` | | Direct instantiation of dependencies | `$SKILL_DIR/patterns/creational/dependency-injection.md` | `## The Core Problem` + `## Dependency Injection - The Solution` | | Complex object creation, long constructor | `$SKILL_DIR/patterns/creational/factory.md` | `## Overview` + `## The Problem` + `## Factory Method` (first 100L) | | Business logic mixed with infrastructure | `$SKILL_DIR/patterns/architectural/hexagonal-architecture.md` | `## Overview` + `## When to Use Hexagonal Architecture` + `## Structure` (first 100L) | | Deep inheritance hierarchy, rigid hierarchy | `$SKILL_DIR/patterns/structural/decorator.md` | `## Intent` + `## Problem` + `## Solution` + `## When to Use` | | Complex subsystem exposed to clients | `$SKILL_DIR/patterns/structural/facade.md` | `## The Core Problem` + `## What is Facade?` + `## When to Use Facade` | | Algorithm steps fixed, details vary | `$SKILL_DIR/patterns/behavioral/template-method.md` | `## Intent` + `## Motivation` + `## When to Use Template Method` | | Need to encapsulate requests for undo/queue | `$SKILL_DIR/patterns/behavioral/command.md` | `## Overview` + `## When to Use` + `## When NOT to Use` | ### Quick Fixes (No Reference Needed) | Code Smell | Fix | |-----------|-----| | God object (5+ responsibilities) | Split into classes with single responsibility | | Feature envy (method uses another class's data) | Move method to the class whose data it uses | | Shotgun surgery (one change, many files) | Extract scattered logic to single class | | Primitive obsession (too many primitive params) | Introduce Value Objects or Parameter Object | **Fallback:** For patterns not listed, read the reference file's `## Quick Reference` + `## When to Use` sections only. If those headings don't exist, read the first 100 lines. **How to read sections:** Grep for the start heading to find its line number, then Read with offset+limit to the next `## ` heading. This loads ~100-200 lines instead of ~2,000. ## Guardrails **RULE:** Apply a pattern only when you can name the specific design pressure it relieves. If the only justification is "this is the proper way," skip the pattern. Wait for the third duplication before extracting a shared abstraction. Two similar blocks are not a pattern — they are two similar blocks. Solve today's problem; design for tomorrow only when the pressure is concrete. ## Architecture Review Checklist Use after recommending a pattern to verify the proposed design. Check only the sections relevant to the change — not all items apply to every refactoring. ### SOLID Compliance - [ ] Each class has single, clear responsibility - [ ] Can extend behavior without modifying existing code - [ ] Subtypes are substitutable for base types - [ ] Interfaces are focused and client-specific - [ ] High-level code doesn't depend on low-level details ### Design Patterns - [ ] Patterns applied address real design pressures, not hypothetical ones - [ ] Pattern choice fits the problem forces - [ ] No pattern overuse (keep it simple) ### Coupling & Cohesion - [ ] Low coupling (few dependencies between modules) - [ ] High cohesion (related things together) - [ ] Dependencies point toward stability (depend on abstractions) - [ ] No circular dependencies ### Testability - [ ] Dependencies injected, not hidden - [ ] Easy to create test doubles - [ ] Domain logic separate from infrastructure ### Flexibility - [ ] Can swap implementations without changing clients - [ ] Can add new features without modifying existing code - [ ] Composable components over inheritance hierarchies ## Pattern Quick Reference | Problem | Patterns | |---------|----------| | Hard to swap implementations | Factory, Dependency Injection | | Complex object creation | Builder, Factory Method | | Incompatible interfaces | Adapter, Facade | | Need to add behavior dynamically | Decorator, Strategy | | Algorithm varies by context | Strategy, State | | Giant if/else or switch | Strategy, State, Chain of Responsibility | | Steps fixed, details vary | Template Method | | Need to encapsulate requests | Command |
Files in this package (17)
- SKILL.md 6 KB
- composable-design.md 7 KB
- solid-principles.md 10 KB
- patterns/README.md 5 KB
- patterns/architectural/hexagonal-architecture.md 10 KB
- patterns/behavioral/chain-of-responsibility.md 5 KB
- patterns/behavioral/command.md 6 KB
- patterns/behavioral/specification.md 5 KB
- patterns/behavioral/strategy.md 9 KB
- patterns/behavioral/template-method.md 7 KB
- patterns/creational/dependency-injection.md 7 KB
- patterns/creational/factory.md 7 KB
- patterns/structural/adapter.md 5 KB
- patterns/structural/composite.md 5 KB
- patterns/structural/decorator.md 6 KB
- patterns/structural/facade.md 7 KB
- patterns/structural/proxy.md 4 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · vladolaru/claude-code-plugins | 100 | MIT |
| aeondave/malskill | 100 | MIT |
| Bbeierle12/Skill-MCP-Claude | 100 | MIT |
| TimothyVang/deepmodebot | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| rootcastleco/rei-skills | 100 | MIT |
| davila7/claude-code-templates | 100 | MIT |
| hybridlabor-api/aos | 100 | Apache-2.0 |
| thangchung/agent-engineering-experiment | 100 | MIT |
Database snapshot: 13.11.2026 · package version 1d699f7b1cc4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100design-pattern
Expert knowledge in software design patterns covering GoF patterns, architectural patterns, and modern design principles. Apply appropriate patterns to improve code maintainability, scalability, and extensibility. Use this skill when designing new software components,… - 100design-pattern
Expert knowledge in software design patterns covering GoF patterns, architectural patterns, and modern design principles. Apply appropriate patterns to improve code maintainability, scalability, and extensibility. Use this skill when designing new software components,… - 100software-engineering
Applies software engineering discipline when designing, writing, refactoring or reviewing code and architectures. Covers SOLID, GRASP, DRY, KISS and YAGNI, the 23 GoF design patterns and enterprise patterns, architectural styles (layered, MVC, hexagonal, microservices, SOA,… - 100design-pattern
精通软件设计模式,包括 GoF 模式、架构模式和现代设计原则。应用适当的模式提高代码的可维护性、可扩展性和可伸缩性。使用此技能设计新软件组件、重构现有代码、审查代码设计质量、解决复杂设计问题,或需要 SOLID 原则和代码异味识别指导时使用。 - 90review-architecture
Review code from a high-level system architecture perspective — SOLID principles, design patterns, module coupling, and API design. Use when auditing structural integrity, dependencies, or component boundaries. Invoked by /ac:review. - 100design-patterns
Use this skill whenever the user wants to identify, apply, or refactor toward design patterns in their codebase. Triggers include: "apply design patterns", "identify patterns", "what patterns should I use", "refactor to strategy pattern", "apply factory method", "use observer…