agentleFS
peterbamuhigirepeterbamuhigire/chwezi-dev-engine/skills/architecture/microservices-architecture/SKILL.md

microservices-architecture

Skill31 starsChanged 18 days agoMITView on GitHub

Use when designing, reviewing, or refactoring microservice boundaries, communication, service ownership, deployment independence, resilience, and distributed data flows. Load absorbed microservices fundamentals, models, communication, and resilience references as needed.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this parent skill as the active microservices entrypoint.

    line 14
  2. Very specific:

    Start with system-architecture-design and distributed-systems-patterns for context, constraints, and failure modes.

    line 34
  3. Distinctive:

    Do not split services without a clear ownership, deployment, data, and reliability reason.

    line 44
  4. Distinctive:

    Every service boundary must define source of truth, API contract, failure mode, observability, and rollback path.

    line 45
  5. Distinctive:

    Prefer fewer services until team topology, data ownership, and release cadence justify more.

    line 46
  6. Distinctive:

    If ownership or runtime evidence is unavailable, provide a read-only candidate map and retain a modular monolith as the default.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Architecture

Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.

Use this parent skill as the active microservices entrypoint. It should help decide whether microservices are justified, then shape service boundaries and operating contracts when they are.

<!-- dual-compat-start -->

Use When

  • Defining service boundaries, ownership, API contracts, data ownership, deployment independence, or migration from a monolith.
  • Reviewing synchronous and asynchronous service communication, reliability, retries, idempotency, and failure isolation.
  • Creating a target architecture for teams that need multiple independently deployable backend services.

Do Not Use When

  • The task is unrelated to this parent skill or is better handled by a narrower active parent named in the workflow.
  • The request only needs a trivial answer and no reference module needs to be loaded.

Required Inputs

  • Gather the concrete system, repository, environment, constraints, and deliverable before loading references.
  • Identify which absorbed reference file is needed; do not load every migrated reference by default.

Workflow

  1. Start with system-architecture-design and distributed-systems-patterns for context, constraints, and failure modes.
  2. Load only the needed reference:
    • references/microservices-fundamentals.md for core principles and when not to split.
    • references/microservices-architecture-models.md for decomposition and ownership models.
    • references/microservices-communication.md for API, event, queue, and contract patterns.
    • references/microservices-resilience.md for retries, circuit breakers, idempotency, and graceful degradation.
  3. Pair with api-design-first, database-design-engineering, deployment-release-engineering, and observability-monitoring for implementation contracts.

Quality Standards

  • Do not split services without a clear ownership, deployment, data, and reliability reason.
  • Every service boundary must define source of truth, API contract, failure mode, observability, and rollback path.
  • Prefer fewer services until team topology, data ownership, and release cadence justify more.

Anti-Patterns

  • Treating absorbed reference files as active skills or separate routing entrypoints.
  • Loading every migrated child reference instead of the one that matches the task.
  • Producing generic advice without constraints, evidence, or next verification steps.

Outputs

  • Service map, boundary decision, API/event contract notes, migration plan, or architecture review.

References

  • Load only the references/<old-skill>.md files named in the workflow when their depth is required.

Evidence Produced

CategoryArtifactFormatExample
CorrectnessService-boundary and dependency decision recordMarkdown/diagramcapability owner, data authority, contract, failure mode, coupling, and rollback
<!-- dual-compat-end -->

Inputs

InputRequiredPurpose
Domain capabilities and ownershipyesDraw boundaries
Workload and availability targetsyesSet communication tradeoffs
Data ownership and change constraintsyesPlan migration

Capability contract

Recommend boundaries and migration sequences by default. Do not split repositories, databases, deployments, or production traffic without explicit change authority.

Degraded mode

If ownership or runtime evidence is unavailable, provide a read-only candidate map and retain a modular monolith as the default.

Decision rules

ConditionAction
Independent scale or ownership absentKeep a module
Cross-service transaction requiredRedesign or specify a saga
Extraction lacks rollbackBlock migration

Domain Anti-Patterns

  • Splitting by technical layer. Fix: split by business capability.
  • Sharing tables between services. Fix: assign one data owner.
  • Building long synchronous chains. Fix: shorten or decouple them.
  • Treating a broker as transaction magic. Fix: define compensation.
  • Creating services without owners. Fix: record ownership first.

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.