architecture-microservices-patterns

architecture-microservices-patterns is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 150 tokens per session (2,050 once invoked), scanned A, original, MIT.

A guide to microservices architecture patterns, where an application is split into separate services that communicate over a network. It covers Sagas for coordinating multi-service operations and circuit breakers for limiting failures.

In plain words
What is it for?
Use it to design transaction workflows across services, coordinate rollback actions, detect unhealthy dependencies, block repeated failing calls, and provide fallback errors.
Why use it?
It helps address distributed state, partial failures, and cascading outages that can occur when services depend on one another.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design transaction workflows across services, coordinate rollback actions, detect unhealthy dependencies, block repeated failing calls, and provide fallback errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/microservices-patterns
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 j4flmao/agent-skills --skill microservices-patterns
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

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 architecture-microservices-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/microservices-patterns/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/microservices-patterns)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/microservices-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/microservices-patterns/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 architecture-microservices-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/microservices-patterns"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/microservices-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,050 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.00150 $0.02050
Opus 5.5 $0.00060 $0.00820
Sonnet 5.5 $0.00030 $0.00410
Haiku 4.5 $0.00015 $0.00205

Measured 1mo ago against content hash 21dcfb3c05b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-microservices-patterns 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/architecture/system-design/microservices-patterns/SKILL.md · 185 lines

How it starts

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

Microservices Architecture Patterns

Purpose

Microservices buy independent deployment and scaling per business capability at the cost of distributed-systems complexity: partial failure, network latency, eventual consistency, and operational overhead. This skill covers when that trade is worth it and the patterns that keep a service landscape from becoming a distributed monolith.

Agent Protocol

Trigger

"microservices", "service decomposition", "monolith to microservices", "saga", "compensating transaction", "circuit breaker", "bulkhead", "API gateway", "database per service", "strangler fig".

Input Context

  • Team count and structure; deployment frequency pain.
  • Domain map / bounded contexts.
  • Current architecture and data model; cross-entity transactions.
  • SLOs and traffic patterns.

Output Artifact

Decomposition proposal, per-service data ownership, interaction style per flow, resilience policy table, migration plan.

Response Format

Decision: {modular monolith|microservices} because {reason}
Services: {name}: capability, owns {data}, team {x}
Flow {name}: {sync|async} via {REST|gRPC|events}; consistency {saga orchestration|choreography}
Resilience per call: timeout={ms} retries={n, backoff+jitter, idempotent?} breaker={threshold}
Migration: strangler step {n}: route {path} -> {service}

Completion Criteria

  • Services aligned to business capabilities/bounded contexts.
  • Each service owns its data; no shared tables.
  • Every remote call has timeout; retries only on idempotent operations.
  • Multi-service business transactions modeled as sagas with compensations.
  • Observability: tracing across services, per-service SLOs.

When (Not) to Use

Situation Recommendation
Small team, unclear domain Modular monolith with enforced module boundaries
Many teams blocked by shared deploys Extract services along team/capability lines
One component with very different scaling/runtime needs Extract that component only
Desire for "modern architecture" Not a reason

Read the full file on GitHub · 185 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 Changed · +142 lines · +150 tokens per session 21dcfb3c05b1
  2. 3mo ago First seen · 43 lines · 0 tokens per session scan A ad536079bc0f

Subscribe to this mod's changes

architecture-microservices-patterns is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 150 tokens to every session and 2,050 once invoked, about $0.0006 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-30.

Related

architecture-microservices-patterns compared with skills from other repositories

architecture-microservices-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-microservices-patternsj4flmao/agent-skillsSkill4717d agoMITA150Claude Code, Codex
microservices-patternsfindscripter/everything-skillsSkill14todaynoneA128Claude Code
microservice-granularity-optimizerbookforge-ai/bookforge-skillsSkill437mo agoCC-BY-SA-4.0A170Claude Code
error-handlingericrisco/rsc-harnessSkill7072d agoMITA78Claude Code, Codex
architecture-patternsaAAaqwq/AGI-Super-TeamSkill1242d agoMITA10Claude Code
architecture-paradigm-microservicesathola/claude-night-marketSkill358yesterdayMITA33Claude Code
architecture-paradigm-event-drivenathola/claude-night-marketSkill358yesterdayMITA29Claude Code