microservices

A set of design patterns for splitting an application into small services that can be deployed independently. Each service handles a business area, owns its data, and communicates through APIs or events.

In plain words
What is it for?
Use it to design services for areas such as users, orders, payments, and shipping, using REST, gRPC, message queues, or event streams.
Why use it?
It helps teams decide where service boundaries belong and how services should handle communication, failures, scaling, and monitoring.

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/plazmodium/odin-workflow/microservices
Any agent
npx skills add Plazmodium/odin-workflow --skill microservices
Clone the repo
git clone --depth 1 https://github.com/Plazmodium/odin-workflow

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,125 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.00018 $0.01125
Opus 5 $0.00009 $0.00562
Sonnet 5 $0.00004 $0.00225
Haiku 4.5 $0.00002 $0.00112

Measured yesterday against content hash ded3de06bff0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

microservices 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 yesterday.

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.

agents/skills/architecture/microservices/SKILL.md · 144 lines

How it starts

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

Microservices Architecture

Overview

Microservices decompose an application into small, independently deployable services organized around business capabilities. Each service owns its data and communicates via APIs or events.

Service Design

Service Boundaries

✅ Good boundaries (aligned with business capabilities):
┌──────────┐  ┌───────────┐  ┌──────────┐  ┌───────────┐
│  Users   │  │  Orders   │  │ Payments │  │ Shipping  │
│          │  │           │  │          │  │           │
│ - Auth   │  │ - Cart    │  │ - Charge │  │ - Track   │
│ - Profile│  │ - Checkout│  │ - Refund │  │ - Fulfill │
│ - Prefs  │  │ - History │  │ - Ledger │  │ - Label   │
└──────────┘  └───────────┘  └──────────┘  └───────────┘

❌ Bad boundaries (tech layers):
┌──────────┐  ┌───────────┐  ┌──────────┐
│ Frontend │  │  Backend  │  │ Database │  ← Not microservices
└──────────┘  └───────────┘  └──────────┘

Communication

Synchronous (request/response):
  REST API   — Simple CRUD, public APIs
  gRPC       — Internal service-to-service, streaming

Asynchronous (event-driven):
  Message Queue (RabbitMQ, SQS) — Task processing, commands
  Event Stream (Kafka)          — Event sourcing, data sync

Core Patterns

API Gateway

# Route external requests to internal services
routes:
  /api/users/*:    upstream: http://user-service:3000
  /api/orders/*:   upstream: http://order-service:3000
  /api/payments/*: upstream: http://payment-service:3000

# Cross-cutting concerns at the gateway:
# - Authentication / JWT validation
# - Rate limiting
# - Request logging
# - Response caching

Service Communication

// Sync: REST with circuit breaker
import CircuitBreaker from 'opossum';

const paymentBreaker = new CircuitBreaker(
  async (orderId: string) => {
    return fetch(`http://payment-service/charges/${orderId}`);
  },
  { timeout: 3000, errorThresholdPercentage: 50, resetTimeout: 30000 }
);

// Fallback when circuit is open
paymentBreaker.fallback(() => ({ status: 'pending', message: 'Payment service unavailable' }));

Read the full file on GitHub · 144 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. yesterday First seen · 144 lines · 18 tokens per session scan A ded3de06bff0

Subscribe to this mod's changes

microservices is a skill published in the GitHub repository Plazmodium/odin-workflow (0 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 1,125 once invoked, about $0.0001 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-09-01.

Related

Other skills, from other repositories

learn

Guided, hands-on course teaching architects how to use Codex or Claude Code — six short modules, each built around an exercise on a bundled sandbox project (a fictional Brooklyn art museum expansion). Resumable across sessions via PROGRESS.md. Use when the user runs $learn or /as:learn, says they're new to AI-assisted…

AlpacaLabsLLC/skills-for-architects · 80 tokens

studio

Architecture Studio control plane — initialize or inspect a studio workspace, create and register projects, or route an architecture/AEC task to the right agent or skill. Use when the user runs /as:studio, asks to set up or open their studio, manage its projects, or describes a task without naming a skill.

AlpacaLabsLLC/skills-for-architects · 65 tokens

epd-to-spec

Write CSI specification language for EPD submittals and sourced GWP limits. Use to add embodied-carbon or EPD requirements to specs; not to parse, find, or compare EPDs.

AlpacaLabsLLC/skills-for-architects · 45 tokens

occupancy-calculator

Calculate code occupant loads by area with gross/net factors and jurisdiction checks. Use for "how many people can this space hold," IBC Table 1004.5, egress inputs, or occupancy-load reports; not for workplace headcount planning.

AlpacaLabsLLC/skills-for-architects · 55 tokens

zoning-analysis-nyc

Analyze NYC lot zoning, FAR, height, setbacks, uses, and buildable envelope from PLUTO and the Zoning Resolution. Use for "what can I build"; use nyc-bsa for relief and zoning-envelope for 3D visualization.

AlpacaLabsLLC/skills-for-architects · 57 tokens

workplace-programmer

Build office space programs through guided workplace strategy: area splits, room schedules, and planned seat counts. Use to program or size a workplace; not for code occupant-load calculations.

AlpacaLabsLLC/skills-for-architects · 40 tokens