/sre-skills:toil-reduction-and-operational-automationfrom sre-skills
Guides identifying and reducing operational toil using Google SRE principles: measure toil budget, prioritize automation with frequency/impact/effort scoring, and climb a runbook-to-automation maturity ladder.
Ships in sre-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.
Toil — manual, repetitive, automatable operational work that produces no enduring value and scales linearly with the system it supports — is the tax that operations teams pay for every system that isn't self-healing, and left unmanaged it crowds out the engineering work that would actually reduce future toil, creating a compounding trap: the busier the team is with toil, the less time it has to eliminate the toil. This skill (drawing on the well-established framing from Google's Site Reliability Engineering book) covers defining toil precisely enough to recognize it, measuring it as a percentage of a team's time against the commonly cited under-50% guideline, prioritizing what to automate first using an evidence-based scoring framework instead of gut feel, and climbing a runbook-to-automation maturity ladder deliberately so automation is trustworthy rather than a new source of unsupervised risk.
Define toil precisely, using the standard characteristics so the team can recognize it consistently:
Contrast with engineering work: manually restarting a crashed pod every time it happens is toil; writing a Kubernetes liveness probe so the platform restarts it automatically is engineering work that eliminates the toil going forward.
Measure the toil budget. Track time spent by category (survey, ticket tags, or a calendar/on-call-retro audit) over a period (2-4 weeks is usually enough to see a pattern). Compare the toil percentage against the commonly cited Google SRE guideline of keeping toil under roughly 50% of an operations/SRE engineer's time — treat it as a directional target to trigger investment, not a hard legal limit. Review this number on a recurring cadence (e.g. quarterly) rather than measuring once and forgetting it.
Build a toil inventory. For each recurring manual task, record: frequency (times/week), time per occurrence, total time/month (frequency × duration), who typically does it, and a rough risk/pain score (how error-prone or stressful the manual step is).
| Task | Frequency | Time/occurrence | Total/month | Risk |
|---|---|---|---|---|
| Restart flapping payment-worker pod | 8/week | 20 min | ~10.7 hrs | Medium |
| Manually clear stuck message-queue entries | 3/week | 30 min | ~6.5 hrs | Medium |
| Rotate a credential by hand | 1/quarter | 45 min | ~0.25 hrs | High (error-prone) |
Prioritize what to automate first with a simple score rather than whichever task is loudest that week:
priority_score = (frequency × time_saved × risk_weight) / effort_to_automate
Favor high-frequency, low-effort wins first (a liveness probe, a small ChatOps command) over a single large "automate everything" platform project — quick wins free up time that then funds the bigger automation work.
Climb the runbook-to-automation maturity ladder deliberately — don't skip levels, especially the documentation step:
/requeue-stuck-messages Slack command).Example Level 1→2 step — a liveness probe closes half the gap for the payment-worker example automatically:
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 15
failureThreshold: 3
and a small ChatOps script closes the rest (illustrative sketch):
#!/usr/bin/env bash
# /requeue-stuck-messages <queue-name>
# Requeues messages stuck in the dead-letter queue for <queue-name>
# after confirming they haven't exceeded max retry count.
set -euo pipefail
QUEUE="$1"
aws sqs list-dead-letter-source-queues --queue-url "$QUEUE" \
| jq -r '.queueUrls[]' \
| xargs -I{} ./scripts/requeue.sh {}
Instrument the automation itself once built: emit a success/failure metric and alert if the automation fails, and decommission the old manual runbook/alert path once the automation is proven reliable — an automation with no observability of its own can fail silently while everyone assumes the toil is handled.
Re-measure the toil budget after landing automation, and redirect the reclaimed time explicitly toward engineering/project work (including further automation) rather than letting it get silently absorbed into more reactive work.
Symptom: A script was written months ago to handle a recurring fix automatically; nobody has checked on it since, and it turns out it's been silently failing for weeks while the underlying manual toil quietly crept back (discovered only during an outage). Fix: Instrument every automation with its own success/failure metric and alert — automation with no observability of its own is a liability, not a solution.
Symptom: The team commits to "automate everything" as one large platform project; six months later almost none of the day-to-day manual toil has actually decreased. Fix: Use the frequency × time-saved × risk / effort scoring (step 4) to automate the highest-value, lowest-effort items first, in parallel with (not instead of) any larger platform investment.
Symptom: Every planning conversation about "we need more time to automate" is met with skepticism because there's no data, just a feeling that on-call is busy. Fix: Actually measure toil (ticket tags, survey, or retro audit) and report it as a percentage against the ~50% guideline explicitly — a number is far harder to wave away than a feeling.
Symptom: A recurring manual task is automated exactly as it was performed by hand, and later turns out to be masking a real defect (e.g. nightly auto-restarting a service that has a genuine memory leak) that now goes unnoticed indefinitely. Fix: Before automating, ask whether the underlying condition should be fixed or eliminated instead of preserved-but-automated — cross-check against any related postmortem action items first.
Symptom: A runbook jumps straight from "one person knows how to do this" to a fully autonomous auto-remediation script, and it takes an unanticipated action on an edge case nobody had tested, making an incident worse. Fix: Climb the maturity ladder in order — document (Level 1), then semi-automate with a human trigger (Level 2), then gate full automation behind human approval (Level 3), and only grant full autonomy (Level 4) after the approval-gated version has proven reliable across a range of real conditions, with safety limits and its own failure alerting in place.
Scenario: A monthly on-call retro (see
incident-response-and-on-call-management)
shows that roughly 63% of on-call hours over the last rotation went to
two recurring manual tasks: restarting a flapping payment-worker pod
(~8 times/week, 20 min each) and manually clearing a stuck message queue
(~3 times/week, 30 min each) — a toil inventory (step 3) quantifies this
at roughly 17 hours/month combined.
Scoring both against the frequency/effort framework puts the pod restart
first (higher frequency, very low effort to fix): a Kubernetes
livenessProbe (step 5) is added so the platform restarts the pod
automatically without paging anyone. The queue-clearing task becomes a
/requeue-stuck-messages ChatOps command (Level 2 on the ladder) that a
human still triggers but no longer has to perform by hand step-by-step.
Both changes are instrumented: the liveness-probe restart count and the
ChatOps command's success/failure are logged and alerted on if they spike
or fail. Re-measuring the following month shows on-call toil dropped from
63% to about 38%. Rather than stopping there, the team investigates why
payment-worker was flapping in the first place — a memory leak — and
tickets it as a proper fix (feeding into a postmortem-style action item)
instead of leaving the liveness-probe restart as a permanent workaround
for an unaddressed defect.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin sre-skills6 skills in this plugin
/blameless-postmortem-and-root-cause-analysisGuides running a blameless postmortem after an incident — using a consistent template (timeline, impact, root cause, contributing factors, action items), facilitating without assigning individual blame, applying 5-whys/contributing-factor analysis without oversimplifying to one root cause, and tracking action items through to completion. Use when a user asks to "write a postmortem", "run a root-cause analysis", "do a 5-whys on this incident", "make sure this incident doesn't get blamed on one person", or "our postmortem action items never actually get done."
/capacity-planning-and-load-testingGuides demand forecasting and load/stress/soak testing methodology (using tools such as k6, Locust, or JMeter) to find a system's real bottleneck — CPU, memory, a connection pool, or a downstream dependency — before production traffic finds it, and to set autoscaling/capacity triggers from actual test evidence rather than guesses. Use when a user asks to "capacity plan for an upcoming launch/event", "write a load test", "find out what breaks first under load", "our load tests pass but production still falls over", or "set our autoscaling thresholds correctly."
/chaos-engineering-and-resilience-testingGuides running chaos engineering experiments — defining a measurable steady-state hypothesis, controlling blast radius, and using fault-injection tools (Chaos Mesh, LitmusChaos, AWS Fault Injection Simulator) to proactively validate a system's resilience assumptions — plus running structured "game days" and graduating experiments from staging to controlled production runs. Use when a user asks to "run a chaos engineering experiment", "test what happens if we kill a pod/ lose an AZ", "run a game day", "validate our failover actually works", or "find resilience gaps before a real incident does."
/incident-response-and-on-call-managementGuides designing incident response structure and on-call operations — Incident Command System roles (Incident Commander, Communications Lead, Operations/Tech Lead, Scribe), severity/priority levels and the paging behavior each implies, on-call rotation design (primary/ secondary escalation, follow-the-sun handoffs), and on-call health (alert fatigue, fair page load distribution). Use when a user asks to "set up an incident command process", "define severity levels and who gets paged", "design an on-call rotation/escalation policy", "reduce alert fatigue for on-call", or "our on-call rotation is burning people out."
/slo-sli-and-error-budget-designGuides choosing good Service Level Indicators (request-based ratios vs. window-based aggregates), setting realistic Service Level Objectives backed by data instead of arbitrary "five nines" targets, writing an error-budget policy that defines what happens when the budget is spent (freezing non-essential launches), and designing multi-window, multi-burn-rate alerting so budget exhaustion pages on-call before users notice. Use when a user asks to "define an SLO/SLI for a service", "set an error budget", "decide what happens when we blow our error budget", "write a burn-rate alert", or "stop every minor blip from paging us."
Other plugins' skills for the same job