/architecture-skills:service-boundariesfrom architecture-skills
Guides decomposition of monoliths into service boundaries using capability mapping, coupling analysis, and incremental extraction. Useful for modular monolith, microservices, and architecture topology decisions.
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.
Design logical ownership before physical topology. A service is the authority over a cohesive set of business capabilities and the data needed to perform them. Repositories, containers, processes, and databases do not prove that a useful boundary exists.
A strong boundary:
Repeated synchronous lookups, shared mutable entities, growing event payloads, cross-boundary transactions, and coordinated releases are warning signals.
| Situation | Default |
|---|---|
| Small team, uncertain domain, frequent boundary changes | Monolith |
| Clear capability ownership without proven deployment need | Modular monolith |
| Proven independent release, scale, isolation, or ownership need | Independently deployed service |
| Different needs by capability | Hybrid |
| Mechanism | Use when | Main cost |
|---|---|---|
| In-process call | Same deployment and immediate result | Technology and behavioral coupling |
| HTTP or gRPC | Immediate answer or external integration | Temporal, latency, availability, and contract coupling |
| Queue command | Deferred directed work or buffering | Delivery, idempotency, failure, and operations |
| Pub/sub event | Independent reactions to a fact | Semantic, schema, broker, and publication coupling |
| Shared database | Deliberately coupled local system | Strong schema and change coupling |
No mechanism removes coupling. Choose the form whose failure and evolution costs match the business requirement.
For a query, decide among client composition, a backend-for-frontend, owner APIs, or a purpose-built projection. For a command decision, first try to move the decision and required data into one ownership and transaction boundary.
Treat replicated state as a cache or projection, never co-authority. Define its freshness, rebuild path, and failure behavior. A synchronous lookup can still be stale before the caller commits.
Sharing a physical database is acceptable when schemas have clear owners and permissions enforce access. Separate databases add value for isolation, scaling, technology, security, backup, or organizational ownership; they are not a ceremonial requirement.
Evolve incrementally: discover boundaries in the current deployment, establish module contracts and owner-only writes, select one capability with a proven deployment benefit, map dependencies, move communication and data gradually, and protect old and new semantics through translation. Consolidation is also a valid architectural evolution.
What SKILL.md sets; muted values are Claude Code's defaults
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.