microservices-architecture

microservices-architecture is a skill for Claude Code, Codex from soulcodex/agentic. It costs 61 tokens per session (1,185 once invoked), scanned A, original, MIT.

A design guide for systems made of multiple independently running services, often called microservices. It covers service boundaries, how services communicate, data consistency, API agreements, and resilience.

In plain words
What is it for?
Use it to plan a new microservices system, divide a monolith, choose communication methods, design data ownership, review APIs, and check failure handling.
Why use it?
It helps prevent services from being split along poor boundaries or becoming tightly dependent on one another.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/soulcodex/agentic/microservices-architecture
Any agent
npx skills add soulcodex/agentic --skill microservices-architecture
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for microservices-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/microservices-architecture.svg)](https://agentmods.dev/skills/soulcodex/agentic/microservices-architecture)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/microservices-architecture"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/microservices-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,185 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00061 $0.01185
Opus 5 $0.00030 $0.00593
Sonnet 5 $0.00012 $0.00237
Haiku 4.5 $0.00006 $0.00119

Measured 3d ago against content hash 5aed8cce2fb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

microservices-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/backend/microservices-architecture/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Microservices Architecture Skill

This skill complements (does not replace) the microservices.md fragment. Load the fragment for general principles; use this skill for design decisions.

Step 1 — Service Boundary Analysis

Use Domain-Driven Design bounded contexts to identify service boundaries:

  1. List the core business domains (e.g., Orders, Inventory, Payments, Notifications).
  2. For each domain, identify:
    • The aggregate root (the entity other entities reference through).
    • The invariants that must hold within the domain.
    • The external events the domain publishes when its state changes.
  3. A service boundary aligns with a bounded context. Services should not share a database.

Red flags for a bad boundary:

  • Two services always change together → consider merging them.
  • A service has no domain logic (only CRUD) → it may not need to be a separate service.
  • A service synchronously calls another service on every request → tight coupling.

Step 2 — Communication Pattern Decision

For each service-to-service interaction, choose:

Scenario Pattern Trade-off
Read-your-own-writes, low latency Synchronous REST/gRPC Temporal coupling; caller waits
Background processing, at-least-once Async messaging (SQS, RabbitMQ) Eventual consistency; harder to debug
Event fan-out (multiple consumers) Pub/sub (EventBridge, Kafka) Loose coupling; no direct contract
Streaming / time-series data Kafka / Kinesis High throughput; complex ops

Rule: prefer async messaging for writes across service boundaries. Use sync calls only for reads where the caller genuinely needs the response before proceeding.

Step 3 — Data Consistency Design

You cannot have distributed transactions without accepting trade-offs. Choose:

Saga (choreography or orchestration):

  • Each service publishes an event after its local transaction commits.
  • On failure, compensating transactions undo previous steps.
  • Use the outbox pattern to guarantee event publication.

Read the full file on GitHub · 133 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 133 lines · 61 tokens per session scan A 5aed8cce2fb8

Subscribe to this mod's changes

microservices-architecture is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 3d ago), licensed MIT. It adds 61 tokens to every session and 1,185 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

express-microservices-architecture

Complete guide for building scalable microservices with Express.js including middleware patterns, routing strategies, error handling, production architecture, and deployment best practices.

manutej/luxor-claude-marketplace · 34 tokens

design-debt-audit

Inventory and prioritise accumulated design inconsistencies across a product. Use when drift has built up over time. For token coverage specifically use design-token-audit (designer-toolkit); for WCAG gaps use accessibility-audit (design-systems).

Owl-Listener/designer-skills · 59 tokens

design-impact-reporting

Communicate design's contribution to business and user outcomes in stakeholder language. Use when reporting results upward. For choosing the metrics in the first place, use metrics-definition (ux-strategy).

Owl-Listener/designer-skills · 44 tokens

research-repository

Build a repository that makes findings findable, reusable, and cumulative across teams. Use when the same research keeps getting redone. For synthesising one study, use affinity-diagram.

Owl-Listener/designer-skills · 43 tokens

survey-design

Design unbiased survey instruments — question wording, scales, and sampling — to measure attitudes at scale. Use when you need quantitative breadth. For behavioural experiments, use a-b-test-design (prototyping-testing).

Owl-Listener/designer-skills · 47 tokens

localization-design

Design for multiple languages, writing directions, and cultural contexts — text expansion, RTL mirroring, and locale formats. Use when shipping beyond one locale. For the words themselves, use ux-writing (designer-toolkit).

Owl-Listener/designer-skills · 49 tokens