Command Palette

Search for a command to run...

Назад к скиллам
скилл № 60909

microservices

Use when the user asks about microservices, splitting a monolith, service boundaries, database per service, sagas, service discovery or strangler fig…

БесплатноБез исполняемых скриптов
j4flmaoот j4flmao★ 47 звёзд на GitHub

Установить microservices в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Microservices Architecture

Purpose

Guide microservices decomposition, communication patterns, data ownership, and migration strategies.

Agent Protocol

Trigger

User request includes: microservice, micro-services, service decomposition, distributed system, saga, cqrs, event sourcing, service mesh.

Input Context

  • Business domain description / bounded context map
  • Current monolith architecture (if migrating)
  • Team topology (Conway's Law)
  • Non-functional requirements (latency, throughput, consistency, availability)
  • Technology preferences (message broker, container platform, language)

Output Artifact

A markdown document containing:

  • Service decomposition model (bounded contexts with responsibilities)
  • Communication pattern selection (sync/async/event) per service pair
  • Data ownership strategy (database per service, shared nothing)
  • Infrastructure recommendations (service mesh, API gateway, message broker)
  • Migration strategy (strangler fig, parallel run)

Response Format

Produce the artifact directly. No preamble, no postamble, no explanations. No filler, no hedging, no transitions. Strip articles a/an/the where unambiguous. Compress output — why use many token when few do trick. If monolith is appropriate, output Monolith recommended. Reason: [reason]. and stop.

Completion Criteria

  • Decomposition bounded contexts explicitly mapped to business capabilities
  • Each service pair has communication pattern documented with rationale
  • Data consistency strategy for each transaction spanning services
  • Infrastructure recommendations with concrete tools/versions
  • Migration path with ordered phases

Max Response Length

4096 tokens

Decision Tree

Should You Use Microservices?

What is your situation?
  ├── Small team (<10 devs), early stage product, uncertain domain
  │   └── Monolith recommended. Reason: microservices add accidental complexity before you understand the domain.
  ├── Medium team, well-understood domain, scaling issues in monolith
  │   └── Decompose selectively: extract hot paths first (bounded contexts)
  ├── Large organization, multiple teams, clear domain boundaries
  │   └── Microservices aligned to team topology (Conway's Law)
  └── Migrating from monolith with growing complexity
      └── Strangler Fig: extract one bounded context at a time

How to Decompose?

What boundary defines this service?
  ├── Business capability (orders, payments, shipping)
  │   └── Standard approach: map to business functions
  ├── DDD subdomain (core, supporting, generic)
  │   └── Follow bounded contexts from domain modeling
  ├── Team topology (one team = one or more services)
  │   └── Conway's Law: services mirror communication structure
  └── Data ownership (candidate for extraction)
      └── If a data domain changes independently, it's a decomposition candidate

Communication Pattern Selection

What does the caller need?
  ├── Immediate response, strong consistency, low latency needed
  │   └── Synchronous (HTTP/gRPC) — but beware cascading failures
  ├── Fire-and-forget, eventual consistency OK, decouple in time
  │   └── Async (message queue / event) — resilient, scalable
  ├── Distributed transaction spanning 3+ services
  │   └── Saga orchestration — central coordinator
  ├── Guaranteed event publication DB → broker
  │   └── Transactional outbox — write event in same DB transaction
  └── Need to rebuild state from events or audit trail
      └── Event sourcing — store events as source of truth

Workflow

Step 1: Decompose by Bounded Context

Pattern Approach When
Business Capability Map to business functions (orders, payments, shipping) Clear organizational boundaries
Subdomain Follow DDD bounded contexts Complex domain, multiple subdomains
Strangler Fig Incrementally replace monolith features Brownfield migration
Self-contained Service Service owns its data, API, and logic Least coupling, maximum autonomy

Decomposition rules:

  • Service must be independently deployable
  • Service must own its data exclusively (no shared databases)
  • Service must be team-sizable (2-pizza team)
  • Service communication must be via network calls (no in-process)

Step 2: Select Communication Patterns

Pattern Type Consistency Latency Use Case
Synchronous (HTTP/gRPC) Request-response Strong (if transactional) Higher Queries, commands needing immediate response
Asynchronous (Message Queue) Event-driven Eventual Lower Cross-service notifications, long-running processes
Saga Choreography / Orchestration Eventual Medium Distributed transaction spanning services
Transactional Outbox Reliable event publishing Strong Low + async Guaranteed event delivery with DB transaction

Saga variants:

  • Choreography: Each service publishes events after local
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/communication-patterns.md
  • references/data-patterns.md
  • references/decomposition-patterns.md
  • references/merged-architecture-microservices-patterns.md
  • references/merged-microservice-design-patterns.md
  • references/microservices-communication.md
  • references/microservices-observability.md
  • references/microservices-testing.md

FAQ

Что делает скилл microservices?

Use when the user asks about microservices, splitting a monolith, service boundaries, database per service, sagas, service discovery or strangler fig migration. Produces a decomposition and communication plan (or a monolith verdict). Not for DDD modeling (use architecture-domain-driven-design) or Kubernetes setup (use kubernetes).

Как установить скилл microservices?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл microservices запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить microservices с