Skip to content

HabitaNexus/monorepo / skills/system-reliability-engineering/slo-sli-sla

slo-sli-sla

Verified

FileKindSize
SKILL.mdskill md14.7 KB
examples/usage_example.pyscript4.0 KB
scripts/README.mdmarkdown1.1 KB
scripts/error_budget.pyscript7.3 KB
scripts/requirements.txtmanifest312 B
scripts/slo_api.pyscript10.2 KB

scripts/README.md

View on GitHub
# SLO/SLI/SLA Scripts

Scripts ejecutables para gestión de Service Level Objectives (SLOs), Service Level Indicators (SLIs) y error budgets.

## 📁 Archivos

- **`error_budget.py`** - Calculadora de error budget (CLI standalone)
- **`slo_api.py`** - API REST FastAPI para consultar SLOs desde Prometheus
- **`requirements.txt`** - Dependencias Python

## 🚀 Quick Start

### Error Budget Calculator

No requiere instalación (usa solo stdlib):

```bash
# Ejemplo básico
python error_budget.py \
  --slo-target 0.9995 \
  --total-requests 1000000 \
  --error-requests 400

# Modo interactivo
python error_budget.py --slo-target 0.9995 --interactive
```

### SLO API Service

Instalación:

```bash
pip install -r requirements.txt
```

Ejecución:

```bash
# Desarrollo
uvicorn slo_api:app --reload

# Producción
uvicorn slo_api:app --host 0.0.0.0 --port 8000 --workers 4
```

## 📖 Documentación Completa

Ver [`../SKILL.md`](../SKILL.md) para documentación completa y ejemplos de uso.

## 🔗 Ejemplos

Ver [`../examples/usage_example.py`](../examples/usage_example.py) para ejemplos programáticos.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall