/project-toolkit:slo-designerfrom project-toolkit
Guides users through designing SLOs with SLIs, targets, alerting thresholds, and error budget calculations following Google SRE best practices.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
When this skill activates, you guide users through designing production-ready Service Level Objectives. Your role is to help identify critical user journeys, define measurable SLIs, set appropriate targets, and calculate error budgets.
Activate when the user:
Design SLOs for my serviceDefine reliability targetsCalculate error budgetDefine SLIs for this systemWhat should my availability target be?Use this skill when:
Use chaos-experiment instead when:
Use threat-modeling instead when:
| Term | Definition | Example |
|---|---|---|
| SLI | Service Level Indicator. Metric measuring service quality. | p99 latency, availability % |
| SLO | Service Level Objective. Target value for an SLI. | p99 < 200ms, 99.9% availability |
| SLA | Service Level Agreement. Contract with consequences. | 99.95% uptime or credits issued |
| Error Budget | Allowed failures before SLO breach. | 0.1% = 43 min/month downtime |
| Burn Rate | Speed of error budget consumption. | 2x burn = budget exhausted in 15 days |
Percentage of successful requests.
availability_sli = (successful_requests / total_requests) * 100
Good for: APIs, web services, databases.
Response time percentiles (p50, p95, p99).
latency_sli = percentile(response_times, 99)
Good for: User-facing endpoints, real-time systems.
Requests per second (RPS) or transactions.
throughput_sli = requests_per_second / expected_baseline
Good for: Batch processing, high-volume systems.
Percentage of 5xx responses.
error_rate_sli = (error_responses / total_responses) * 100
Good for: APIs, microservices.
Percentage of correct results.
correctness_sli = (correct_results / total_results) * 100
Good for: Data pipelines, ML inference, calculations.
1. DISCOVERY Identify critical user journeys
| What matters to users?
v
2. SLI DEFINITION Select measurable indicators
| How do we measure success?
v
3. SLO TARGETS Set achievable targets
| What should we promise?
v
4. ERROR BUDGET Calculate allowed failures
| How much can we fail?
v
5. ALERTING Define burn rate alerts
| When do we intervene?
v
6. DOCUMENTATION Generate SLO document
Calculate error budget for a given SLO target:
( for d in "${CLAUDE_PLUGIN_ROOT}" "${COPILOT_PLUGIN_ROOT}" .claude; do if [ -n "$d" ] && [ -f "$d/lib/ptk_run.py" ]; then exec python3 "$d/lib/ptk_run.py" skills/slo-designer/scripts/calculate_error_budget.py --target 99.9 --period monthly; fi; done; echo "ptk_run: no plugin root holds lib/ptk_run.py" >&2; exit 2 )
Arguments:
| Argument | Required | Description |
|---|---|---|
--target | Yes | SLO target percentage (e.g., 99.9) |
--period | No | Time period: monthly, weekly, daily, quarterly (default: monthly) |
--format | No | Output format: text, json, markdown (default: text) |
Exit Codes:
Generate a complete SLO document from configuration:
uv run python .claude/skills/slo-designer/scripts/generate_slo_document.py \
--config path/to/slo-config.yaml \
--output docs/slo-document.md
Use these questions to gather requirements:
| Service Type | Typical Availability | Latency (p99) | Error Rate |
|---|---|---|---|
| Consumer Web | 99.9% (43 min/month) | < 500ms | < 1% |
| Internal API | 99.5% (3.6 hr/month) | < 1s | < 2% |
| B2B Critical | 99.95% (22 min/month) | < 200ms | < 0.1% |
| Batch Jobs | 99% (7.3 hr/month) | N/A | < 5% |
| Real-time | 99.99% (4 min/month) | < 100ms | < 0.01% |
Choosing a target:
| SLO Target | Error Budget | Monthly Downtime | Weekly Downtime |
|---|---|---|---|
| 99% | 1% | 7h 18m | 1h 41m |
| 99.5% | 0.5% | 3h 39m | 50m |
| 99.9% | 0.1% | 43m 50s | 10m |
| 99.95% | 0.05% | 21m 55s | 5m |
| 99.99% | 0.01% | 4m 23s | 1m |
| 99.999% | 0.001% | 26s | 6s |
Configure alerts based on budget consumption rate:
| Alert Severity | Burn Rate | Time to Exhaust | Action |
|---|---|---|---|
| Warning | 1x | 30 days | Monitor closely |
| Elevated | 2x | 15 days | Investigate |
| Urgent | 6x | 5 days | Prioritize fix |
| Critical | 14.4x | 2 days | Immediate action |
| Emergency | 36x | 20 hours | All hands |
Multi-window alerting:
Alert if:
burn_rate_1h > 14.4 AND burn_rate_6h > 6
OR
burn_rate_6h > 6 AND burn_rate_24h > 2
Generate this structure:
# SLO Document: [Service Name]
## Service Overview
- **Name**: [Service name]
- **Owner**: [Team name]
- **Description**: [What the service does]
- **Business Criticality**: [Low/Medium/High/Critical]
## Critical User Journeys
1. [Journey 1]: [Description]
2. [Journey 2]: [Description]
3. [Journey 3]: [Description]
## Service Level Indicators
### SLI 1: Availability
- **Definition**: Percentage of successful HTTP requests
- **Measurement**: `sum(rate(http_requests_total{status!~"5.."}[5m])) / sum(rate(http_requests_total[5m]))`
- **Data Source**: Prometheus metrics
### SLI 2: Latency
- **Definition**: 99th percentile response time
- **Measurement**: `histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))`
- **Data Source**: Prometheus metrics
## Service Level Objectives
| SLI | Target | Measurement Window | Rationale |
|-----|--------|-------------------|-----------|
| Availability | 99.9% | 30-day rolling | Industry standard for user-facing APIs |
| Latency (p99) | < 200ms | 30-day rolling | User research shows frustration above 200ms |
## Error Budgets
| SLO | Error Budget | Monthly Allowance | Current Consumption |
|-----|--------------|-------------------|---------------------|
| Availability 99.9% | 0.1% | 43 minutes | [Current] |
| Latency p99 < 200ms | 0.1% | 43 minutes | [Current] |
## Alerting Strategy
### Page-worthy Alerts (Critical)
- Burn rate > 14.4x for 1 hour AND > 6x for 6 hours
- Action: Immediate response required
### Ticket-worthy Alerts (Warning)
- Burn rate > 2x for 24 hours
- Action: Investigate within 1 business day
## Implementation Checklist
- [ ] Metrics collection configured
- [ ] SLO dashboard created
- [ ] Alerts configured
- [ ] Runbook documented
- [ ] Team trained on error budget policy
When error budget is exhausted:
When error budget is healthy:
| Avoid | Why | Instead |
|---|---|---|
| Setting SLO equal to SLA | No buffer for error budget | SLO should be stricter than SLA |
| Targeting 100% availability | Impossible and prevents feature velocity | Use 99.9% or lower based on service type |
| Internal metrics as SLIs | Do not reflect user experience | Measure from user perspective (latency, errors) |
| No error budget policy | SLOs become meaningless targets | Define actions when budget is exhausted |
| Same SLO for all services | Different services have different needs | Match target to business criticality |
After designing SLOs:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
slo, sli, error-budget, reliability, sre
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkit2 plugins in one repository ship this exact skill · first indexed Nov 13, 2026
105 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator).Other plugins' skills for the same job