/software-architecture:software-designfrom software-architecture
Guides architectural decision-making with patterns like ADRs, C4 model, DDD, event storming, and evolutionary architecture governance. Supports trade-off analysis, design docs/RFCs, and fitness functions.
Ships in software-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Software design is the disciplined, iterative practice of making and recording trade-off decisions under uncertainty — not a separate up-front phase. The single most valuable skill is expert judgment about when to apply which technique at which scale.
Ford & Richards's Two Laws:
The practical goal: "Never shoot for the best architecture, but rather for the least worst one."
Ford & Richards define architecture as: structure + architecture characteristics ("-ilities") + architecture decisions + design principles.
Useful working distinction:
The boundary is fluid — microservices made "change a first-class design consideration," partly invalidating the old "hard to change" definition.
The empirical evidence for the "cost-of-change curve" (Boehm's 1970s hypothesis that defects cost exponentially more to fix later) is weakly supported. A 2016 Menzies et al. study found "no credence to the hypothesis" across 171 projects. The honest position:
JEDUF: Design enough to de-risk irreversible decisions; defer the rest. Most real design happens iteratively during implementation.
Kent Beck's Tidy First? (2023) formalizes the economic logic: structural changes are reversible options ("just as a bad haircut is more reversible than a bad tattoo"). Software value = discounted future cash flows + the value of options created by good structure. Sometimes ship behavior first and tidy after — the time value of money applies.
Three recurring decisions at every scale: build/buy/reuse, sync/async, stateful/stateless.
Watch for Brooks's Second System Effect (over-engineering the rewrite) and apply YAGNI to defer speculative generality.
Beck's Tidy First? warning: "More than one hour tidying at a time before making any behavioral changes likely means you have lost track of the minimum set of structural changes needed." Structural and behavioral changes go in separate commits/PRs.
The symptom may indicate a deeper design problem — decide consciously: fix vs. redesign.
Lightweight process:
Central decision: extend existing code vs. create new.
A written design document or RFC earns its keep at this scale. (See Design Communication section.)
The C4 sequence:
Key practices:
SRP, OCP, LSP, ISP, DIP — remains the default OO vocabulary but should be treated as heuristics, not binary laws.
Dan North's CUPID critique (2021): "Every single element of SOLID is wrong." His alternative: CUPID — Composable, Unix-philosophy, Predictable, Idiomatic, Domain-based. North reframes these as properties (a direction to move toward) rather than principles (binary rules).
"Principles are like rules: you are either compliant or you are not... Instead, I started thinking about properties: qualities or characteristics of code... Properties define a goal or centre to move towards." — Dan North
2025 practical view: SOLID works well in large monolithic backends but is a poor fit for data engineering and functional styles.
DRY is about knowledge duplication, not code duplication. Two identical code fragments expressing different domain concepts do NOT violate DRY.
Sandi Metz's critical nuance: "Duplication is far cheaper than the wrong abstraction." When an abstraction has gone wrong:
"Re-introduce duplication by inlining the abstracted code back into every caller... When the abstraction is wrong, the fastest way forward is back." — Sandi Metz
Fowler's Rule of Three: Wait for three instances before abstracting. This is the practical guard against premature abstraction.
Common, but watch for:
All three are variations on one idea: a dependency rule pointing inward to a framework-independent domain core, with adapters at the edges for testability.
Powerful but frequently over-engineering for CRUD applications. Apply only when the complexity is justified by the requirements.
Bounded contexts as service boundaries; database-per-service. See Monolith-First Doctrine below before choosing this path.
For extreme scale or legacy migration. Cell-based architecture provides isolated failure domains.
Start with a well-factored modular monolith. Extract services only when concrete pain justifies the distributed-systems tax.
Martin Fowler's MonolithFirst:
"You should build a new application as a monolith initially, even if you think it's likely that it will benefit from a microservices architecture later on."
Citing Simon Brown: "If you can't build a well-structured monolith, what makes you think you can build a well-structured set of microservices?"
DHH's Majestic Monolith:
"The vast majority of web applications should start life as a Majestic Monolith."
Shopify's canonical case: Core monolith of over 2.8 million lines of Ruby and 500,000 commits, reorganized into 37 components using the open-sourced Packwerk tool to enforce dependency and privacy boundaries. Shopify's Kirsten Westeinde: "I would actually recommend that new products and new companies start with a monolith."
Amazon Prime Video case (Kolny, 2023): Moving one internal audio/video monitoring pipeline from microservices to a monolith "reduced our infrastructure cost by over 90% [and] increased our scaling capabilities." Critically, Kolny explicitly cautioned this was not a company-wide recommendation. Amazon CTO Werner Vogels: "Building evolvable software systems is a strategy, not a religion."
Thoughtworks Radar: "It's often advisable to start with a well-factored monolith and only break out separately deployable units when the application reaches a scale where the benefits of microservices outweigh the additional complexity inherent in distributed systems."
Sam Newman: "Microservices should not be the default choice." The worst outcome is the distributed monolith — many services that must be deployed together.
Tell-tale sign: someone has a full-time job as "release coordination manager." Caused by splitting along technical layers rather than business/domain boundaries.
Benchmark: If a "release coordination manager" role appears → you have a distributed monolith; stop splitting and re-modularize.
Extract a service only when you feel concrete pain:
AND you have the operational maturity (observability, CI/CD) to pay the distributed-systems tax.
Bounded Contexts: The primary tool for managing complexity at scale. Each context has its own ubiquitous language and model.
Language test: When the same word means different things in two parts of the system, you've found a context boundary.
Context Maps (integration patterns between contexts):
Subdomain classification:
Accessible framing (Khononov): Use "Functional Area" instead of "Bounded Context" and "Shared Vocabulary" instead of "Ubiquitous Language" to avoid alienating stakeholders.
DDD-lite: Tactical patterns without full ceremony — recommended for most teams. Full DDD is overkill for simple CRUD.
The dominant 2024–2026 collaborative technique for discovering bounded contexts and aggregates.
Core insight: "Merge the people, split the software."
Process: Domain experts and developers use sticky notes on a large surface to map domain events, commands, aggregates, and policies. Outputs let teams "confidently design the data models and determine the appropriate software architecture."
Domain Storytelling: Uni-directional flows indicate bounded context candidates.
ADRs are the single highest-ROI design practice. Store them in source control next to the code (Thoughtworks 2016 recommendation).
Five sections:
One decision per record.
Teams pick a format but never decide:
Without an explicit operating model, the practice dies within a quarter.
adr-tools, Log4brains, dotnet-adr, docToolchain, Structurizr
The dominant lightweight diagramming approach. Notation- and tool-independent.
| Level | Name | Shows |
|---|---|---|
| 1 | System Context | Your system and its relationships to users and other systems |
| 2 | Container | Deployable/runnable units (apps, databases, microservices) |
| 3 | Component | Non-deployable logical groupings inside a container |
| 4 | Code | Classes, interfaces (rarely needed; auto-generate from IDE) |
Most common error: Mixing containers and components on the same diagram.
Trend: text-based, Git-versioned diagrams that stay in sync with code. AI-generated C4 from codebases (e.g., via Claude Code → Structurizr DSL) is emerging with quality caveats.
Medium+ features (weeks to months of work) where the design involves non-trivial trade-offs, affects multiple teams, or makes hard-to-reverse decisions.
Used by Google ("design docs"), Amazon (6-pager / PR-FAQ), Uber (DUCK → RFC → ERD), Stripe, Spotify. The Pragmatic Engineer's research is the best public catalog.
Key insight (Stedi): "Writing a doc is not a perfunctory gesture."
As RFCs scaled to hundreds weekly:
Avoid Meta's low-documentation approach — the Pragmatic Engineer cautions against copying this.
Architecture Review Boards are now considered counterproductive.
Per Thoughtworks Technology Radar: "The State of DevOps report reveals that the traditional approach of Architecture Review Boards is counterproductive, often hindering workflow and correlating with low organizational performance."
"Anyone can make any decision, as long as they seek advice (which is different from permission) from all affected parties and those with expertise."
The architect's role becomes facilitation and curation of conversations, not gatekeeping. Guardrails come from:
From Ford, Parsons, Kua (Building Evolutionary Architectures, 2nd ed. 2023):
"Any mechanism that performs an objective integrity assessment of some architecture characteristic."
Implemented as build-failing tests that enforce dependency direction, cycle-freedom, and layer rules.
| Tool | Language | Enforces |
|---|---|---|
| ArchUnit | Java (gold standard) | Package dependencies, layer rules, naming conventions |
| NetArchTest | .NET | Namespace dependencies, layer rules |
| dependency-cruiser | JavaScript/TypeScript | Module dependency rules, cycle detection |
| go-arch-lint | Go | Package dependency rules |
| jMolecules | Java | DDD building blocks as annotations |
Benchmark: If code duplication or two-week churn rises materially after AI-tool rollout → reinstate refactoring discipline and review gates.
There is no single winner; match protocol to context:
| Protocol | Best For | Key Trade-Off |
|---|---|---|
| REST | Public/third-party APIs | Simplicity, HTTP caching, ubiquity |
| gRPC | Internal service-to-service | ~3–10× faster, 60–80% smaller than JSON (Protobuf) |
| GraphQL | Client-driven / BFF data needs | Solves over/under-fetching; N+1 requires DataLoader |
| tRPC | End-to-end TypeScript | Full type safety; TypeScript-only |
| MCP | AI-tool interaction | JSON-RPC-based; Anthropic standard |
Design for failure. Key patterns:
2025 research findings (arXiv 2512.16959):
Design in from the start, not added later:
The most comprehensive empirical study on AI coding tools' effect on maintainability:
AI lowers the cost of producing artifacts. It raises the premium on the human disciplines — refactoring, abstraction judgment, boundary enforcement — that keep systems maintainable.
"There has been more evidence every year that code duplication keeps growing." — Bill Harding, GitClear CEO
Thoughtworks Vol 33 Radar (Nov 2025): "Vibe coding practically disappeared," replaced by context engineering and spec-driven development (Amazon Kiro, GitHub Spec Kit). This is a move toward structured human-AI collaboration on design artifacts.
"GenAI for forward engineering" — AI-generated specifications of what legacy code does (hiding how it's implemented) as a modernization input. On Thoughtworks Radar as a technique to watch.
Structural changes go in separate commits from behavioral changes. Representative tidyings:
As the architecture changes, the fitness functions must change with it. Evolving fitness functions are how you avoid governance debt.
| Signal | Diagnosis | Response |
|---|---|---|
| "Release coordination manager" role appears | Distributed monolith | Stop splitting; re-modularize |
| >50% of a layer is pass-through with no logic | Unnecessary abstraction layer | Collapse the layer |
| Adding parameters and conditionals to preserve a shared abstraction | Wrong abstraction (Metz) | Inline back to duplication; re-derive |
| ADRs stop being written within a quarter | Operating model broken, not the format | Fix the operating model |
| Code duplication or two-week churn rises after AI-tool rollout | AI maintainability debt accumulating | Reinstate refactoring discipline and review gates |
Judgment over pattern-count. Senior designers know when to apply which pattern and when to stop. "Architecture is the stuff you can't Google."
Design is communication and persuasion as much as technical problem-solving — hence the centrality of RFCs, ADRs, C4, and the advice process.
Most teams under-document decisions, paying for it in repeated debates and lost rationale. ADRs are cheap insurance but die without an operating model.
Taste matters — Beck: "Don't underestimate how much better you are as a programmer when you are happy." The "clean feeling" of a good design is a real, if soft, signal.
Diverse, loosely-coupled teams produce better designs. DORA links loosely coupled architecture and teams to higher organizational performance — Conway's Law and the Inverse Conway Maneuver.
Designers develop through deliberate practice: architecture katas (Ted Neward), reading others' ADRs/RFCs, post-decision reviews.
AI changes artifact production, not judgment. The maintainability evidence (GitClear, DORA 2024, Harness 2025) argues for more design discipline, not less.
The good-enough-now vs. perfect-later tension is permanent. Resolved by reversibility analysis: "make the least-worst decision."
When approaching any design problem:
Experts use analogy and pattern-matching ("this is like X except..."), treat domain experts as design partners, and handle uncertainty via prototyping, reversible decisions, and deliberate deferral.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Aug 12, 2026
3 skills in this plugin
/architecture-patternsComprehensive reference for software architecture patterns and their Azure implementations (2026 edition). Covers compute architectures (monolith, microservices, serverless, EDA), communication patterns (REST, gRPC, GraphQL, WebSockets, messaging), data architecture (relational, document, vector, lakehouse), secrets management, API gateway and edge, resilience patterns (retry, circuit breaker, saga, outbox), multi-tenancy, observability, security (Zero Trust, IAM, encryption), AI/ML patterns (RAG, LLM gateway, AI agents), and integration patterns. Use when recommending specific Azure services, choosing between architectural patterns, implementing resilience strategies, or building AI-native applications on Azure./software-architectureProduction software architecture reference for Python (FastAPI), Next.js/TypeScript, and Azure at scale. Covers when to use modular monolith vs microservices, API style selection (tRPC/REST/GraphQL/gRPC), Python backend layered architecture with FastAPI + SQLAlchemy + dependency injection, Next.js App Router with Server Components and state management, Azure landing zones and hub-and-spoke networking, zero-downtime migrations with expand-contract, observability with OpenTelemetry, Conway's Law team alignment, and ADRs. Use when advising on architecture decisions, stack selection, migration strategy, or scaling approaches for Python/TypeScript/Azure systems.Other plugins' skills for the same job
npx claudepluginhub theviziusgroup/vibe-engineering-skills --plugin software-architecture