Service architecture — monolith, modular monolith and microservices trade-offs, decomposition by bounded context, data ownership per service, synchronous vs asynchronous communication, service contracts, extraction from a monolith, operational prerequisites. Use for service boundary or decomposition decisions (microservices, modular monolith, decomposition, service boundaries, strangler).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Microservices?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-microservices)
---
name: microservices
description: Service architecture — monolith, modular monolith and microservices trade-offs, decomposition by bounded context, data ownership per service, synchronous vs asynchronous communication, service contracts, extraction from a monolith, operational prerequisites. Use for service boundary or decomposition decisions (microservices, modular monolith, decomposition, service boundaries, strangler).
metadata:
category: architecture
---
# Microservices
## Purpose
Choose and shape service boundaries that match team and domain structure without paying needless distribution costs.
**Use when:** deciding how to split or merge services.
**Not for:** deployment mechanics.
## Inputs
- Domain model, team topology, change coupling data.
## Outputs
- Service boundary proposal with data ownership and communication style.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "microservices"` for prior decisions, patterns and anti-patterns.
- [Architecture standard](../../../standards/architecture.md)
## Steps
1. **Prerequisites.** Check operational maturity: CI/CD, observability, on-call.
Done when gaps are listed.
2. **Boundaries.** Derive candidates from bounded contexts and change coupling.
Done when each service owns its data.
3. **Communication.** Prefer async events between services; sync only for queries needing fresh data.
Done when every edge has a style and contract.
4. **Path.** Start modular; extract by criteria (independent scaling, team ownership, release cadence).
Done when extraction criteria are written.
## Best practices
- Modular monolith first for small teams.
- No shared databases between services.
## Common mistakes
- Distributed monolith with chatty sync calls.
- Splitting by technical layer.
## Example
Six-engineer team: modular monolith with enforced module boundaries; billing extracted later when it needed separate scaling.
## Reusable prompt
```text
Apply the Microservices skill (.agents/skills/microservices/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Evaluate prerequisites and propose service or module boundaries, data ownership, communication styles and extraction criteria.
Return: Service boundary proposal with data ownership and communication style..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```