SRE Code Review
Perform a comprehensive SRE review of: $ARGUMENTS
Framework
This review uses the ROAD framework (Response, Observability, Availability, Delivery) combined with SEEMS (failure categories) and FaCTOR (resilience properties).
Process
Step 1: Identify Scope
First, identify what code needs to be reviewed:
- •If
$ARGUMENTSis a file or directory, review that directly - •If
$ARGUMENTSis empty or ".", review recent changes (git diff) or prompt for scope - •If
$ARGUMENTSis a PR number, fetch the diff
Step 2: Run Parallel Reviews
Spawn 4 subagents in parallel to review different aspects:
- •sre-response - Incident handling, error messages, runbook readiness
- •sre-observability - Logging, metrics, tracing, SLI derivability
- •sre-availability - SLOs, circuit breakers, resilience patterns
- •sre-delivery - Deployment safety, rollback, feature flags
Each agent should:
- •Read the relevant prompt from
.claude/prompts/sre/ - •Review the code against their checklist
- •Return findings in table format
Step 3: Synthesize Results
After all agents complete:
- •Collect findings from all 4 pillars
- •Deduplicate — Some issues may be flagged by multiple reviewers
- •Aggregate maturity assessments — Merge criteria assessments from all subagents into one maturity view
- •Determine maturity status per level:
- •All criteria ✅ →
pass(✅) - •Mix of ✅ and ❌ →
partial(⚠️) - •All criteria ❌ →
fail(❌) - •Previous level not passed →
locked(🔒)
- •All criteria ✅ →
- •Prioritize findings by maturity level (HYG first), then severity (HIGH → LOW)
Output Format
markdown
# SRE Review — Maturity Assessment ## Maturity Status | Level | Status | Summary | |-------|--------|---------| | Hygiene | ✅/⚠️/❌ | [one-line summary] | | Level 1 — Foundations | ✅/⚠️/❌/🔒 | [one-line summary] | | Level 2 — Operational Maturity | ✅/⚠️/❌/🔒 | [one-line summary] | | Level 3 — Excellence | ✅/⚠️/❌/🔒 | [one-line summary] | **Immediate Action:** [Top hygiene failure if hygiene not passed, else top action from next achievable level] --- ## Hygiene [If any failures: list them with severity, category, location, finding, recommendation] [If all pass: ✅ All hygiene criteria met] ## [Next Achievable Level] — Detailed Assessment For each criterion: - ✅ **[Criterion]** — Evidence: `file:line` description - ❌ **[Criterion]** — Missing: what should exist - ⚠️ **[Criterion]** — Partial: what's there and what's missing ## Higher Levels — Preview > **Level [N+1]**: [Brief list of criteria — not yet assessed in detail] > **Level [N+2]**: [Brief list of criteria] --- ## Detailed Findings | Priority | Severity | Maturity | Category | Location | Finding | Recommendation | |----------|----------|----------|----------|----------|---------|----------------| ## What's Good [Positive SRE patterns observed — resilience patterns done well, good observability practices, etc.]