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.
npx agentmods add skills/svngoku/coding-agents-skills/microservices-patternsnpx skills add svngoku/coding-agents-skills --skill microservices-patternsgit clone --depth 1 https://github.com/svngoku/coding-agents-skillsWrote 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.
[](https://agentmods.dev/skills/svngoku/coding-agents-skills/microservices-patterns)<a href="https://agentmods.dev/skills/svngoku/coding-agents-skills/microservices-patterns"><img src="https://agentmods.dev/badge/skills/svngoku/coding-agents-skills/microservices-patterns.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00121 | $0.03862 |
| Opus 5 | $0.00060 | $0.01931 |
| Sonnet 5 | $0.00024 | $0.00772 |
| Haiku 4.5 | $0.00012 | $0.00386 |
Grade A, and why
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Microservices Patterns
Microservices split a system into small, independently deployable services, each owned by one team and owning its own data. The value is organizational: independent deploys, independent scaling, and a contained blast radius — but every one of those wins comes with a distributed-systems tax: cross-service consistency, partial failure, and contract drift. This skill is the playbook for paying that tax deliberately: deciding whether decomposition is warranted, finding the boundaries, and applying the canonical patterns for communication, consistency, resilience, observability, testing, and deployment.
Quick Reference
| Topic | Reference |
|---|---|
| Sagas, compensating actions, and the outbox pattern | saga-outbox.md |
| Timeouts, retries, circuit breakers, bulkheads, load shedding | resilience-patterns.md |
| Structured logs, RED metrics, OpenTelemetry tracing, health probes | observability-tracing.md |
Core Workflow
Use this sequence whenever you are architecting or re-architecting toward microservices:
- Decide — confirm decomposition is warranted using the decision table below; if not, design a modular monolith instead.
- Find boundaries — map subdomains and bounded contexts; one service per context (or per core subdomain).
- Choose communication — per service relationship, pick async events, messages, or sync request/reply.
- Make data consistent — where a business operation spans services, design a saga; use the outbox pattern for reliable event publishing.
- Harden every call — timeouts, retries, circuit breakers, bulkheads around each dependency.
- Make it observable — structured logs with trace IDs, RED metrics, distributed tracing, health/readiness endpoints.
- Protect the contracts — contract tests (e.g., Pact) between producers and consumers; per-service test strategy.
- Deploy independently — per-service pipelines, feature flags, canary releases.
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 268 lines · 121 tokens per session scan A 0d979b8d2b62
microservices-patterns is a skill published in the GitHub repository svngoku/coding-agents-skills (9 stars, last pushed 21d ago), licensed MIT. It adds 121 tokens to every session and 3,862 once invoked, about $0.0006 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.
Other skills, from other repositories
skill-authoring
Author SKILL.md skills: frontmatter, validator limits, structure.
iflytek-hyper-tts
Use when user asks to synthesize speech, convert text to audio, or read text aloud. 讯飞超拟人语音合成 - 支持文本转语音、语音合成(发音人/语速/语调/音量/输出格式)。大模型语音合成技能。语音合成, 文字转语音, 超拟人, TTS.
iflytek-pdf-image-ocr
AI-powered OCR service for images and PDF documents using iFlytek's advanced recognition APIs.
iflytek-text-proofread
Proofread Chinese text using iFlytek's Official Document Proofreading API (公文校对). Detects 27 types of errors across three categories.
iflytek-translate
Translate text using iFlytek's Machine Translation API (机器翻译). Supports 70+ language pairs.
iflytek-video-translate
Use when user asks to translate videos, dub video content, or localize videos into other languages. Translate videos with AI-powered dubbing using iFlytek (Xfei) Video Translation API. Supports video language translation, voice dubbing, multilingual video localization, 视频翻译, 视频配音, 视频本地化. Features task creation, task…