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.zip

Installs 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.
174 charsno explicit “when” trigger
Beginner

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

You give it
Request for an SRE operational document type (e.g., 'SLO definition')
You get back
Markdown template for the requested SRE document

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:

SeverityImpactResponse TimeCommunicationExample
SEV1Complete outage or data lossImmediate pageStatus page + stakeholder notificationAPI returning 500 for all users
SEV2Major feature degraded15 minutesStatus page updateSearch is down but CRUD works
SEV3Minor feature degraded1 hourInternal notificationSlow image uploads
SEV4Cosmetic or low-impactNext business dayTicket filedDashboard 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.

SkillInstallsUpdatedSafetyDifficulty
sre-templates (this skill)06moNo flagsBeginner
postmortem-writing172moNo flagsBeginner
system-info16moReviewBeginner
it-operations17moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry