Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)29k Β· #9604

slo-architect

Fungsinya

Skill ini membantu mendefinisikan service level objective, yaitu target keandalan berdasarkan apa yang dialami pengguna. Skill ini untuk engineer yang menginginkan target keandalan yang benar-benar dipercaya tim.

Kapan dipakai

  • βœ“Saat Anda mendefinisikan target keandalan untuk layanan atau fitur baru.
  • βœ“Saat Anda ingin meninjau target keandalan yang ada dari kesalahan umum.
  • βœ“Saat Anda perlu menghitung error budget dan ambang batas peringatan.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/slo-architect/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/slo-architect/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBantu saya menetapkan target keandalan untuk layanan checkout kami dan hitung error budget-nya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill membantu memilih ukuran pengalaman pengguna, menetapkan target dalam jendela waktu, menghitung error budget, dan menyarankan ambang batas peringatan untuk seberapa cepat budget itu terpakai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

SLO Architect

Define SLOs that mean something. Most "SLOs" in the wild are arbitrary numbers no one believes β€” 99.9% on every endpoint, no SLI definition, no error budget, no policy for what happens when budget burns. This skill enforces the discipline from Google's SRE Workbook: pick the right SLI, set a target users actually care about, calculate the error budget, wire multi-window burn-rate alerts, and have a written policy for when budget runs out.

When to use

  • Defining a new SLO for a service or feature
  • Reviewing existing SLOs for common bugs
  • Picking the right SLI (event-based vs time-window based vs request-based)
  • Computing error budgets and burn-rate alert thresholds
  • Tying SLOs to existing controls β€” feature flags abort, chaos blast radius, operator capability levels

When NOT to use

  • General observability strategy (metrics + logs + traces) β†’ use observability-designer
  • Customer-facing SLAs with legal teeth β†’ that's contract drafting, not engineering
  • Performance load testing (capacity, not reliability) β†’ use performance-profiler
  • Active incident response β†’ use incident-response

Core principle: an SLO is a promise about user experience

SLI  ⟢  measurable signal of user-perceived health (e.g., HTTP 2xx rate)
SLO  ⟢  target for the SLI over a window (e.g., 99.9% over 30 days)
SLA  ⟢  customer-facing commitment with consequences (separate concern)
EB   ⟢  error budget: 100% βˆ’ SLO target = how much "bad" you can spend
BR   ⟢  burn rate: how fast you're consuming the error budget

The four cardinal mistakes:

  1. Target too high (99.99%+ on services that can't support it) β€” every minor blip violates SLO; alerts become noise.
  2. Wrong SLI (CPU usage as proxy for user experience) β€” system can be "green" while users suffer.
  3. No error budget policy β€” burning budget means nothing if there's no agreed action.
  4. Single-window burn-rate alert β€” either too noisy (page on a 5-min spike) or too slow (notice budget exhausted after the fact).

The 3 tools below catch each of these.

Quick start

SKILL=engineering/slo-architect/skills/slo-architect

# 1. Design an SLO
python "$SKILL/scripts/slo_designer.py" \
  --service checkout-svc \
  --sli-type request-success-rate \
  --target 99.9 \
  --window-days 30

# 2. Compute error budget + multi-window burn-rate alerts
python "$SKILL/scripts/error_budget_calculator.py" \
  --target 99.9 --window-days 30

# 3. Review existing SLO definitions for common bugs
python "$SKILL/scripts/slo_review.py" --slo-doc docs/slos/

The 3 Python tools

All stdlib-only.

slo_designer.py

Generates a structured SLO definition with required fields. Refuses to render if any required field is missing (exit 1).

python scripts/slo_designer.py \
  --service checkout-svc \
  --sli-type request-success-rate \
  --target 99.9 \
  --window-days 30 \
  --owner team-checkout

SLI types supported:

  • request-success-rate β€” (total_requests - bad_requests) / total_requests
  • request-latency β€” count(requests < threshold) / total_requests
  • availability-time β€” (window - downtime) / window
  • data-freshness β€” count(data_age < threshold) / total_data_points
  • correctness β€” count(correct_outputs) / total_outputs

Output is markdown by default with all required fields filled or marked <must define>. JSON output (--format json) is consumed by slo_review.py.

error_budget_calculator.py

Given target availability + window, computes:

  • Allowed downtime in the window
  • Multi-window burn-rate thresholds per Google SRE Workbook (Chapter 5):
    • Fast burn β€” page if 2% of monthly budget consumed in 1 hour
    • Slow burn β€” page if 5% consumed in 6 hours, ticket if 10% in 3 days
  • Recommended alerting rules (PromQL-shaped output)
python scripts/error_budget_calculator.py --target 99.9 --window-days 30
python scripts/error_budget_calculator.py --target 99.95 --window-days 7 --format json

slo_review.py

Audits a directory of SLO definitions (markdown or JSON) for the common bugs.

python scripts/slo_review.py --slo-doc docs/slos/

Checks:

  • target_too_high: target β‰₯ 99.99% (sustainable only with massive engineering investment)
  • target_too_low: target ≀ 99.0% (probably wrong SLI; users will notice)
  • window_too_short: window < 7 days (statistical noise dominates)
  • window_too_long: window > 90 days (slow feedback)
  • no_sli_definition: SLI section miss
Pertanyaan umum

Apa itu error budget?

Yaitu jumlah kegagalan yang boleh dimiliki layanan sambil tetap memenuhi targetnya.

Apakah ini sama dengan SLA pelanggan?

Tidak. SLA pelanggan adalah urusan kontrak; skill ini berfokus pada target teknik internal.

Apakah mencakup dasbor juga?

Dasbor dan pemantauan umum dicakup oleh skill terpisah; skill ini berfokus pada target keandalan.

Detail

Deskripsi asli dari pembuat

Use when defining or reviewing SLOs, SLIs, error budgets or burn-rate alerts. Designs SLOs with slo_designer.py, computes budgets and multi-window burn-rate thresholds with error_budget_calculator.py and catches common SLO bugs with slo_review.py.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9604
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa