Microservices Patterns skill for Claude

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns.

When Claude uses it

Use when building distributed systems, decomposing monoliths, or implementing microservices.

Microservices Patterns SKILL.md

The full skill file from wshobson/agents (MIT).

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.

How to install Microservices Patterns

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/backend-development/skills/microservices-patterns#main ~/.claude/skills/microservices-patterns

Codex

npx degit wshobson/agents/plugins/backend-development/skills/microservices-patterns#main ~/.codex/skills/microservices-patterns

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Microservices Patterns skill do?

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

+How do I install Microservices Patterns in Claude Code?

Copy the skill folder into ~/.claude/skills/microservices-patterns, for example with "npx degit wshobson/agents/plugins/backend-development/skills/microservices-patterns#main ~/.claude/skills/microservices-patterns". Claude Code loads it automatically and uses it when a task matches.

+Does Microservices Patterns work with ChatGPT or Codex?

Yes. Microservices Patterns uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/microservices-patterns. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Microservices Patterns free?

Microservices Patterns is published on GitHub by wshobson under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Modern Javascript Patterns

    Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and…

    wshobson/agents★ 43k
  5. Nextjs App Router Patterns

    Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching.

    wshobson/agents★ 43k
  6. Nodejs Backend Patterns

    Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication,…

    wshobson/agents★ 43k
  7. Nx Workspace Patterns

    Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or…

    wshobson/agents★ 43k
  8. Openapi Spec Generation

    Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns.

    wshobson/agents★ 43k
  9. Parallel Debugging

    Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration.

    wshobson/agents★ 43k

See all software development skills →

More skills from wshobson

  1. Ml Pipeline Workflow

    Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment.

    wshobson/agents★ 43k
  2. Mobile Android Design

    Master Material Design 3 and Jetpack Compose patterns for building native Android apps.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.