/sre-skills:slo-sli-and-error-budget-designfrom sre-skills
Guides designing SLOs, SLIs, error budgets, and burn-rate alerting for services. Helps teams set realistic reliability targets and automate policy decisions when error budget is spent.
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.
Without an explicit, numeric target for "reliable enough," reliability work has no stopping point and no shared language with product: engineers default to chasing the highest reliability technically possible, product pushes for the fastest possible ship velocity, and every outage becomes an argument instead of a data point. Service Level Objectives (SLOs), backed by Service Level Indicators (SLIs) that actually reflect user experience, turn "is this reliable enough" into a measurable question, and the error budget (the allowed unreliability implied by the SLO) turns "should we slow down and fix reliability, or keep shipping features" into a policy decision made in advance rather than an argument during an incident. This skill covers choosing SLIs that mean what you think they mean, setting an SLO from evidence rather than aspiration, writing an error-budget policy with real teeth, and alerting on budget burn rate — not just breach at the end of the window — so a fast-burning incident pages someone while there's still budget left to save.
Pick the SLI type per user journey.
availability_sli = good_requests / valid_requests
# good_requests: status not in {5xx} AND latency < threshold
# valid_requests: excludes requests the user/client aborted before
# the server could respond (not the server's fault)
window_sli = good_windows / total_windows
# a "good" 1-minute window: e.g. the batch job's queue depth stayed
# below N, or the daily job completed before its deadline
Set the SLO from evidence, with room for a budget to exist. Pull 90 days of the chosen SLI and look at the actual achieved reliability, not the aspirational one. Set the target below what's realistically achievable with current architecture, high enough to matter to users, and low enough that a budget genuinely exists to spend. Common allowed-downtime table for a 30-day rolling window:
| SLO | Allowed downtime / 30 days | Allowed downtime / 90 days |
|---|---|---|
| 99% | 7h 18m | 21h 54m |
| 99.9% | 43m 50s | 2h 11m |
| 99.95% | 21m 54s | 1h 5m 42s |
| 99.99% | 4m 23s | 13m 9s |
| 99.999% | 26s | 1m 19s |
A target of 100% is not a valid SLO — it implies zero error budget, which means every single failed request is a policy violation, which makes the policy meaningless (see Common pitfalls).
Compute the error budget and burn rate.
error_budget = (1 - SLO) * total_valid_requests_in_window
burn_rate = observed_error_rate / (1 - SLO)
# burn_rate of 1.0 = consuming the budget exactly on schedule to hit 0
# right at the end of the window
# burn_rate of 14.4 against a 30-day window exhausts the ENTIRE
# budget in about 1 hour if sustained
Write an error-budget policy with explicit thresholds and actions. Draft this with product/eng leadership before it's needed:
| Budget consumed (rolling 30d) | Action |
|---|---|
| 0-50% | Normal operation. Ship features as planned. |
| 50-75% | Reliability review required before any launch with material availability/latency risk (new dependency, schema migration, traffic-shifting change). |
| 75-100% | Freeze non-essential feature launches. Only bug fixes, security patches, and reliability work may deploy. |
| >100% (budget exhausted) | Mandatory incident postmortem (see blameless-postmortem-and-root-cause-analysis) and leadership sign-off required to resume feature launches, even after the rolling window recovers. |
Wire the freeze into the deployment pipeline itself where possible (a gate that blocks non-reliability-labeled deploys once budget crosses 75%) rather than relying on people remembering — see environment-promotion-strategy for how to add pipeline gates.
Alert on burn rate with multiple windows, not on breach at the end of the period. Checking "did we breach 99.9% this month" on the last day of the month means you find out a month late. Use short + long window pairs so a fast, severe burn pages immediately while a slow, sustained burn creates a lower-urgency ticket:
# Fast-burn (page): would exhaust a 30-day budget in ~1 hour if
# sustained. Requires both a 5m and a 1h window to agree, so a single
# noisy minute doesn't page.
(
sum(rate(http_requests_total{job="checkout",status_code=~"5.."}[5m]))
/ sum(rate(http_requests_total{job="checkout"}[5m]))
> 14.4 * (1 - 0.999)
)
and
(
sum(rate(http_requests_total{job="checkout",status_code=~"5.."}[1h]))
/ sum(rate(http_requests_total{job="checkout"}[1h]))
> 14.4 * (1 - 0.999)
)
# Slow-burn (ticket, not page): would exhaust the budget in ~5 days if
# sustained. Confirmed over 6h and 3d windows.
(
sum(rate(http_requests_total{job="checkout",status_code=~"5.."}[6h]))
/ sum(rate(http_requests_total{job="checkout"}[6h]))
> 6 * (1 - 0.999)
)
and
(
sum(rate(http_requests_total{job="checkout",status_code=~"5.."}[3d]))
/ sum(rate(http_requests_total{job="checkout"}[3d]))
> 6 * (1 - 0.999)
)
Route the fast-burn alert to page primary on-call immediately
(severity: critical); route the slow-burn alert to a ticket/Slack
channel for the service owner to investigate within the business day
(severity: warning).
Review quarterly. Compare the SLO against actual support-ticket volume, churn signals, and whether the budget was ever meaningfully spent. An SLO nobody ever comes close to burning is probably stricter than users need (over-investment in reliability); a budget permanently at 0% means the target is unrealistic for current architecture — fix the architecture or relax the target deliberately, don't just ignore the breach.
Symptom: The SLO is set to 100% (or effectively 99.999%+ with no data behind it), and every single failed request or transient blip triggers an "SLO violation" conversation. Fix: There is no such thing as a 100% SLO in practice — pick a target below the historically observed baseline so a real error budget exists to spend on both operational noise and calculated risk-taking.
Symptom: The SLI shows 99.98% success measured at the application server, but users are filing tickets about failed checkouts. Fix: The SLI is measuring the wrong thing — likely excluding timeouts, load-balancer 5xxs, or client-side failures that never reach the app's own logs. Move the measurement point to the edge/load balancer, or explicitly fold client-observed failures (via RUM/synthetic checks) into the "valid requests" denominator.
Symptom: The team only discovers an SLO breach when someone manually checks the dashboard at month-end, days after the incident that caused it. Fix: No burn-rate alerting exists — only an end-of-window threshold check. Add multi-window, multi-burn-rate alerts (step 5) so a fast burn pages within the hour and a slow burn tickets within the day.
Symptom: The error-budget policy document says launches freeze at 75% budget consumption, but the last three times that happened, product shipped anyway with no pushback. Fix: The policy has no enforcement mechanism — it's a suggestion. Wire the freeze into an automated pipeline gate keyed off the current burn-rate/budget-remaining metric (see environment-promotion-strategy), and name an explicit approver for any override.
Symptom: Ten different SLIs are defined for one service and nobody can say, off the top of their head, what any of them currently read. Fix: Consolidate to the vital few — one availability and one latency SLO per critical user journey is usually enough. Retire the rest or fold them into recording rules used only for deep debugging.
Service: checkout-service. User journey: completing a purchase.
severity: critical (pages primary
checkout on-call) and the slow-burn rule routed to the #checkout-eng
Slack channel as severity: warning.error-budget-status) that queries current burn against the
SLO and fails any PR labeled feature (but not bugfix/security)
when consumption exceeds 75%. The VP of Engineering is the named
approver for overriding the gate.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."
Other plugins' skills for the same job