/role-based-practices-skills:system-design-technology-selection-and-decision-recordsfrom role-based-practices-skills
Guides system-wide architecture design, technology evaluation/selection using a real framework, and writing ADRs that capture genuine reasoning and organizational constraints.
Ships in role-based-practices-skills. 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.
Architect-level work operates one level above sequencing a single team's roadmap (the lead-level work in technical-roadmap-ownership-and-cross-team-coordination): it sets the constraints multiple teams design within, chooses the technologies those teams will live with for years, and is responsible for whether those choices actually fit the organization that has to operate them — not just whether they look correct on a whiteboard. A technology picked because it's popular, or an architecture designed to the textbook ideal while ignoring the team's actual operational maturity, both fail in the same way: they work in the proof-of-concept and then become an expensive, hard-to-reverse mismatch once real teams have to run them at scale. An Architecture Decision Record (ADR) written honestly, at the time a decision is made, is what makes that decision legible and reversible-in-principle for whoever inherits it later — an ADR written after the fact to justify a decision already made is not a decision record, it's a rationalization, and it fails the one job an ADR actually has. This skill covers system-wide design across team/service boundaries, a real technology-selection framework, writing ADRs that capture genuine reasoning, and deliberately weighing organizational constraints against architectural ideals rather than picking one and ignoring the other.
docs/adr/ directory in the
relevant repo, an architecture wiki with version history) that the
whole organization — not just the authoring team — can find and read.State the actual requirements before comparing options — scale (current and a realistic multi-year projection, not an aspirational one), consistency/availability needs, latency budget, data volume and growth rate, and any hard compliance/data-residency constraints. Requirements gathered after a preferred technology is already chosen tend to describe that technology's strengths rather than the system's actual needs.
Use a real technology-selection framework, not a preference vote:
# Technology selection: event streaming for order-events
## Requirements
- Sustained throughput: ~2,000 events/sec, burst to 8,000/sec during
sales events.
- At-least-once delivery acceptable; consumers are idempotent.
- Retention: 7 days for replay during consumer outages.
- Must integrate with existing AWS infrastructure (no new cloud
provider).
## Options considered
| Option | Fit to requirements | Team familiarity | Operational burden | Est. 3-yr TCO |
|---|---|---|---|---|
| Amazon MSK (managed Kafka) | Strong (throughput, retention) | Low — no team has run Kafka | Medium (managed, but still needs Kafka expertise) | $$$ (infra + ramp-up time) |
| Amazon SQS + SNS fan-out | Adequate (meets throughput, weaker replay semantics) | High — already used elsewhere | Low | $ |
| Self-hosted Kafka on EKS | Strong | Low | High (full operational ownership) | $$$$ |
## Proof-of-concept criteria (defined before running the PoC)
- Sustain 8,000 events/sec burst for 10 minutes with <1% consumer lag
growth.
- Consumer restart after a 30-minute outage catches up within 15
minutes from retained events.
- Team can stand up a working producer/consumer pair within 2 days
using only public documentation (a proxy for operational
learnability).
## Decision
Amazon MSK, contingent on the PoC criteria above passing. SQS/SNS
rejected on replay semantics (no real retention/replay); self-hosted
Kafka rejected on operational burden — no team currently has the
on-call capacity to run Kafka's own operational surface (broker
failure, partition rebalancing) on top of everything else they own.
Total cost of ownership must include the ongoing operational burden (on-call load, expertise the team needs to build or hire, upgrade/ patching overhead) — not just licensing or infrastructure spend — since an operationally expensive choice shows up as toil and incidents long after the initial build cost is forgotten.
Run the proof-of-concept against criteria defined in advance (step 2), not criteria adjusted afterward to fit whichever option already "won" internally — a PoC whose success criteria are decided after seeing the results isn't evidence, it's a formality.
Explicitly weigh organizational and team-maturity constraints against the architecturally "ideal" choice, and say so in the decision. The textbook-best architecture for a problem, run by a team that doesn't yet have the operational maturity to run it safely, is frequently the worse real-world choice than a simpler design the team can actually operate reliably — state this trade-off explicitly rather than silently picking the "correct" answer and letting the operational gap surface later as recurring incidents.
Design system boundaries around team/service ownership that will actually hold, not an idealized decomposition that ignores which team can realistically own which piece — a beautifully decomposed set of microservices that no team is staffed to operate individually is a worse outcome than a coarser boundary matched to real team capacity, echoing the "thinnest viable" sizing discipline in platform-engineering-team-topology-and-operating-model.
Write the ADR at decision time, not after the fact, using a consistent template:
# ADR 0007: Use Amazon MSK for order-events streaming
## Status
Accepted (2026-07-28)
## Context
order-events currently fan out via direct service-to-service HTTP
calls, causing cascading failures when a downstream consumer is slow
or down. We need durable, replayable, at-least-once delivery for
~2,000 events/sec sustained, 8,000/sec burst, with 7-day retention for
consumer-outage recovery.
## Decision
Adopt Amazon MSK (managed Kafka) as the event-streaming backbone for
order-events, replacing direct HTTP fan-out.
## Alternatives considered
- SQS + SNS fan-out: rejected — no real replay/retention semantics
for a 30+ minute consumer outage.
- Self-hosted Kafka on EKS: rejected — no team currently has on-call
capacity for broker/partition operational burden; revisit if a
platform team forms with that capacity.
## Consequences
- Producers/consumers must implement idempotent processing (at-least-
once delivery, not exactly-once).
- Introduces a new operational dependency (MSK) requiring on-call
familiarity; a Kafka fundamentals runbook and on-call training are
required before this ships to production (tracked in
`PLAT-4821`).
- Reversible in principle by migrating consumers back to direct calls
or another queue, but at real migration cost — this is not a
trivially reversible decision, factored into the confidence level
of this ADR.
## Confirmed by proof-of-concept
Burst throughput, consumer-lag-recovery, and team-learnability
criteria (see technology-selection note) all passed on `<PoC date>`.
An ADR's Context section should describe the situation as it actually was when the decision was made — including uncertainty, the alternatives seriously considered, and what wasn't yet known — because that is exactly the information a future reader needs and the thing "after the fact" writing loses.
Store ADRs where they'll actually be found later (a versioned
docs/adr/ directory, numbered sequentially, indexed) and mark
superseded ADRs explicitly (Status: Superseded by ADR 0014) rather
than deleting or silently ignoring them — an ADR trail with gaps or
silent overwrites is nearly as unhelpful as no ADRs at all.
Revisit and mark ADRs as superseded when circumstances genuinely change (team maturity grows, requirements shift, the chosen technology's vendor deprecates it) — an ADR is a record of the reasoning at the time, not a permanent commitment; the record's value is in showing why the original call made sense then, which is exactly what lets a future architect evaluate whether it still does.
Symptom: A technology is selected because it's the most popular choice in the industry or a well-known reference architecture, without a documented comparison against the system's actual requirements or the team's operational maturity. Fix: Popularity is evidence of ecosystem support, not of fit — run the actual comparison (step 2) including operational TCO and team familiarity; "everyone uses it" is one input to a decision, not the decision itself.
Symptom: An ADR is written weeks after a technology was already chosen and partially implemented, and reads as a justification for the existing choice — every "alternative considered" is dismissed in one line, and there's no real record of what was actually uncertain at decision time. Fix: This is a significant, if quiet, failure mode — an ADR written after the fact to rationalize a decision already made loses the one thing an ADR is for: capturing genuine reasoning and real uncertainty for a future reader. Write ADRs at decision time, before or immediately alongside implementation starting, not as retroactive documentation.
Symptom: A system is decomposed into a textbook-ideal set of fine-grained microservices, but no individual team has the staffing to own more than one or two of them, and cross-service coordination overhead ends up slower than the monolith it replaced. Fix: Design service boundaries around what teams can realistically own and operate (step 5), not around the theoretically cleanest decomposition — an architecturally elegant design that no team can actually run well is a worse outcome in practice than a coarser one matched to real team capacity.
Symptom: A proof-of-concept "passes" but its success criteria were written or adjusted after the results were already in, and the chosen technology later struggles in production exactly where the original, unadjusted criteria would have caught the gap. Fix: Define PoC criteria in writing before running it (step 3) and hold to them regardless of outcome; if a criterion turns out to be the wrong bar after the fact, revise it for the next decision's process, not retroactively for this one.
Symptom: An architecture decision from three years ago is still being followed literally, even though the team's operational maturity, scale, or the chosen technology's vendor support has changed substantially since — and nobody has revisited whether it still makes sense because the original ADR (if one exists at all) is undated, unindexed, or lost. Fix: Store ADRs durably and indexed (step 7), and treat a materially changed circumstance (team maturity, scale, vendor deprecation) as a trigger to write a new ADR that explicitly supersedes the old one (step 8) — an ADR is a record of reasoning at a point in time, not a decision that self-updates.
Scenario: An architect is asked to design the event-streaming
backbone for order-events across three teams (checkout, fulfillment,
notifications) that currently communicate via brittle direct HTTP calls.
docs/adr/0007-order-events-streaming.md, reviewed by the
cross-team architecture forum before being marked Accepted.0014) rather than being silently folded into the original one,
keeping each decision's reasoning traceable independently.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/independent-solution-design-and-technical-reviewGuides senior-level engineering work: designing a system component or feature independently within established architectural constraints, conducting thorough code/design reviews that check correctness, edge cases, failure modes, and test coverage rather than just style, leading root-cause analysis on complex/ambiguous incidents that have no existing runbook, and mentoring more junior engineers through pairing and review feedback. Use when a senior engineer (or an agent acting as one) is asked to "design this component," "review this PR/design doc," "figure out why this keeps happening" for an incident with no runbook, or is giving feedback aimed at building a junior colleague's judgment rather than just approving/rejecting a change.
/operational-runbook-execution-and-escalationGuides junior/entry-level engineering work: executing pre-approved runbooks and established deployment procedures exactly as documented, first-response alert triage (acknowledge, assess severity, apply the documented fix or escalate), and knowing the explicit criteria for when to stop and hand off rather than improvise a fix beyond the runbook's scope. Covers building judgment over time by logging deviations from the runbook for review rather than silently freelancing a workaround. Use when a junior/entry-level engineer (or an agent acting as one) is first-responder on an alert, is asked to "follow the runbook for X," needs to decide "should I escalate this or keep trying," is running a documented deployment/rollback procedure, or is writing up a runbook deviation after an on-call shift.
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin role-based-practices-skillsOther plugins' skills for the same job