/role-based-practices-skills:independent-solution-design-and-technical-reviewfrom role-based-practices-skills
Guides senior-level engineering work: designing components within architectural constraints, conducting thorough code/design reviews for correctness and failure modes, leading root-cause analysis on ambiguous incidents, and mentoring junior engineers through pairing and review feedback.
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.
Senior-level engineering work is defined less by writing more code and more by exercising judgment without a runbook: designing a component independently within constraints someone else set, reviewing someone else's design or code deeply enough to catch what a naive read would miss, and root-causing an incident that has no documented procedure to follow because nobody has seen this exact failure before. Each of these is qualitatively different from the entry-level discipline of executing a known procedure precisely (see operational-runbook-execution-and-escalation) — here, the engineer is the one deciding what the "runbook" should say, or whether there even should be one. This skill covers designing within architectural constraints (not designing the constraints themselves — that's the architect-level work in system-design-technology-selection-and-decision-records), running a code/design review that goes past style into correctness and failure modes, leading ambiguous root-cause investigations, and mentoring through the review and pairing process itself.
Before designing, restate the constraints explicitly — the API contract you must honor, the data store you must use, the latency/ availability targets, any existing patterns the codebase already uses for similar problems. A design that quietly ignores a stated constraint isn't more creative, it's non-compliant with a decision made at a level above this one; if a constraint seems wrong, name that as a question back to whoever owns it rather than silently deviating.
Write the design down before writing code — even a short design note (problem, chosen approach, key trade-offs, rejected alternatives, failure modes considered) forces the reasoning to be explicit and reviewable, and catches gaps a jump straight to implementation would hide until much later.
# Design note: async retry queue for webhook-delivery-service
## Problem
Outbound webhook deliveries to customer endpoints fail transiently
(customer server down, network blip) at ~3% of volume; currently
these are dropped with no retry.
## Constraints
- Must use the existing Postgres instance (no new datastore approved
for this service per current architecture).
- Must not delay first-attempt delivery latency (p99 currently 180ms).
- Must be idempotent from the customer's perspective (no duplicate
side effects on retry).
## Chosen approach
A `webhook_retry_queue` table with `next_attempt_at`, exponential
backoff (1m, 5m, 30m, 2h, giving up after 4 retries), polled by a
background worker every 30s. Idempotency via an `X-Idempotency-Key`
header derived from the original event ID.
## Rejected alternative
A dedicated message queue (SQS/RabbitMQ) — rejected: no new
infrastructure is approved for this service this quarter; the
Postgres-backed queue meets the volume (peak ~50 events/sec) without
it.
## Failure modes considered
- Worker crashes mid-retry: rows use a `claimed_at` lock with a
timeout so a crashed worker's claims are released, not stuck.
- Retry storm if a customer endpoint is down for hours: backoff caps
at 2h and gives up after 4 attempts, alerting rather than retrying
indefinitely.
- Duplicate delivery on a retry that actually succeeded but the ack
was lost: covered by the idempotency key.
Have the design reviewed before implementation is far along — circulate the design note in step 2 to at least one peer or the team before writing significant code, so a fundamental problem is caught while it's still cheap to change direction.
When reviewing someone else's code or design, use a checklist that goes past style, since style is what a linter should already catch and isn't where real bugs hide:
null/empty/zero/negative input,
concurrent access, partial failure mid-operation?Write review feedback as questions and reasoning, not verdicts, especially when reviewing a more junior engineer's work — "what happens here if the downstream call times out?" builds judgment; "this is wrong, fix it" does not. Reserve blocking, directive feedback for genuine correctness/security issues, and use suggestion-level feedback for style or preference.
When an incident or bug has no existing runbook, lead a structured investigation rather than guessing serially: form a hypothesis from the evidence available, find the fastest way to confirm or rule it out (a log query, a targeted metric, reproducing in a lower environment), and only then move to the next hypothesis — narrating this process out loud (in the incident channel or a doc) so others can follow and contribute, rather than debugging silently and presenting only a final answer.
After resolving a novel incident, decide explicitly whether a runbook should now exist for this failure mode — if a similar failure is plausible again, write the runbook so the next occurrence is entry-level, documented work instead of another ambiguous investigation; see operational-runbook-execution-and-escalation for what a good runbook and its escalation triggers look like.
Mentor deliberately through pairing and review, not only by fixing things faster yourself: when pairing, narrate your own diagnostic reasoning instead of silently taking over the keyboard; when reviewing, leave at least one comment aimed at building the author's judgment for next time, not only the specific fix needed this time.
Symptom: A design/code review approves a PR after a handful of comments about variable naming and formatting, and a genuine correctness bug (an off-by-one loop boundary, an unhandled null from a downstream call) reaches production a week later. Fix: This is a real, costly failure mode — a review that only checks style is not a code review, it's a linter with extra steps. Use the correctness/edge-case/failure-mode/test-coverage checklist in step 4 explicitly, and treat style-only feedback as insufficient to approve a PR that touches meaningful logic.
Symptom: A reviewer leaves directive, blunt feedback ("this is wrong") on a junior engineer's PR with no explanation of why, and the same class of mistake recurs in their next several PRs. Fix: Rewrite feedback as a diagnostic question ("what happens here if the API call times out?") that leads the author to find the gap themselves — feedback that only fixes this PR without building judgment guarantees you'll be reviewing the same mistake again.
Symptom: An engineer designs a component that quietly uses a new datastore or bypasses an established service boundary because it was the fastest way to solve the immediate problem, without raising it as a question to whoever owns those architectural constraints. Fix: "Independent" design means independent within the given constraints, not independent of them. If a constraint genuinely blocks a good solution, escalate it explicitly as a question rather than routing around it unilaterally — an unapproved architectural deviation discovered later is expensive to unwind and erodes trust in independent design being given at all.
Symptom: A novel incident with no runbook gets root-caused and fixed, but nobody writes anything down, and an on-call engineer six months later spends hours re-diagnosing the exact same failure from scratch. Fix: Treat "should this become a runbook" as an explicit step at the end of any ambiguous incident (step 7) — a novel investigation that isn't captured anywhere guarantees the next occurrence is novel again too.
Symptom: A root-cause investigation jumps between several unrelated hypotheses without confirming or ruling out any of them, burning hours with no narrowing of the search space, and nobody else can follow what's already been checked. Fix: State the current hypothesis explicitly before testing it, and record what was ruled out as you go (even a running comment in the incident channel) — this both keeps the investigation converging and lets someone else pick up the thread if you need to hand off.
Scenario: A senior engineer is asked to design retry handling for
webhook-delivery-service (the design note in step 2 is this scenario's
actual output), and separately reviews a junior teammate's PR
implementing part of it.
Design phase: The engineer restates constraints (existing Postgres only, no new latency on first attempt, must be idempotent), writes the design note in step 2, and circulates it to the team before writing the worker code. A teammate flags that the 30-second poll interval may be too coarse for the retry SLA the support team expects; the engineer adjusts to a 10-second poll with a note on the trade-off (slightly higher DB load) rather than defending the original number reflexively.
Review phase: The junior teammate's PR implements the retry worker. Review comments, in order of what's actually checked:
claimed_at timeout check compares against
now() but the worker's claim query doesn't set claimed_at in
the same transaction as the SELECT — under concurrent workers, could
two workers claim the same row? Walk me through what happens with two
workers polling at the same instant."retryQueue vs. retry_queue — the
rest of the file uses snake_case for locals."The junior engineer fixes the race condition with a proper
SELECT ... FOR UPDATE SKIP LOCKED, adds the missing test, and the
reviewer approves — noting in the PR that the race-condition question is
worth remembering as a general pattern ("any 'claim a row to work on it'
design needs to consider concurrent claimers") rather than only fixing
this instance.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin role-based-practices-skills4 skills in this plugin
/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.
/system-design-technology-selection-and-decision-recordsGuides architect-level engineering work: system-wide architecture design spanning multiple teams/services, technology evaluation and selection using a real framework (requirements, tradeoffs, proof-of-concept criteria, total cost of ownership — not "pick the popular one"), writing and maintaining Architecture Decision Records (ADRs) that capture context and reasoning for future readers, and balancing architectural ideals against organizational and team-maturity constraints. Use when an architect (or an agent acting as one) is asked to "design the architecture for X across these teams," "evaluate/select a technology (database, messaging system, framework)," "write an ADR for this decision," or "decide the right architecture given our team's actual constraints, not the textbook-ideal one."
/technical-roadmap-ownership-and-cross-team-coordinationGuides lead-level engineering work: owning a technical roadmap for a team and sequencing technical debt against feature work and platform investment, resolving cross-team technical dependencies and conflicts (two teams needing the same shared resource or API changed in incompatible ways), driving adoption of a technical standard across multiple teams without unilateral authority to mandate it, and giving technical estimation/planning input into broader project planning. Use when a tech lead (or an agent acting as one) is asked to "build/ prioritize our technical roadmap," "resolve a conflict between two teams over a shared API/resource," "get other teams to adopt this standard," or "give an estimate/plan input" for cross-team project planning.
Other plugins' skills for the same job