system-design

Installation
SKILL.md

Skill: System Design

The area-level companion to the architect role — sr-back proposes with this discipline, architect ratifies via ADR. Infra counterpart: platform-architecture.

Decomposition (the expensive decision)

  1. Modular monolith is the default — clear internal module boundaries, enforced interfaces. Distribution (services) must be justified by a named forcing function: independent scaling, independent deploy cadence, team boundaries, isolation requirements. "Microservices because modern" fails deliberation.
  2. Split by domain boundary (bounded context), never by technical layer — a "database service" is an anti-pattern; an "orders service" owns its data.
  3. Every network boundary you add buys you: latency, partial failure, eventual consistency, versioned contracts, ops burden. Write that cost into the ADR before splitting.

Communication

Sync (request/response) for queries the caller must wait on · async events (see async-jobs) for facts other contexts react to · eventual consistency is a product decision — surface it to the human ("the count may lag by seconds — acceptable?"), never silently assume. Contracts are versioned and additive-first (see api-design §versioning); consumers tolerate unknown fields.

Scale (in order)

Measure first (see observability — p95/p99, not averages) → stateless services scale out; state is the real bottleneck → push state to stores built for it → cache deliberately (see caching) → estimate with numbers before architecting: back-of-envelope QPS/storage/growth in the ADR. Optimizing for imagined scale fails review; so does ignoring stated scale requirements from the PRD.

Installs
1
GitHub Stars
6
First Seen
Nov 6, 2026