Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Define and calculate SLIs, SLOs, SLAs, and error budgets with monitoring integration for site reliability engineering.
.claude/skills/williamzujkowski-sre-slo-sli-calculator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 40% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 156% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 269% | 0% |
| case-16 | ✗→✓ | ▲ Improved | 265% | 0% |
Trigger conditions:
Use this skill when you need to establish measurable reliability targets (SLIs/SLOs), calculate error budgets, and integrate with monitoring platforms to track service reliability against user expectations.
Before execution, verify:
NOW_ET = 2025-10-25T21:30:36-04:00 (NIST/time.gov semantics, America/New_York)service_type is one of: api, frontend, batch, streaming, storage, databaseuser_journey is non-empty array describing critical user workflowsavailability_target (if provided) is between 90.0 and 100.0monitoring_platform is one of: prometheus, datadog, cloudwatch, newrelic, genericNOW_ETAbort conditions:
Token budget: T1 ≤2k tokens
Scope: Common 80% case - standard service with typical reliability requirements.
Steps:
service_type (accessed 2025-10-25T21:30:36-04:00: https://sre.google/sre-book/monitoring-distributed-systems/):user_journey, identify primary golden signalavailability_target or default to 99.9% for user-facing serviceserror_budget = (1 - availability_target) * measurement_windowpromql # Availability SLI sum(rate(http_requests_total{status!~"5.."}[5m])) / sum(rate(http_requests_total[5m]))
Token budget: T2 ≤6k tokens
Scope: Production services requiring comprehensive SRE implementation with alerting and error budget policies.
Steps:
promql # 1-hour burn rate (fast burn) (1 - (sum(rate(http_requests_total{status!~"5.."}[1h])) / sum(rate(http_requests_total[1h])))) > (14.4 * (1 - 0.999)) # 14.4x faster than budget allows
Sources cited (accessed 2025-10-25T21:30:36-04:00):
Token budget: T3 not implemented for this skill
Rationale: T2 tier provides comprehensive SRE implementation with multi-window SLOs, error budget policies, and platform-specific monitoring integration. T3 would potentially cover highly specialized scenarios (custom SLI aggregation algorithms, multi-cluster federation, advanced anomaly detection) that are better handled through expert SRE consultation or custom tooling development.
SLI selection criteria:
SLO threshold selection:
Ambiguity thresholds:
user_journey contains >10 critical paths → ask user to prioritize top 3-5availability_target not specified → default to 99.9% for user-facing, 99.5% for internalAbort/stop conditions:
Required fields:
json{ "sli_definitions": [ { "name": "string (e.g., 'API Availability')", "type": "availability | latency | freshness | correctness | throughput", "description": "string (what this SLI measures)", "measurement_method": "string (how to calculate)", "data_source": "string (metrics endpoint, logs, traces)", "good_events": "string (numerator definition)", "total_events": "string (denominator definition)", "threshold": "number (for latency/freshness SLIs)", "unit": "string (ms, %, count)" } ], "slo_targets": [ { "sli_name": "string (references SLI above)", "target": "number (e.g., 99.9)", "window": "string (30d, 7d, 28d)", "window_type": "rolling | calendar", "budget_threshold": "number (alert threshold %)" } ], "error_budget": { "total_minutes_30d": "number (allowable downtime)", "burn_rate_thresholds": { "critical_1h": "number (14.4x for 99.9%)", "warning_6h": "number (6x for 99.9%)", "info_3d": "number (1x for 99.9%)" }, "current_consumption": "number | null (if historical data available)" }, "monitoring_queries": { "platform": "string (prometheus, datadog, etc.)", "sli_queries": ["array of query strings"], "error_budget_queries": ["array of query strings"] }, "alerting_policy": [ { "severity": "critical | warning | info", "condition": "string (burn rate threshold)", "notification": "string (page, email, ticket)", "duration": "string (alert evaluation window)" } ] }
Optional fields:
sla_terms: Customer-facing SLA commitments (if applicable)error_budget_policy: Freeze/escalation proceduresdashboard_config: Monitoring dashboard layout recommendationsValidation:
Input:
json{ "service_type": "api", "user_journey": [ "User searches products", "User adds item to cart", "User completes checkout" ], "availability_target": 99.9, "monitoring_platform": "prometheus" }
Output (abbreviated):
json{ "sli_definitions": [ { "name": "API Availability", "type": "availability", "measurement_method": "ratio of successful HTTP responses (2xx/3xx) to total requests", "good_events": "http_requests_total{status=~\"2..|3..\"}", "total_events": "http_requests_total" } ], "slo_targets": [{"sli_name": "API Availability", "target": 99.9, "window": "30d"}], "error_budget": {"total_minutes_30d": 43.2}, "monitoring_queries": { "platform": "prometheus", "sli_queries": [ "sum(rate(http_requests_total{status=~\"2..|3..\"}[5m])) / sum(rate(http_requests_total[5m]))" ] } }
Token budgets:
Safety requirements:
Auditability:
Determinism:
Primary sources:
Reference implementations:
Additional reading:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-02 | fail→pass | 21,048 | 12,209 | -42% | 1 | 1 | 0% | 4,663 | 6,547 | +40% | 0 | 0 | — |
case-01 | pass→pass | 16,734 | 9,420 | -44% | 1 | 1 | 0% | 3,838 | 6,163 | +61% | 0 | 0 | — |
case-03 | fail→pass | 15,828 | 13,158 | -17% | 1 | 1 | 0% | 4,001 | 6,934 | +73% | 0 | 0 | — |
case-04 | pass→pass | 11,252 | 15,105 | +34% | 1 | 1 | 0% | 2,081 | 6,913 | +232% | 0 | 0 | — |
case-05 | fail→pass | 10,154 | 6,891 | -32% | 1 | 1 | 0% | 1,953 | 5,006 | +156% | 0 | 0 | — |
case-06 | fail→pass | 5,806 | 6,180 | +6% | 1 | 1 | 0% | 1,437 | 5,308 | +269% | 0 | 0 | — |
case-15 | pass→pass | 4,582 | 6,332 | +38% | 1 | 1 | 0% | 882 | 5,165 | +486% | 0 | 0 | — |
case-07 | pass→pass | 8,730 | 10,070 | +15% | 1 | 1 | 0% | 1,740 | 6,066 | +249% | 0 | 0 | — |
case-08 | pass→pass | 18,941 | 7,167 | -62% | 1 | 1 | 0% | 1,892 | 5,397 | +185% | 0 | 0 | — |
case-09 | pass→pass | 6,291 | 4,681 | -26% | 1 | 1 | 0% | 1,060 | 4,787 | +352% | 0 | 0 | — |
case-10 | pass→pass | 12,134 | 11,290 | -7% | 1 | 1 | 0% | 2,175 | 6,027 | +177% | 0 | 0 | — |
case-11 | pass→pass | 9,943 | 12,028 | +21% | 1 | 1 | 0% | 1,886 | 6,283 | +233% | 0 | 0 | — |
case-12 | fail→fail | 9,018 | 10,059 | +12% | 1 | 1 | 0% | 1,710 | 5,993 | +250% | 0 | 0 | — |
case-13 | fail→fail | 7,685 | 7,286 | -5% | 1 | 1 | 0% | 1,585 | 5,487 | +246% | 0 | 0 | — |
case-14 | pass→pass | 6,325 | 4,300 | -32% | 1 | 1 | 0% | 1,253 | 4,697 | +275% | 0 | 0 | — |
case-16 | fail→pass | 6,323 | 4,576 | -28% | 1 | 1 | 0% | 1,338 | 4,878 | +265% | 0 | 0 | — |
case-17 | pass→pass | 8,333 | 6,328 | -24% | 1 | 1 | 0% | 1,614 | 5,092 | +215% | 0 | 0 | — |
case-18 | pass→pass | 10,418 | 10,663 | +2% | 1 | 1 | 0% | 1,965 | 6,329 | +222% | 0 | 0 | — |
case-19 | pass→pass | 3,338 | 4,149 | +24% | 1 | 1 | 0% | 740 | 4,749 | +542% | 0 | 0 | — |
case-20 | pass→pass | 7,108 | 5,333 | -25% | 1 | 1 | 0% | 1,644 | 4,962 | +202% | 0 | 0 | — |
case-21 | pass→pass | 17,064 | 17,187 | +1% | 1 | 1 | 0% | 3,236 | 7,496 | +132% | 0 | 0 | — |
case-22 | pass→pass | 16,860 | 18,719 | +11% | 1 | 1 | 0% | 3,301 | 7,400 | +124% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +23 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.