Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    SLO and Error Budget Calculator

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    SLO and Error Budget Calculator

    SLO and Error Budget Calculator

    Example session with this skill installed

    Run the SLO and Error Budget Calculator skill on my project and give me a prioritised list of what to fix, with exact changes.

    • Read your context and instructions
    • Compiled the slo and error

    Here is what the SLO and Error Budget Calculator skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    
    # Generated by slo_calc.py: SLO 99.9% over 30d for 'checkout'
    # Multiwindow, multi-burn-rate alerts (Google SRE workbook, chapter 5).
    groups:
      - name: slo-checkout-recording
        rules:
          - record: slo:sli_error:ratio_rate5m
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[5m])) / sum(rate(http_requests_total[5m]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate30m
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[30m])) / sum(rate(http_requests_total[30m]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate1h
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[1h])) / sum(rate(http_requests_total[1h]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate2h
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[2h])) / sum(rate(http_requests_total[2h]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate6h
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[6h])) / sum(rate(http_requests_total[6h]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate1d
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[1d])) / sum(rate(http_requests_total[1d]))"
            labels:
              slo: "checkout"
          - record: slo:sli_error:ratio_rate3d
            expr: "sum(rate(http_requests_total{code=~\"5..\"}[3d])) / sum(rate(http_requests_total[3d]))"
            labels:
              slo: "checkout"
      - name: slo-checkout-alerts
        rules:
          - alert: CheckoutErrorBudgetBurn
            expr: "(slo:sli_error:ratio_rate1h{slo=\"checkout\"} > (14.4 * 0.001)) and (slo:sli_error:ratio_rate5m{slo=\"checkout\"} > (14.4 * 0.001))"
            for: 2m
            labels:
              severity: critical
              slo: "checkout"
              long_window: 1h
            annotations:
              summary: "checkout: error budget burning 14.4x too fast"
              description: "At this rate 2% of the 30d error budget is spent within 1h; the whole budget lasts 2d 2h. Current error ratio: {{ $value | humanizePercentage }}."
              runbook_url: "https://example.com/runbooks/slo"
          - alert: CheckoutErrorBudgetBurn
            expr: "(slo:sli_error:ratio_rate6h{slo=\"checkout\"} > (6.0 * 0.001)) and (slo:sli_error:ratio_rate30m{slo=\"checkout\"} > (6.0 * 0.001))"
            for: 2m
            labels:
              severity: critical
              slo: "checkout"
              long_window: 6h
            annotations:
              summary: "checkout: error budget burning 6.0x too fast"
              description: "At this rate 5% of the 30d error budget is spent within 6h; the whole budget lasts 5d. Current error ratio: {{ $value | humanizePercentage }}."
              runbook_url: "https://example.com/runbooks/slo"
          - alert: CheckoutErrorBudgetBurn
            expr: "(slo:sli_error:ratio_rate1d{slo=\"checkout\"} > (3.0 * 0.001)) and (slo:sli_error:ratio_rate2h{slo=\"checkout\"} > (3.0 * 0.001))"
            for: 15m
            labels:
              severity: warning
              slo: "checkout"
              long_window: 1d
            annotations:
              summary: "checkout: error budget burning 3.0x too fast"
              description: "At this rate 10% of the 30d error budget is spent within 1d; the whole budget lasts 10d. Current error ratio: {{ $value | humanizePercentage }}."
              runbook_url: "https://example.com/runbooks/slo"
          - alert: CheckoutErrorBudgetBurn
            expr: "(slo:sli_error:ratio_rate3d{slo=\"checkout\"} > (1.0 * 0.001)) and (slo:sli_error:ratio_rate6h{slo=\"checkout\"} > (1.0 * 0.001))"
            for: 15m
            labels:
              severity: warning
              slo: "checkout"
              long_window: 3d
            annotations:
              summary: "checkout: error budget burning 1.0x too fast"
              description: "At this rate 10% of the 30d error budget is spent within 3d; the whole budget lasts 30d. Current error ratio: {{ $value | humanizePercentage }}."
              runbook_url: "https://example.com/runbooks/slo"
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Define SLIs and SLOs and do the error budget maths with a calculator script - allowed downtime and failed requests per window, budget consumed and remaining from good/total counts, burn rate and time to exhaustion, the nines table, and generation of Prometheus recording and multiwindow multi-burn-rate alerting rules (Google SRE workbook 14.4x/6x/3x/1x) for availability or latency SLIs.

    Who it's for

    Use when the user asks what 99.9% means in minutes, how much error budget is left, whether an incident blew the SLO, how to pick SLO targets or SLIs, how to alert on SLOs or burn rate, or wants an error budget policy.

    What's inside

    • Tested, offline Python script(s): slo_calc.py (deterministic results, standard library only unless noted)
    • Reference guides: choosing-slis.md, burn-rate-alerts.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/observability-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Define SLIs and SLOs and do the error budget maths with a calculator script - allowed downtime and failed requests per window, budget consumed and remaining from good/total counts, burn rate and time to exhaustion, the nines table, and generation of Prometheus recording and multiwindow multi-burn...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use SLO and Error Budget Calculator on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.