agentleFS
OneDro1dOneDro1d/dark-factory/skills/microservices-architect/SKILL.md

microservices-architect

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Design and architect microservices following Chris Richardson's Microservices Patterns. Use when designing services, APIs, data flows, or evaluating architecture decisions. Guides full workflow from feature intake to production-ready design with observability, async patterns, security, testing, and deployment strategies.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ui-ux-pro-max.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When designing microservices, default to:

    line 67
  2. Distinctive:

    Treat exceptions as exceptions

    line 84
  3. Distinctive:

    If there is ambiguity, choose the safer path and emit insight

    line 85

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Microservices Architect

Design production-ready microservices following Chris Richardson's Microservices Patterns with battle-tested principles for observability, reliability, and operability.

Overview

This skill guides you through microservices design with a focus on:

  • Operability over cleverness — Systems we can run, trust, and evolve
  • Observability first — If you can't see it, you can't trust it
  • Async by default — Pub/sub patterns for resilience
  • Explicit trust — Security and authorization built-in

Prime Directives (Non-Negotiables)

These are the rules every microservices design must follow. Exceptions require explicit justification.

#DirectiveMeaning
1Nothing unwatched existsShip observability with every feature. Know before customers.
2Produce it → publish it. Consume it → consume allClient-side filtering; wire is a consistent, schema'd data space
3Pub/sub by defaultPrefer event-driven; route through wireline formats quickly
4Async by default; sync only when unavoidablePub/sub default; sync only for ACID/idempotency; isolate with feature flags
5Trust must be explicit, scoped, and observableAuthenticate everything; authorize narrowly; emit signals on failures
6Customers report it first = failureBreaks happen; surprise is the failure. Detect before impact.
7Observability over performanceAccept 20-30% overhead to eliminate blind spots
8Siloing/bulkheading by designNot using bulkheads = deployment choice. Not supporting them = architecture failure
9Explicit Runtime Trust ProfileTime-bound, observable, revocable trust; policy via profiles, not patches
10Operational knobs must be exposedExpose the control, inputs, and effects. Operating > building

Design Workflow

For every feature request, produce these outputs:

1. Design

  • Message flows and sequence diagrams
  • Schemas (events, commands, queries)
  • Idempotency strategy
  • Failure modes and recovery

2. Operability

  • What to observe (metrics, logs, traces)
  • Alerting signals and thresholds
  • Operational "knobs" (feature flags, circuit breakers, rate limits)

3. Safety

  • Containment/bulkheading strategy
  • Blast radius analysis
  • Rollback plan

4. Tests

  • Operational tests that validate behavior + observability
  • Consumer-driven contract tests
  • Component integration tests

5. Implementation Plan

  • Small, incremental steps
  • Strangler fig approach for refactoring
  • Emit insight events describing changes

Operating Stance

When designing microservices, default to:

┌─────────────────────────────────────────────────────────────┐
│  Pub/sub by default                                         │
│  Async by default                                           │
│  Sync only when unavoidable → isolate behind interfaces     │
│  "Nothing unwatched exists"                                 │
│  "If customers report it first, we have already failed"    │
│  Bulkheading/siloing must be possible by design             │
│  Security/trust is explicit and scoped                      │
└─────────────────────────────────────────────────────────────┘

Style

  • Be direct
  • Treat exceptions as exceptions
  • If there is ambiguity, choose the safer path and emit insight
  • Refactoring steps emit insight events (what changed, what diverged, what decision was taken)

Supporting Files

  • AXIOMS.md — Core architectural principles
  • PATTERNS.md — Detailed Richardson patterns
  • TEMPLATES.md — Feature intake and design output templates
  • CHECKLIST.md — Quality validation checklist

Quick Pattern Reference

CategoryPatterns
Data & QueryAPI Composition, Materialized View, CQRS
External APIsAPI Gateway, Backend-for-Frontend (BFF), Protocol Handler
TestingConsumer-Driven Contracts, Component Testing, Operational Testing
DeploymentBlue-Green, Canary, Strangler Fig, Continuous Delivery
ObservabilityHealth Checks, Distributed Tracing, Log Aggregation, Alerting
SecurityZero Trust, Runtime Trust Profile, Trust-as-Actor
ResilienceCircuit Breaker, Bulkhead, Retry with Backoff

Trigger Phrases

This skill activates when you:

  • "Design a microservice for..."
  • "Architect a service that..."
  • "Review this service design"
  • "What patterns should I use for..."
  • "Help me decompose this monolith"
  • "Create an API for..."
  • "Design the data flow for..."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.