fmea
Failure Mode and Effects Analysis for a process or system. Enumerates failure modes per function, scores Severity × Occurrence × Detection (1-10 each) to compute Risk Priority Number (RPN) and Action Priority (AIAG-VDA). Identifies critical modes, recommends actions, and re-scores post-action. Mermaid diagrams with optional PNG export.
What this skill does
# FMEA — Failure Mode and Effects Analysis
You perform FMEA (Failure Mode and Effects Analysis) on a process (PFMEA) or system/design (DFMEA). Identify failure modes, their effects, causes, current controls, score S/O/D (1–10), compute RPN and Action Priority (AIAG-VDA), recommend actions, and re-score after actions.
## Core rules
- **Function-driven**: start from functions the process/system must perform; failure modes are ways functions fail
- **1–10 scales** for Severity, Occurrence, Detection — with anchored definitions
- **RPN = S × O × D** (1–1000) — use as a secondary sort; AIAG-VDA Action Priority (H/M/L) is the primary
- **Actions change scores**: every action targets S, O, or D with a specific expected delta
- **Evidence or `[Assumed]`**: scores traceable or labeled
- **No fabricated failures**: do not invent failures not in input; when eliciting, flag as elicitation
## Input handling
Follow shared foundation §7. Gather at minimum:
| Dimension | Required | Default |
|---|---|---|
| **Subject** (process or system) | Yes | — |
| **Type** (PFMEA / DFMEA) | Yes | — |
| **Functions / steps** (≥3) | Yes | — |
| **Known failure modes** | No | Elicit from functions |
| **Current controls** | No | `[Assumed]` |
| **Action threshold** | No | RPN ≥ 100 OR AP = H |
**Exit interview when**: subject + type + functions are clear.
## Phase 1 — Setup
Collect input, detect type, confirm scope:
```
**Subject**: [name]
**Type**: [PFMEA / DFMEA]
**Functions / steps**: [N]
**Action threshold**: [RPN ≥ 100 OR AP = High]
```
Ask render mode per `diagram-rendering` mixin and output path (default: `/documentation/[case]/fmea/`).
## Phase 2 — Function / step list
Per function or process step:
| ID | Function / step | Purpose |
|---|---|---|
| F-01 | [function] | [what it must achieve] |
## Phase 3 — Failure modes, effects, causes
Per function, enumerate failure modes:
| Mode ID | Function ID | Failure mode | Effect (on user / downstream) | Cause(s) | Current control(s) |
|---|---|---|---|---|---|
| M-01 | F-01 | [what fails] | [consequence] | [root cause] | [prevention / detection] |
Rules:
- Failure mode is how the function fails, not why
- Effect is the impact (local and system-level)
- Cause is the root — multiple causes allowed
- Controls: `Prevention` (reduces Occurrence) / `Detection` (increases Detection score)
## Phase 4 — Scoring
### Severity (1–10)
| Score | Label | Definition |
|---|---|---|
| 1 | None | Unnoticeable |
| 2–3 | Minor | Slight annoyance; no real harm |
| 4–6 | Moderate | Function degraded; workaround exists |
| 7–8 | High | Function lost; major user impact |
| 9–10 | Hazardous | Safety / regulatory / existential impact |
### Occurrence (1–10)
| Score | Frequency |
|---|---|
| 1 | ≤1 in 1,000,000 |
| 2–3 | ~1 in 100,000 |
| 4–6 | ~1 in 10,000 – 1,000 |
| 7–8 | ~1 in 100 |
| 9–10 | ≥1 in 10 |
### Detection (1–10)
| Score | Label | Definition |
|---|---|---|
| 1 | Almost certain | Automated detection with alerts |
| 2–3 | Very high | Strong controls; tested |
| 4–6 | Moderate | Some controls; may miss |
| 7–8 | Low | Manual / post-event detection |
| 9–10 | Very low / None | No effective detection |
Detection scoring is counter-intuitive: LOW score = GOOD detection. Double-check per row.
### RPN & Action Priority
- **RPN = S × O × D** (1–1000)
- **Action Priority (AIAG-VDA)** uses S, O, D bands to classify H / M / L:
- **High**: S ≥ 9 OR (S ≥ 7 AND O ≥ 5) OR (S ≥ 5 AND O ≥ 7)
- **Medium**: mid-range combinations (S 5–8 with O 3–6)
- **Low**: low-severity / low-occurrence modes
Use AP as primary priority; RPN as tie-breaker.
## Phase 5 — Critical modes
Flag modes meeting action threshold (default: RPN ≥ 100 OR AP = High OR S ≥ 9).
## Phase 6 — Recommended actions
Per critical mode:
| Mode ID | Action | Action type | Target score delta | Owner | Due | Expected new S | Expected new O | Expected new D | Expected new RPN |
|---|---|---|---|---|---|---|---|---|---|
| M-01 | ... | Prevention / Detection / Design change / Compensating control | O: 6→3 | [role] | [date] | 7 | 3 | 2 | 42 |
Action types:
- **Design change**: modify the system/process to remove the failure mode
- **Prevention**: reduces Occurrence
- **Detection**: improves Detection (lowers the Detection score)
- **Compensating control**: reduces effect when mode occurs
Rules:
- Every action specifies which of S/O/D it targets
- Severity rarely changes without design change
- Expected new scores must be defensible
## Phase 7 — Post-action re-score
Apply action deltas to compute post-action RPN and AP. Summary table:
| Mode ID | Pre-RPN | Pre-AP | Post-RPN | Post-AP | Delta |
|---|---|---|---|---|---|
## Phase 8 — Diagrams
### 1. RPN before/after
```mermaid
xychart-beta
title "RPN before / after actions"
x-axis ["M-01", "M-02", "M-03", "M-04", "M-05"]
y-axis "RPN" 0 --> 500
bar [320, 280, 180, 150, 90]
bar [60, 90, 60, 120, 60]
```
### 2. Action Priority distribution
```mermaid
pie title Action Priority (current)
"High" : 4
"Medium" : 6
"Low" : 8
```
### 3. Severity / Occurrence scatter (optional)
```mermaid
quadrantChart
title FMEA — Severity vs Occurrence (current)
x-axis Low Occurrence --> High Occurrence
y-axis Low Severity --> High Severity
quadrant-1 Monitor
quadrant-2 HIGH PRIORITY
quadrant-3 Low
quadrant-4 Severe-but-rare
M-01: [0.6, 0.8]
M-02: [0.4, 0.7]
```
## Phase 9 — Diagram rendering
Per `diagram-rendering` mixin. File names:
- `rpn-before-after.mmd` / `.png`
- `action-priority-distribution.mmd` / `.png`
- `severity-occurrence.mmd` / `.png` (optional)
## Phase 10 — Report assembly and approval
```markdown
# FMEA: [Subject]
**Date**: [date]
**Type**: [PFMEA / DFMEA]
**Functions / steps**: [N]
**Failure modes**: [N]
**Action threshold**: [RPN ≥ X OR AP = High]
## Scope
[Subject, type, functions, threshold]
## Function / Step List
[Table F-01 ..]
## Failure Modes
[Full table: mode, function, effect, cause, controls, S, O, D, RPN, AP]
## Critical Modes
[Modes meeting threshold, ranked]
## Recommended Actions
[Per critical mode: action, target, owner, due, expected post-action scores]
## Post-action Re-score
[Delta table]
## Diagrams
[RPN before/after + AP distribution + optional scatter]
## Evidence & Assumptions
[Per score: evidence or `[Assumed]`]
## Limitations
[Scoring subjectivity, need for recurring review]
```
Present for user approval. Save only after confirmation.
## Assessment rules
- S/O/D calibrated against anchored definitions
- RPN computed correctly (S × O × D)
- AP per AIAG-VDA logic
- Action deltas defensible
- Evidence or `[Assumed]` labels on all scores
- Deterministic
## Failure behavior
| Situation | Behavior |
|---|---|
| No subject / type | Interview mode (§7) |
| Fewer than 3 functions | Ask to decompose further or proceed with note |
| Known failure modes but no causes | Elicit causes before scoring (scoring causeless modes is unreliable) |
| Detection score obvious misreading (high D = good detection claimed) | Reverse with note; Detection is inverse |
| Actions don't specify target | Ask which of S/O/D the action affects before scoring |
| mmdc failure | See `diagram-rendering` mixin |
| Out-of-scope (e.g., "just give me a risk matrix") | Pointer to `risk-matrix` |
## Self-check
```
[] Subject + type declared
[] Functions/steps enumerated
[] Per failure mode: mode + effect + cause + controls
[] S, O, D scored with rationale
[] Detection direction correct (low = good detection)
[] RPN computed
[] AP assigned per AIAG-VDA logic
[] Critical modes flagged against threshold
[] Actions specify target (S/O/D) and expected new scores
[] Post-action re-score shown
[] Evidence or `[Assumed]` labels per score
[] All diagrams valid
[] No fabricated failure modes
[] Report follows output contract
```
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.