MI

microservices-patterns

Implement microservices patterns like service decomposition, event-driven communication, and resilience.

Install

mkdir -p .claude/skills/microservices-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/137" && unzip -o skill.zip -d .claude/skills/microservices-patterns && rm skill.zip

Installs to .claude/skills/microservices-patterns

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.
205 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Decompose monolithic systems into business-aligned services
  • Implement inter-service communication via REST or events
  • Manage distributed data consistency using the Saga pattern
  • Apply resilience patterns like circuit breakers and bulkheads
  • Design service boundaries using domain-driven design

How it works

The skill provides architectural patterns for distributed systems, focusing on bounded contexts and decoupling. It guides the user through selecting appropriate communication and data management strategies based on business needs.

Inputs & outputs

You give it
Monolithic architecture or business requirement
You get back
A proposed microservices design with communication and resilience patterns

When to use microservices-patterns

  • Decompose a monolithic codebase into microservices
  • Design inter-service communication via events or REST
  • Implement resilience patterns like circuit breakers
  • Manage distributed data with the Saga pattern

About this skill

Microservices Patterns

Master microservices architecture patterns including service boundaries, inter-service communication, data management, and resilience patterns for building distributed systems.

When to Use This Skill

  • Decomposing monoliths into microservices
  • Designing service boundaries and contracts
  • Implementing inter-service communication
  • Managing distributed data and transactions
  • Building resilient distributed systems
  • Implementing service discovery and load balancing
  • Designing event-driven architectures

Core Concepts

1. Service Decomposition Strategies

By Business Capability

  • Organize services around business functions
  • Each service owns its domain
  • Example: OrderService, PaymentService, InventoryService

By Subdomain (DDD)

  • Core domain, supporting subdomains
  • Bounded contexts map to services
  • Clear ownership and responsibility

Strangler Fig Pattern

  • Gradually extract from monolith
  • New functionality as microservices
  • Proxy routes to old/new systems

2. Communication Patterns

Synchronous (Request/Response)

  • REST APIs
  • gRPC
  • GraphQL

Asynchronous (Events/Messages)

  • Event streaming (Kafka)
  • Message queues (RabbitMQ, SQS)
  • Pub/Sub patterns

3. Data Management

Database Per Service

  • Each service owns its data
  • No shared databases
  • Loose coupling

Saga Pattern

  • Distributed transactions
  • Compensating actions
  • Eventual consistency

4. Resilience Patterns

Circuit Breaker

  • Fail fast on repeated errors
  • Prevent cascade failures

Retry with Backoff

  • Transient fault handling
  • Exponential backoff

Bulkhead

  • Isolate resources
  • Limit impact of failures

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

When not to use it

  • When the system complexity does not justify distributed architecture
  • When strong ACID transactions are required across all operations

Limitations

  • Requires careful planning to avoid distributed system complexity
  • Does not provide code-level implementation for all patterns

How it compares

It offers a structured approach to architectural decomposition rather than ad-hoc service splitting.

Compared to similar skills

microservices-patterns side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
microservices-patterns (this skill)62moNo flagsAdvanced
software-architecture3336moNo flagsIntermediate
architect-review1094moNo flagsAdvanced
mcp-builder1363moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by wshobson

View all by wshobson

You might also like

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

architect-review

sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

109320

mcp-builder

anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

136215

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

codex

Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

32238

architecture-patterns

wshobson

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use when architecting complex backend systems or refactoring existing applications for better maintainability.

55214

Search skills

Search the agent skills registry