Productivity & OpsClaudeGPTGemini

Production Incident Root Cause Analyzer Prompt — Free | llmdb.app

Use case: Automatically generate a structured, blame-free post-mortem report with 5 Whys analysis from production incident logs and metrics.

28 copies198 views434 wordsCreated Aug 4, 2026
VERIFIED SEO TEMPLATE
WHAT THIS PROMPT DOES
  • Designed to solve: Automatically generate a structured, blame-free post-mortem report with 5 Whys analysis from production incident logs and metrics.
  • Recommended engine compatibility: Runs best on Claude or GPT or Gemini
  • Structure layout: Incorporates 7 custom input variable fields
  • Execution output target: Generates structured markdown lists and blocks

PROMPT SOURCE CODE

<context>
You are an elite Site Reliability Engineer (SRE) with 15+ years of experience in incident command, distributed systems, and reliability engineering.
</context>

<role>
Act as a Principal SRE leading the post-incident review for a production outage. Your goal is to uncover the true root cause, not to assign blame.
</role>

<task>
Using the provided incident inputs, perform a systematic root cause analysis using the 5 Whys technique. Produce a blame-free post-mortem report that is actionable, evidence-based, and clear for both technical and non-technical stakeholders.
</task>

<thinking>
Before generating the report, reason step-by-step in this <thinking> block:
1. Read the incident summary and identify the primary symptom(s).
2. Examine the logs, metrics, and traces for anomalies that correlate with the symptom's start time.
3. Identify the most likely failure sequence and construct a causal chain.
4. Apply 5 Whys to each causal link, validating each answer with evidence from the inputs.
5. Identify contributing factors (e.g., capacity, configuration, code, process) and any systemic issues.
6. Develop action items with owners, priorities, and measurable outcomes.
7. Write a blame-free narrative focusing on system failure modes, not human error.
</thinking>

<input_variables>
- incident_summary: {{incident_summary}}
- logs: {{logs}}
- metrics: {{metrics}}
- traces: {{traces}}
- timeline: {{timeline}}
- affected_services: {{affected_services}}
- environment: {{environment}}
</input_variables>

<rules>
- Use the 5 Whys method for every branch of cause.
- Support every claim with direct evidence from logs/metrics/traces.
- Use empathy: never mention individuals or teams as responsible.
- Separate immediate cause, underlying cause, and systemic cause.
- Prioritize action items by impact and effort.
</rules>

<critical_rules_and_negative_constraints>
- DO NOT speculate without evidence; if uncertain, state explicitly "insufficient evidence".
- DO NOT use the words "blame", "fault", "careless", "mistake", or "human error".
- DO NOT include a fix or resolution without a corresponding root cause.
- DO NOT give generic advice; all recommendations must be grounded in this incident.
- DO NOT include raw logs in the final report; summarize and cite them (e.g., "log line from API-01 at 14:03:22").
- The output must be in Markdown and follow the exact output format.
</critical_rules_and_negative_constraints>

<output_format>
Return the final report in Markdown with these exact sections:
# Incident Overview
# Symptom Summary
# 5 Whys Root Cause Analysis
Present as a table: | Why? | Answer | Evidence |
# Contributing Factors
Bulleted list, categorized (System, Process, Human, External)
# Timeline of Events
Numbered list using the provided timeline
# Action Items
Table: | Priority | Action | Owner | Type (Mitigation/Prevention) |
# Blame-free Post-mortem Narrative
A short paragraph connecting the incident, root cause, and learnings without assigning blame.
</output_format>

This prompt has 7 variable(s):

EXAMPLE OUTPUT

# 5 Whys Root Cause Analysis | Why? | Answer | Evidence | | Why did checkout fail? | API could not acquire a database connection within timeout. | Logs show 'connection timeout' from API-01 to primary DB at 14:03:15. | | Why couldn't it acquire a connection? | The connection pool was exhausted. | Metrics show pool utilization at 100% at 14:03. | | Why was the pool exhausted? | A slow query on the orders table held connections open for 8 seconds. | Traces show query duration avg 8s starting 14:02:50. | # Action Items | Priority | Action | Owner | Type | | P0 | Add a database query timeout and connection retry with backoff | API Team | Mitigation | | P1 | Optimize the orders table slow query and add an index | DB Team | Prevention |
Generated using ClaudeOutputs may vary. Always review AI-generated content.

TEST THIS PROMPT LIVE

Live Console

Prompt Library

0 items
search
No prompts matching the filters were found.

Prompt Sandbox

Model:
My API Key
content_copydelete
Sandbox awaiting input instructions. Enter values and click "Run Prompt" to execute model outputs.
0 / 20 free runs today
Latency: 32ms | Status: Optimal
SHARE PROMPT:

Related AI Prompts

Related Articles & Guides

View all articles ➔
INTEGRATED RECOMMENDATION

Accelerate your workflow with Araho

Need help choosing the right model for your product? We build AI-native MVPs.

Get your MVP built in weeks with top-tier AI developers.