/architecture-skills:vertical-slice-architecturefrom architecture-skills
Guides structuring software around business capabilities and use cases using vertical slices, CQRS, and feature folders. Useful for organizing code by feature rather than technical layers.
Ships in architecture-skills. 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.
Decompose software around business capabilities, workflows, tasks, and explicit use cases. A vertical slice is a logical unit of change, not a mandatory folder layout, endpoint style, framework, or deployment. It may span UI, HTTP, workers, persistence, and message consumers.
PlaceOrder or DispatchShipment.| Concern | Typical location |
|---|---|
| Required fields, shape, format, range | Request boundary or validated type |
| Caller identity, claims, role, permission | Application/request layer |
| Business-valid transition and invariant | Domain model when complexity warrants it |
| Loading, saving, integration, sequencing | Handler/application flow |
| Repeated technical mechanics | Focused pipeline component |
| Caller-specific read shape | Direct query/projection |
Start with a transaction script when logic is local and simple. Extract a domain model when rules repeat across use cases, correctness depends on a lifecycle, handlers call one another to reuse behavior, or conditionals and dependencies obscure the use case.
src/
features/
shipping/
dispatch/
Endpoint
Command
Handler
deliver/
Endpoint
Command
Handler
domain/
Shipment
data/
ShippingStore
File extensions, casing, and the name of the persistence type follow whatever the stack already uses. The shape is what matters, one folder per use case, with the domain and persistence the slices share sitting next to them.
One file containing a complete small slice is equally valid. Optimize for locality and discoverability, not file count.
For a modular monolith, hosts compose modules, modules do not reference one another's implementation, cross-module dependencies use narrow contracts or messages, and contract modules contain no shared implementation. Modules may share physical infrastructure while preserving ownership.
Share code when it has coherent ownership, stable meaning, and demonstrated reuse. Good candidates include tracing primitives, error contracts, outbox mechanics, and a domain model shared by related lifecycle operations. Do not share canonical business entities across unrelated capabilities.
Shared module that accumulates unrelated domain meaning.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vertical-slice, cqrs, feature-folders, task-based-api, code-architecture
Other plugins' skills for the same job
npx claudepluginhub eralmansouri/skills --plugin architecture-skills8 skills in this plugin
/codebase-designUse for code-level module design, deep modules, interfaces, seams, adapters, testability, refactoring shallow modules, and finding architecture improvements in an existing codebase./design-reviewDesign review of a codebase area, branch, or PR. Maps its bounded contexts, vertical slices, and modules, then judges where rules live and whether flexibility sits where change actually happens. Use when the user asks for a design or architecture review, or when a review should judge structure rather than bugs or style./domain-driven-designUse for domain-driven design, domain modeling, ubiquitous language, bounded contexts, aggregates, invariants, entities, value objects, domain services, domain events, and deciding whether a rich domain model is warranted.