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

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to plan a new microservices system, divide a monolith, choose communication methods, design data ownership, review APIs, and check failure handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/microservices-architecture
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for microservices-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/microservices-architecture"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/microservices-architecture.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00061 $0.01185
Opus 5.5 $0.00024 $0.00474
Sonnet 5.5 $0.00012 $0.00237
Haiku 4.5 $0.00006 $0.00119

Measured 1mo ago against content hash 5aed8cce2fb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 1mo ago), licensed MIT. It adds 61 tokens to every session and 1,185 once invoked, about $0.0002 per session on Opus 5.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

review-animations

Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

termio-sh/termio · 34 tokens

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

desktop-brand-builder

Generate a branded Qwen Code desktop package from the Tauri desktop shell using a minimal brandId and logo. Use when the user wants a custom, white-label, or rebranded desktop client, installer, DMG/EXE/AppImage/deb, or one-click brand build on top of packages/desktop.

QwenLM/qwen-code · 68 tokens

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

crit-story

Author a crit story and continue the interactive review loop only when the user explicitly invokes crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.

tomasz-tomczyk/crit · 47 tokens

product-research

Find and compare current FF&E candidates from a design brief, with sourced purchasing facts and optional CSV-library save. Use to research or source products; not to match from an image or pair coordinating items.

AlpacaLabsLLC/skills-for-architects · 44 tokens