Observability Slo Architect

    2

    Design SLOs/SLIs for any service. Generates Prometheus rules, Grafana dashboards, burn-rate alerts. Google's 2%/50% model.

    Free

    4 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    observability-slo-architect

    Example session with this skill installed

    Define SLOs for our user-facing payment gateway. We need high availability and low latency. Generate the Prometheus rules and a runbook.

    • Read your context and instructions
    • Compiled the observability-slo-architect
    • Created slo.yaml: 99.9% availability, 300ms p99 latency.
    • Generated prometheus-rules.yaml with burn-rate alerts.
    • Generated runbook.md with incident steps.
      Files at /slo-package/ ready to commit.
    Created slo.yaml

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

    About this skill

    Observability SLO Architect

    You don't have a reliability problem, you have a measurement problem. This skill turns "is the service up?" into quantifiable SLOs, error budgets, and alerts that wake the right people at the right time.

    What it does

    End-to-end SLO engineering:

    • SLI selection — 12 indicators across availability, latency, throughput, durability, correctness
    • SLO framework — pick the right SLO for your service (8 patterns)
    • Error budget calculation — convert SLO to downtime budget per window
    • Burn-rate alerts — fast burn (1h, 6h) vs slow burn (24h, 3d)
    • Prometheus rules — ready-to-use recording + alerting rules
    • Grafana dashboards — SLO compliance, burn rate, error budget remaining
    • PagerDuty / Opsgenie policies — escalation + paging based on burn rate
    • Runbook templates — what to do when SLO is at risk
    • Review process — monthly SLO review template

    When to use it

    • You're launching a new service and need to define SLOs
    • Your on-call is exhausted from alerts that don't matter
    • Customers complain about reliability but you can't quantify it
    • You want to introduce error budgets but don't know how
    • Your SLOs are aspirational ("99.9%") but no one's held to them
    • You need to migrate from "uptime" to SLO-based thinking

    Why it's better than ad-hoc prompting

    Most "define SLOs" prompts give textbook answers. This skill is different:

    • 8 specific SLO frameworks — pick the right one for your service type
    • Ready-to-deploy rules — Prometheus + Grafana, not pseudocode
    • Burn-rate alerts done right — Google's 2% / 50% burn model
    • Concrete tradeoffs — "user-facing latency" vs "internal availability"
    • Templates — copy-paste runbooks, review docs

    Architecture

    ┌─────────────────────────────────────────────────────────┐
    │               Agent (Claude/Cursor)                     │
    │  - Reads service description                            │
    │  - Asks about user journey, criticality                 │
    │  - Generates SLO spec + rules + dashboards              │
    └───────────────┬─────────────────────────────────────────┘
                    │
                    ▼
    ┌─────────────────────────────────────────────────────────┐
    │        skills/observability-slo-architect/             │
    │  scripts/                                                │
    │    ├── design_slo.py       # SLI selection + SLO targets │
    │    ├── error_budget.py     # Budget calculation          │
    │    ├── gen_prometheus.py   # Recording + alerting rules  │
    │    ├── gen_grafana.py      # Dashboard JSON              │
    │    ├── gen_pagerduty.py    # Escalation policy           │
    │    ├── gen_runbook.py      # Markdown runbook            │
    │    └── review.py           # Monthly SLO review template │
    │  references/                                             │
    │    ├── 8-frameworks.md     # Which SLO pattern when      │
    │    ├── sli-catalog.md      # 12 SLI definitions          │
    │    ├── burn-rate-guide.md  # Fast vs slow burn           │
    │    └── google-sre-book-notes.md                          │
    │  templates/                                              │
    │    ├── slo-spec.yaml                                   │
    │    ├── prometheus-rules.yaml                           │
    │    ├── grafana-dashboard.json                          │
    │    ├── pagerduty-policy.yaml                           │
    │    └── runbook.md.tmpl                                 │
    └─────────────────────────────────────────────────────────┘
    

    Quick start

    # 1. Install
    pip install pyyaml
    
    # 2. Design SLOs for a service
    python scripts/design_slo.py --service "checkout-api" --user-facing --criticality high --out slo.yaml
    
    # 3. Calculate error budget
    python scripts/error_budget.py --slo 99.9 --window 30d
    
    # 4. Generate Prometheus rules
    python scripts/gen_prometheus.py --slo slo.yaml --out prometheus-rules.yaml
    
    # 5. Generate Grafana dashboard
    python scripts/gen_grafana.py --slo slo.yaml --out dashboard.json
    
    # 6. Generate PagerDuty escalation
    python scripts/gen_pagerduty.py --slo slo.yaml --out pagerduty.yaml
    
    # 7. Generate runbook
    python scripts/gen_runbook.py --slo slo.yaml --service "checkout-api" --out runbook.md
    
    # 8. Monthly review template
    python scripts/review.py --slo slo.yaml --month 2026-06 --out review-2026-06.md
    

    The 8 SLO frameworks (which to use)

    #Service typePrimary SLOSecondary SLO
    1User-facing APIAvailability (99.9%)Latency p99 (300ms)
    2Read-heavy DBQuery success rateRead latency p95
    3Write-heavy DBDurability (zero loss)Write latency p99
    4Async workerThroughput (events/min)End-to-end latency p99
    5Batch jobJob success rateDuration p95
    6CDNCache hit rateEdge latency p95
    7Auth serviceAuth success rateToken issuance latency
    8Internal APIRequest success rateInternal latency p95

    The 12 SLIs (catalog)

    Availability (3)

    • http_requests_total{status!~"5.."} / http_requests_total
    • uptime_seconds / total_seconds
    • successful_requests / total_requests

    Latency (4)

    • histogram_quantile(0.99, ...) (p99)
    • histogram_quantile(0.95, ...) (p95)
    • histogram_quantile(0.50, ...) (p50)
    • requests under SLO / total requests (good / total)

    Throughput (2)

    • events_processed_total / time_window
    • bytes_processed_total / time_window

    Durability (2)

    • data_loss_bytes / total_bytes_stored
    • successful_writes / total_write_attempts

    Correctness (1)

    • correct_responses / total_responses (where "correct" is defined per service)

    Burn-rate alerts (Google SRE model)

    For a 30-day SLO with 99.9% target (43.2 min budget):

    AlertWindowBurn rateSeverityPage?
    Fast burn (1h)1h14.4xPage on-callYes
    Fast burn (6h)6h6xPage on-callYes
    Slow burn (24h)24h3xSlackNo
    Slow burn (3d)3d1xSlackNo

    The math: at 14.4x burn for 1h, you'd consume 1% of the 30-day budget. 14.4 * 1h / 720h = 2%. So this alert fires when 2% of budget is consumed in 1h.

    Sample output (Prometheus rules)

    groups:
    - name: checkout-api-slo
      interval: 30s
      rules:
      # Recording: success ratio
      - record: slo:service_success_ratio:5m
        expr: |
          sum(rate(http_requests_total{service="checkout-api",status!~"5.."}[5m]))
          /
          sum(rate(http_requests_total{service="checkout-api"}[5m]))
    
      # Recording: error budget remaining
      - record: slo:error_budget_remaining:30d
        expr: |
          1 - (
            (1 - avg_over_time(slo:service_success_ratio:5m[30d]))
            / (1 - 0.999)
          )
    
      # Fast burn (1h, 14.4x)
      - alert: SLO_FastBurn_1h
        expr: |
          (1 - slo:service_success_ratio:5m)
          > (1 - 0.999) * 14.4
        for: 2m
        labels:
          severity: critical
          slo: checkout-api
        annotations:
          summary: "checkout-api SLO burning fast (1h)"
          runbook: "https://wiki/runbooks/checkout-api-slo"
    
      # Slow burn (24h, 3x)
      - alert: SLO_SlowBurn_24h
        expr: |
          (1 - avg_over_time(slo:service_success_ratio:5m[24h]))
          > (1 - 0.999) * 3
        for: 5m
        labels:
          severity: warning
        annotations:
          summary: "checkout-api SLO burning slow (24h)"
    

    Pricing

    Single-purchase, lifetime access. $9.00.

    Includes:

    • 7 Python scripts (design, budget, prometheus, grafana, pagerduty, runbook, review)
    • 4 reference docs (8 frameworks, 12 SLIs, burn rate, SRE book notes)
    • 5 templates (SLO spec, Prometheus rules, Grafana dashboard, PagerDuty, runbook)
    • Future updates for the same major version

    Example usage

    "We just launched a new checkout API. Define SLOs, generate Prometheus rules, and a Grafana dashboard for the team."

    The skill will:

    1. Ask 5-6 questions (user-facing? criticality? tier?)
    2. Recommend SLOs (e.g. 99.9% availability, p99 < 300ms)
    3. Calculate error budget (43.2 min/month)
    4. Generate Prometheus rules (recording + burn-rate alerts)
    5. Generate Grafana dashboard JSON
    6. Generate runbook
    7. Output slo-package/ ready to commit

    Compatibility

    Works with any agent that supports the SKILL.md standard and can execute Python: Claude Code, OpenClaw, Codex CLI, Cursor, Gemini CLI, Cline, Windsurf, Aider. Tested on Linux, macOS, Windows. Outputs standard Prometheus + Grafana formats; PagerDuty YAML imports directly.

    Tags

    observability, slo, sli, sre, prometheus, grafana, monitoring, devops, reliability

    • Requires Prometheus/Grafana stack to run generated files.
    • Accuracy depends on initial service profiling accuracy.
    • Python 3.8+ required for script execution.

    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 any payment.

    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

    4 uses

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 4 months ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Listed4 months ago

    What's inside

    Frequently Asked Questions

    This skill automates Google's SRE golden signals approach by converting your service requirements into quantifiable SLOs, error budgets, and multi-window burn-rate alerts that eliminate "alert fatigue."

    It includes 7 specialized Python scripts, 4 reference guides covering Google's SRE model, and a suite of templates for Prometheus recording rules, Grafana JSON dashboards, and PagerDuty policies.

    Yes, the skill provides 8 distinct frameworks tailored for different architectures, including user-facing APIs, write-heavy databases, async workers, and batch processing jobs.

    The skill is designed for any agent supporting the SKILL.md standard and Python execution, such as Claude Code, Cursor, Aider, Windsurf, or Cline.

    The skill generates standard Prometheus YAML recording/alerting rules and Grafana JSON files that can be imported directly into your existing observability stack or CI/CD pipeline.

    Your one-time purchase includes all future updates for the current major version, ensuring your SLO templates stay aligned with evolving SRE best practices.

    New in DevOps & Cloud

    Free