sre-templates
Provides standard templates for SRE documentation like SLO/SLI definitions and incident reviews.
Install
mkdir -p .claude/skills/sre-templates && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12284" && unzip -o skill.zip -d .claude/skills/sre-templates && rm skill.zipInstalls to .claude/skills/sre-templates
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Operational document templates for SRE artifacts — SLO definitions, alerting rules, runbooks, capacity plans, and post-incident reviews. Referenced by the SRE Engineer agent.Key capabilities
- →Generate Service Level Objective (SLO) definitions
- →Create alerting rule configurations
- →Format runbooks for incident response
- →Draft capacity planning documents
- →Produce post-incident review templates
How it works
The skill generates structured markdown templates based on the requested SRE artifact type, such as SLO definitions or alerting rules. All generated output is directed to the `docs/sre/` directory.
Inputs & outputs
When to use sre-templates
- →Defining new service level indicators and SLO targets
- →Drafting infrastructure alerting rules
- →Creating capacity plans
- →Documenting post-incident reviews
About this skill
SRE Templates
Templates for SRE operational documents. All output goes to docs/sre/.
SLO/SLI Definition
Write to docs/sre/slos.md:
# Service Level Objectives
## Service: [Name]
### SLI: Availability
- **Definition:** Proportion of successful requests (HTTP 2xx/3xx) over total requests
- **Measurement:** `count(status < 500) / count(total)` over rolling 30-day window
- **SLO Target:** 99.9% (43.8 minutes/month error budget)
- **Data Source:** Load balancer access logs / Prometheus metrics
### SLI: Latency
- **Definition:** Proportion of requests served within threshold
- **Measurement:** `count(duration < 200ms) / count(total)` over rolling 30-day window
- **SLO Target:** 95% of requests < 200ms, 99% < 1000ms
- **Data Source:** Application metrics (histogram)
### SLI: Correctness
- **Definition:** Proportion of responses that return the expected result
- **Measurement:** Synthetic probe success rate
- **SLO Target:** 99.99%
- **Data Source:** Synthetic monitoring / canary checks
## Error Budget Policy
| Budget Remaining | Action |
|-----------------|--------|
| > 50% | Normal development velocity |
| 25-50% | Prioritize reliability work alongside features |
| 10-25% | Halt non-critical feature work; focus on reliability |
| < 10% | Freeze all changes except reliability fixes |
Alerting Rules
Write alert configurations to docs/sre/alerts.md or directly to monitoring config files:
# Alert: [Name]
**Severity:** critical / warning / info
**Condition:** [metric] [operator] [threshold] for [duration]
**Description:** What this alert means in plain language
**Impact:** What users experience when this fires
**Runbook:** docs/sre/runbooks/[name].md
## Examples
### High Error Rate
- **Condition:** `error_rate > 1%` for 5 minutes
- **Severity:** critical
- **Runbook:** docs/sre/runbooks/high-error-rate.md
### Elevated Latency
- **Condition:** `p99_latency > 2s` for 10 minutes
- **Severity:** warning
- **Runbook:** docs/sre/runbooks/elevated-latency.md
Runbook Format
Write runbooks to docs/sre/runbooks/<incident-type>.md:
# Runbook: [Incident Type]
## Overview
What this incident looks like and what typically causes it.
## Detection
How this incident is detected (alert name, dashboard, user report).
## Impact
What users experience during this incident.
## Severity Assessment
| Condition | Severity |
|-----------|----------|
| [condition] | SEV1 — critical |
| [condition] | SEV2 — major |
| [condition] | SEV3 — minor |
## Diagnosis Steps
1. Check [metric/dashboard] for [what to look for]
2. Run `[command]` to verify [condition]
3. Check [log source] for [pattern]
## Remediation Steps
### Immediate (Stop the Bleeding)
1. [Step with exact commands]
2. [Step with exact commands]
### Root Cause Fix
1. [Investigation steps]
2. [Fix steps]
## Escalation
- **If not resolved in 15 minutes:** Escalate to [team/person]
- **If customer-facing data loss:** Notify [stakeholder]
## Post-Incident
- [ ] Update incident timeline
- [ ] Create post-incident review document
- [ ] File follow-up tickets for permanent fixes
Capacity Plan
Write to docs/sre/capacity.md:
# Capacity Plan: [Service]
## Current Baseline
| Resource | Current Usage | Capacity | Utilization |
|----------|--------------|----------|-------------|
| CPU | ... | ... | ...% |
| Memory | ... | ... | ...% |
| Storage | ... | ... | ...% |
| Network | ... | ... | ...% |
| DB connections | ... | ... | ...% |
## Growth Projections
| Metric | Current | +3 months | +6 months | +12 months |
|--------|---------|-----------|-----------|------------|
| Requests/sec | ... | ... | ... | ... |
| Storage (GB) | ... | ... | ... | ... |
| Users | ... | ... | ... | ... |
## Scaling Thresholds
| Resource | Scale-Up Trigger | Scale-Down Trigger | Action |
|----------|-----------------|-------------------|--------|
| CPU | > 70% for 10min | < 30% for 30min | Add/remove instance |
| Memory | > 80% | < 40% for 30min | Add/remove instance |
| DB connections | > 80% pool | < 20% pool | Adjust pool size |
## Recommendations
[Specific actions to take based on projections]
Post-Incident Review
Write to docs/sre/post-incident/YYYY-MM-DD-<title>.md:
# Post-Incident Review: [Title]
**Date:** YYYY-MM-DD
**Duration:** [start time] — [end time] ([total duration])
**Severity:** SEV[1-4]
**Author:** [name]
## Summary
[1-2 sentence description of what happened]
## Impact
- **Users affected:** [number or percentage]
- **Duration of impact:** [time]
- **Data loss:** [yes/no, details]
## Timeline
| Time | Event |
|------|-------|
| HH:MM | [event] |
| HH:MM | [event] |
## Root Cause
[What actually broke and why]
## Contributing Factors
- [Factor 1]
- [Factor 2]
## What Went Well
- [Thing that helped]
## What Went Poorly
- [Thing that hurt]
## Action Items
| Action | Owner | Priority | Ticket |
|--------|-------|----------|--------|
| [action] | [owner] | P0/P1/P2 | [link] |
## Lessons Learned
[What we learned that applies beyond this incident]
Incident Severity Levels
Write to docs/sre/incident-process.md:
| Severity | Impact | Response Time | Communication | Example |
|---|---|---|---|---|
| SEV1 | Complete outage or data loss | Immediate page | Status page + stakeholder notification | API returning 500 for all users |
| SEV2 | Major feature degraded | 15 minutes | Status page update | Search is down but CRUD works |
| SEV3 | Minor feature degraded | 1 hour | Internal notification | Slow image uploads |
| SEV4 | Cosmetic or low-impact | Next business day | Ticket filed | Dashboard chart rendering glitch |
When not to use it
- →When the output should not be stored in the `docs/sre/` directory
- →When creating operational documents outside of SLOs, alerts, runbooks, capacity plans, or post-incident reviews
- →When the user requires a format other than markdown
Limitations
- →All output is written to the `docs/sre/` directory
- →Templates are provided in markdown format only
- →The skill only generates templates for SLOs, alerting rules, runbooks, capacity plans, and post-incident reviews
How it compares
This skill provides pre-defined markdown templates for SRE documents, which standardizes the format and content compared to manually creating each document from scratch.
Compared to similar skills
sre-templates side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| sre-templates (this skill) | 0 | 6mo | No flags | Beginner |
| postmortem-writing | 17 | 2mo | No flags | Beginner |
| system-info | 1 | 6mo | Review | Beginner |
| it-operations | 1 | 7mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
postmortem-writing
wshobson
Write effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents, or improving incident response processes.
system-info
Xxiii8322766509
系统信息查询技能。用于获取电脑硬件信息、系统状态、进程列表、磁盘空间等。当用户询问电脑配置、系统状态或性能信息时使用。
it-operations
davila7
Manages IT infrastructure, monitoring, incident response, and service reliability. Provides frameworks for ITIL service management, observability strategies, automation, backup/recovery, capacity planning, and operational excellence practices.
pagerduty-automation
T-Sunm
Automate PagerDuty tasks via Rube MCP (Composio): manage incidents, services, schedules, escalation policies, and on-call rotations. Always search tools first for current schemas.
oly
slaveOftime
Use when starting a long-running or interactive CLI command with oly, especially when it may need later input, should be detachable, or should keep durable logs for supervision and resume.
incident-response
fabioc-aloha
Calm, systematic crisis handling — from detection through post-mortem to prevention