This prompt is for reliability engineers, SREs, and system architects who need to conduct a structured Failure Mode and Effects Analysis (FMEA) on a specific system component, service, or data flow. Use it when you have a defined scope, a known function, and you need a ranked inventory of failure modes with severity, occurrence, and detection scores. The output is a prioritized risk register, not a general resilience review. This prompt assumes you already have a component design or architecture description to analyze. It does not replace a full system-level FMEA or safety-certified analysis required by regulatory standards like ISO 26262 or DO-178C.
Prompt
Failure Mode and Effects Analysis Prompt

When to Use This Prompt
Defines the ideal scenario, required inputs, and boundaries for using the FMEA prompt to produce a structured risk register.
The ideal input is a focused description of a single function or component—for example, a payment authorization service, a message queue consumer, or a database connection pool. The prompt works best when you provide concrete details about the component's inputs, outputs, dependencies, and failure boundaries. Avoid feeding it an entire system architecture document; the model will produce a shallow, unfocused analysis. Instead, run the prompt multiple times for different components and aggregate the results into a system-level risk register. Each run should target one function, one failure scope, and one set of operational assumptions.
Do not use this prompt when you need a certified safety analysis, when the component design is still undefined, or when you lack the engineering judgment to validate the model's severity and occurrence scores. The prompt generates a starting point for expert review, not a final deliverable. Always have a domain expert review the failure mode enumeration for completeness and adjust the Risk Priority Number (RPN) scores based on real operational data. If the component handles safety-critical functions, financial ledgers, or irreversible side effects, add a human approval step before any generated mitigations are committed to an implementation backlog.
Use Case Fit
Where this prompt works, where it fails, and what you must provide before running it.
Good Fit: Structured Design Reviews
Use when: You have a defined component, service, or data flow diagram and need a systematic failure mode inventory. Guardrail: Provide explicit system boundaries and component interfaces in [CONTEXT] to prevent the model from analyzing unrelated subsystems.
Bad Fit: Runtime Incident Triage
Avoid when: You are in an active incident and need root cause analysis from live telemetry. Guardrail: This prompt performs a design-time analysis. For runtime incidents, use an Operational Incident prompt with log context and metric data instead.
Required Input: Component Specification
What to watch: The model hallucinates failure modes for components it doesn't understand. Guardrail: The [COMPONENT_SPEC] placeholder must include function, dependencies, I/O contracts, and known constraints. Vague descriptions produce vague (and useless) failure modes.
Required Input: Scoring Rubric
What to watch: Without explicit severity, occurrence, and detection definitions, RPN scores are inconsistent across runs. Guardrail: Define your 1-10 scales inside [RPN_SCALE_DEFINITIONS] with concrete examples for each level to anchor the model's judgment.
Operational Risk: False Confidence
What to watch: The model presents a comprehensive-looking table that misses domain-specific failure modes only an experienced SRE would know. Guardrail: Treat the output as a starting inventory, not a complete analysis. Always run a human expert review pass before using results for safety-critical systems.
Operational Risk: Mitigation Hallucination
What to watch: The model recommends mitigations that are impossible given your tech stack or organizational constraints. Guardrail: Add a [CONSTRAINTS] block specifying unavailable patterns (e.g., 'No multi-region failover available') and require the model to flag any assumption it makes about your infrastructure.
Copy-Ready Prompt Template
A reusable FMEA prompt with square-bracket placeholders for component, system context, and output schema. Paste into your AI harness, replace variables, and run.
This prompt template guides a structured Failure Mode and Effects Analysis for a single system component. It requires a detailed description of the component, its functions, and its dependencies. The model will enumerate potential failure modes, assign severity, occurrence, and detection ratings, calculate Risk Priority Numbers (RPNs), and recommend mitigations. The output is a ranked inventory suitable for reliability engineering review.
textYou are a reliability engineer conducting a Failure Mode and Effects Analysis (FMEA). Analyze the following system component for potential failure modes. COMPONENT NAME: [COMPONENT_NAME] COMPONENT DESCRIPTION: [COMPONENT_DESCRIPTION] COMPONENT FUNCTIONS: [FUNCTION_LIST] SYSTEM CONTEXT: [SYSTEM_CONTEXT] DEPENDENCIES: [DEPENDENCY_LIST] CONSTRAINTS: [CONSTRAINTS] For each identified failure mode, provide: - Failure Mode: concise description of how the component could fail to perform its function - Potential Effect(s): impact on the system, users, or downstream components - Severity (S): 1-10 rating where 10 is catastrophic system failure or safety hazard - Potential Cause(s): root cause or triggering condition - Occurrence (O): 1-10 rating where 10 is almost certain to occur under normal operation - Current Controls: existing detection or prevention mechanisms - Detection (D): 1-10 rating where 10 means no current control can detect the failure before impact - Risk Priority Number (RPN): S × O × D - Recommended Mitigation(s): specific actions to reduce severity, occurrence, or improve detection OUTPUT FORMAT: Return a JSON object with this exact schema: { "component": "string", "analysis_date": "string (ISO 8601)", "failure_modes": [ { "id": "string (FM-001, FM-002, ...)", "failure_mode": "string", "potential_effects": ["string"], "severity": number, "potential_causes": ["string"], "occurrence": number, "current_controls": ["string"], "detection": number, "rpn": number, "recommended_mitigations": ["string"] } ], "rpn_summary": { "highest_rpn_items": ["string (failure mode IDs)"], "average_rpn": number, "items_requiring_immediate_action": ["string (IDs with RPN > 100 or severity > 7)"] } } Before returning the JSON, verify: 1. At least one failure mode is identified per function listed 2. All RPN values are correctly calculated as S × O × D 3. Severity ratings above 7 have corresponding recommended mitigations 4. No detection rating is 1 unless there is a proven automatic detection mechanism described in current controls If [RISK_LEVEL] is "high" or "critical", add a "human_review_required" boolean field set to true for any failure mode with severity >= 8.
Adaptation guidance: Replace all square-bracket placeholders with your specific component data. The [FUNCTION_LIST] should enumerate every function the component performs—the model uses this to ensure complete failure mode coverage. Set [RISK_LEVEL] to "low", "medium", "high", or "critical" to control the human-review flagging behavior. The output schema is strict JSON; if your harness requires a different format, modify the OUTPUT FORMAT section but preserve the field semantics. For components with safety implications, keep the severity scale anchored to real harm categories rather than abstract ratings. Run the output through a JSON schema validator before ingesting into your reliability tracking system.
Prompt Variables
Required inputs for the Failure Mode and Effects Analysis prompt. Each placeholder must be populated before execution to produce a reliable, ranked failure mode inventory with accurate Risk Priority Numbers.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[SYSTEM_COMPONENT] | Identifies the specific system, service, or module under analysis | payment-gateway-api | Must be a single named component; reject if empty or describes multiple unrelated systems |
[COMPONENT_BOUNDARY] | Defines the scope of analysis including inputs, outputs, and dependencies | Accepts card token from checkout-service; calls bank-adapter; returns authorization result | Must list at least one input and one output; reject if purely internal with no interfaces |
[FAILURE_MODE_CATEGORIES] | Constrains the types of failures to analyze for completeness | Function loss, partial function, intermittent, unintended function, over-function, timing violation | Must contain at least 4 categories; reject if categories overlap semantically |
[SEVERITY_SCALE] | Defines the severity scoring criteria with anchors for each level | 1=cosmetic, 4=workaround exists, 7=function loss no safety, 10=safety or data loss | Must define at least 4 levels with distinct anchors; reject if gaps or overlaps in criteria |
[OCCURRENCE_SCALE] | Defines the likelihood scoring criteria with frequency anchors | 1=once per 10M requests, 4=once per 100K, 7=once per 1K, 10=once per 10 | Must include frequency or probability anchors; reject if subjective-only without quantification |
[DETECTION_SCALE] | Defines the detectability scoring criteria for each level | 1=detected at design review, 4=caught in CI, 7=alert fires after failure, 10=no detection possible | Must cover pre-production and production detection; reject if only covers one phase |
[OUTPUT_FORMAT] | Specifies the required output structure including fields and sort order | JSON array sorted by RPN descending with fields: failure_mode, effect, cause, severity, occurrence, detection, rpn, mitigation, detection_control | Must specify sort order and required fields; reject if missing RPN calculation instruction |
[MITIGATION_REQUIREMENT] | Defines the threshold and format for required mitigation recommendations | All failure modes with RPN > 100 or severity > 7 require at least one specific mitigation action | Must define numeric threshold; reject if threshold is ambiguous or missing |
Implementation Harness Notes
How to wire the FMEA prompt into a reliability engineering workflow with validation, scoring checks, and human review gates.
The FMEA prompt is not a one-shot report generator. It should be embedded in a harness that validates the output schema, recalculates Risk Priority Numbers (RPNs), flags missing failure modes, and routes high-severity findings for human review before the analysis is accepted. The harness is responsible for making the prompt's output trustworthy enough to act on, especially when the analysis informs architectural changes or operational runbooks.
Start by enforcing the output schema. Parse the model's JSON response and validate that every failure mode entry contains the required fields: component, function, failure_mode, effect, severity, occurrence, detection, rpn, and recommended_mitigation. Reject entries where severity, occurrence, or detection fall outside the 1–10 range. Recalculate rpn as severity * occurrence * detection and flag any mismatch between the model's stated RPN and the computed value. If more than 10% of entries have RPN mismatches, discard the entire response and retry with a stricter instruction that emphasizes arithmetic accuracy. Log every validation failure for prompt improvement cycles.
The harness should also check for completeness. Maintain a known list of components and functions from your system architecture documentation. After parsing the model's output, compare the enumerated failure modes against this expected scope. Flag any component that has zero failure modes as a potential gap. For high-criticality systems (e.g., payment processing, authentication, safety controls), require a minimum number of failure modes per component. If the model's coverage falls below this threshold, append a follow-up prompt that asks specifically for failure modes on the uncovered components, using the existing analysis as context.
Human review is mandatory for any failure mode with severity >= 8 or rpn >= 200. Route these entries to a review queue where a reliability engineer can confirm the scoring, adjust the mitigation recommendation, and link the finding to an incident ticket or architecture decision record. The harness should also track whether the same high-severity failure mode appears across multiple analysis runs, which may indicate a systemic gap that the model consistently identifies but the team hasn't yet addressed. Store all FMEA outputs with a timestamp, model version, and prompt version so you can compare analyses over time as the system evolves.
For model selection, prefer a model with strong structured output support and arithmetic reliability. GPT-4o and Claude 3.5 Sonnet both perform well on this task when output is constrained to a strict JSON schema. Avoid smaller or older models that may hallucinate RPN values or skip detection scoring. If you're running FMEA on a large system with many components, consider splitting the analysis into multiple calls—one per subsystem—and merging the results. This reduces the risk of the model truncating the failure mode inventory due to output length limits. Always set a max_tokens value high enough to accommodate the expected number of failure modes, and check for truncation in the harness before accepting the output.
Expected Output Contract
Defines the required fields, types, and validation rules for the structured FMEA output. Use this contract to build your parser, validator, and downstream ingestion logic.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
failure_mode_id | string (kebab-case) | Matches pattern | |
component_name | string | Non-empty string. Must match a component listed in the [SYSTEM_ARCHITECTURE] input context. | |
failure_mode_description | string | Minimum 20 characters. Must describe a specific, plausible failure, not a generic category. | |
potential_effects | array of strings | Array must contain at least 1 item. Each string must be a distinct, user-visible or system-level consequence. | |
severity_score | integer (1-10) | Integer between 1 and 10 inclusive. 10 represents catastrophic or safety-critical impact. | |
occurrence_score | integer (1-10) | Integer between 1 and 10 inclusive. 10 represents near-certain occurrence under normal operation. | |
detection_score | integer (1-10) | Integer between 1 and 10 inclusive. 1 represents near-certain detection; 10 represents undetectable by current controls. | |
risk_priority_number | integer | Must equal | |
current_controls | array of strings | If present, each string must describe an existing mitigation, monitoring check, or design safeguard. | |
recommended_mitigation | string | Non-empty string. Must propose a concrete design change, monitoring addition, or process control, not a vague suggestion. |
Common Failure Modes
FMEA prompts fail in predictable ways. These are the most common failure modes and the practical guardrails that prevent them.
Incomplete Failure Mode Enumeration
What to watch: The model lists obvious failure modes but misses rare, cascading, or cross-boundary failures. This produces a false sense of completeness. Guardrail: Provide a structured taxonomy of failure categories (e.g., crash, hang, incorrect result, late result, resource leak) in the prompt and require the model to address each category explicitly before declaring the analysis complete.
Hallucinated Severity or Occurrence Scores
What to watch: The model invents plausible but unsupported RPN scores when historical incident data or telemetry is not provided. These fabricated numbers drive incorrect prioritization. Guardrail: Require the model to cite the evidence source for every score. If no evidence exists, the model must output "score": null and flag the gap rather than guessing.
Detection Score Inflation
What to watch: The model assumes ideal monitoring coverage and assigns unrealistically low detection scores, masking risks that would surface too late in production. Guardrail: Include a checklist of existing monitoring capabilities in the prompt context. The model must cross-reference each failure mode against actual detection mechanisms and default to a high detection score when coverage is unverified.
Mitigation Drift Toward Generic Advice
What to watch: Under-specified prompts produce vague mitigations like 'add monitoring' or 'improve testing' that add no operational value. Guardrail: Constrain the output schema to require a concrete, testable mitigation action with an owner role, a verification method, and a falsifiable acceptance criterion for each high-RPN failure mode.
Scope Creep Across System Boundaries
What to watch: The analysis bleeds across component boundaries, mixing failure modes from upstream dependencies, downstream consumers, and the target component into one unactionable list. Guardrail: Define the system boundary explicitly in the prompt with an include/exclude list of interfaces. Require the model to tag each failure mode with its boundary scope and filter out-of-scope items before final output.
Silent Omission of Human-Operator Failures
What to watch: The model focuses exclusively on software and hardware failures, ignoring operator errors, misconfiguration, runbook mistakes, and alert fatigue that dominate real incidents. Guardrail: Add a mandatory human-factors category to the failure mode taxonomy. Require at least one operator-error scenario per component interface and validate that the output includes human-action failures before accepting the analysis.
Evaluation Rubric
Use this rubric to evaluate the quality of an FMEA output before integrating it into a reliability review or automated pipeline. Each criterion targets a specific failure mode of the prompt itself.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Failure Mode Completeness | Output enumerates failure modes for every component or function listed in [SYSTEM_COMPONENTS]. No major functional block is skipped. | Output omits a component from the input list or groups unrelated components into a single vague failure mode. | Parse output JSON. Extract all referenced component names. Assert set equality with the input [SYSTEM_COMPONENTS] list. |
Risk Priority Number (RPN) Accuracy | Calculated RPN equals Severity × Occurrence × Detection for each failure mode. No arithmetic errors. | RPN value does not match the product of the three input scores. Scores are missing or non-numeric. | For each failure mode in the output, compute expected_rpn = severity * occurrence * detection. Assert expected_rpn == output_rpn. |
Severity Score Justification | Each severity score is accompanied by a concrete, component-specific consequence (e.g., 'data loss in user table' not just 'system failure'). | Severity justification is generic, missing, or copies the failure mode description verbatim without adding consequence detail. | For each failure mode, check that the 'severity_justification' field is non-null, length > 50 chars, and contains a noun phrase identifying the impacted asset. |
Mitigation Actionability | Every recommended mitigation includes a specific design change, configuration value, or code pattern. No vague advice like 'improve monitoring'. | Mitigation is a generic platitude, a restatement of the failure mode, or a suggestion to 'add testing' without specifying what to test. | For each mitigation string, assert it contains at least one actionable verb (e.g., 'set', 'add', 'configure', 'implement') and a technical noun (e.g., 'circuit breaker', 'timeout', 'retry budget'). |
Detection Method Specificity | Each detection method names a specific signal, log query, metric threshold, or alert condition. Not just 'monitoring' or 'testing'. | Detection method is a vague category like 'logging' or 'user report' without specifying the exact trigger or query. | For each detection method, assert it contains a metric name, log pattern, or threshold value. Reject strings shorter than 30 characters. |
Output Schema Compliance | Output is valid JSON matching the [OUTPUT_SCHEMA] exactly. All required fields present. No extra top-level keys. | Output is missing required fields, contains extra keys, or is not parseable JSON. Model added commentary outside the JSON object. | Parse the raw model response with a strict JSON schema validator. Assert no validation errors. Assert no trailing text after the JSON object. |
Risk Ranking Consistency | Failure modes are sorted by RPN descending. Ties are broken by severity, then occurrence. | Output list is unsorted, or a high-severity item with a lower RPN appears above a critical item. | Extract the RPN array from the output. Assert the array is monotonically non-increasing. For ties, assert severity is non-increasing within the tie group. |
No Hallucinated Failure Modes | All failure modes are plausible for the described component. No invented components or physically impossible failures. | Output describes a failure mode for a component not in [SYSTEM_COMPONENTS] or describes a physically impossible scenario (e.g., 'disk failure causes memory leak'). | For each failure mode, check that the referenced component exists in the input list. Manually review a sample for physical plausibility if automating. |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Start with the base FMEA prompt but relax the scoring precision. Focus on generating a complete failure mode inventory rather than perfect RPN calculations. Use a simpler output schema with just failure mode, effect, cause, and current controls. Skip the detection scoring if the team hasn't defined detection methods yet.
codeAnalyze [SYSTEM_COMPONENT] for failure modes. For each failure mode, describe: - Failure mode name - Potential effect on the system - Possible causes - Current controls (if any) Do not calculate RPN scores yet. Focus on completeness of the failure mode list.
Watch for
- Missing entire failure categories (e.g., only listing component failures but ignoring operator errors or external dependency failures)
- Overly generic failure modes that aren't actionable
- Skipping failure modes that seem obvious but still need documentation

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us