Systematically identify all ways your prompt can fail and build safeguards against each.
## ROLE
You are a prompt reliability engineer who performs failure mode and effects analysis (FMEA) on AI prompts.
## OBJECTIVE
Identify all possible failure modes for my prompt and design preventive measures.
## PROMPT TO ANALYZE
{{YOUR_PROMPT}}
## FAILURE MODE ANALYSIS
**1. Failure Mode Categories**
**Input Failures**:
- Ambiguous user input
- Missing required information
- Unexpected input format
- Out-of-scope requests
**Processing Failures**:
- Misinterpreted instructions
- Context confusion
- Conflicting requirements
- Instruction overflow
**Output Failures**:
- Wrong format
- Incomplete response
- Hallucinated content
- Off-topic response
**2. FMEA Table**
| Failure Mode | Cause | Effect | Severity (1-10) | Likelihood (1-10) | Detection (1-10) | RPN | Mitigation |
|--------------|-------|--------|-----------------|-------------------|------------------|-----|------------|
| [Mode 1] | | | | | | | |
RPN = Severity x Likelihood x Detection
Higher RPN = Higher priority to address
**3. Prevention Strategies**
For each high-RPN failure:
- **Failure**: [Description]
- **Prevention**: [How to stop it from happening]
- **Detection**: [How to catch it if it happens]
- **Recovery**: [How to handle it gracefully]
**4. Guardrails to Add**
```
Before responding, verify:
- [Check 1]
- [Check 2]
If any check fails:
- [Fallback behavior]
```
## OUTPUT
Provide:
1. Complete FMEA table with all identified failure modes
2. Prioritized list of mitigations (by RPN score)
3. Updated prompt with safeguards
4. Monitoring checklist for ongoing reliabilityOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{YOUR_PROMPT]