/waris-skill-library:warisskill-system-design-distributed-patternsfrom waris-skill-library
Use when a system already is distributed (client project with existing microservices, multiple deployables, or a message bus) or when deciding whether to introduce distribution into a currently-monolithic system — splitting a service, adding a queue, introducing eventual consistency, or coordinating a multi-step process across ownership boundaries. Trigger on explicit distributed-systems work, or when a design conversation reaches for "microservice," "event-driven," "saga," "eventual consistency," or "message queue." For a system that is NOT yet distributed, this skill's first job is the gate below, not applying a pattern.
Ships in waris-skill-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Most systems should stay a modular monolith (clear internal boundaries via
warisskill-system-design-domain-modeling, but one deployable) until a
concrete trigger forces distribution. Reach for a distributed pattern only
when one of these is actually true, not speculatively:
If none of these apply, the answer is "stay a monolith" — say so explicitly rather than defaulting to distributed patterns because the project or conversation is about system design.
If the project already arrives distributed (existing client system with microservices already in place), skip the gate — work within what's already there.
Draw service boundaries around the trigger that justified splitting, not around generic layers (don't split "the API service" and "the database service" — that's a distributed monolith, not microservices). A service boundary should map to a real ownership or scaling boundary from the gate above.
When a business process spans services and can't be one transaction:
Reserve for when the trigger genuinely calls for it — an audit trail of every state change is a real business requirement, or read/write load patterns are different enough that separate models pay off. Both add substantial complexity (event replay, eventual consistency between read models) — don't introduce them just because a system is already distributed; distribution and event-sourcing are separate decisions.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sodiqabdulwaris/waris-skill-library --plugin waris-skill-library129 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./browser-testing-with-devtoolsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured./ci-cd-and-automationAutomates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./code-simplificationSimplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity./constraint-driven-developmentEstablishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.