pharaoh-fmea

Generate a JSON-formatted FMEA entry from a requirement or architecture element.

24|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/useblocks/pharaoh --skill pharaoh-fmea
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pharaoh-fmea
Source: https://github.com/useblocks/pharaoh/tree/main/skills/pharaoh-fmea
Command: npx skills add https://github.com/useblocks/pharaoh --skill pharaoh-fmea

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically derive a single FMEA entry from a given requirement or architecture element and emit a structured JSON artifact for safety analysis, including fields for cause, effect, severity, occurrence, detection, and RPN.

Core Features & Use Cases

  • Single-mode FMEA generation per invocation.
  • Uses needs.json to resolve the parent_id and applies an optional safety_context to influence scoring.
  • Outputs a ready-to-consume JSON structure for downstream risk assessment, audits, and traceability.

Quick Start

Invoke pharaoh-fmea with a parent_id (and optional failure_mode) to generate a JSON-formatted FMEA entry.

Frequently Asked Questions about pharaoh-fmea

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a structured FMEA entry from a system requirement?

To generate an FMEA entry from a requirement, you provide the parent element ID and an optional safety context. The tool resolves the requirement body and outputs a structured JSON object containing the failure mode, cause, effect, severity, occurrence, detection, and RPN.

What is an FMEA failure mode analysis and how does risk scoring work?

FMEA failure mode analysis identifies potential ways a system element can fail and assigns risk scores. It calculates a Risk Priority Number (RPN) by evaluating severity, occurrence, and detection metrics, justifying each score using the parent requirement body and provided safety context.

Can I automate risk analysis for multiple architecture elements?

Automating risk analysis for multiple architecture elements requires invoking the tool separately for each element. Each invocation handles exactly one failure mode per parent element, resolving the specific architecture component from needs.json to produce an individual structured JSON artifact.

Do I need a needs.json file to perform safety traceability and risk assessment?

Yes, a needs.json file is required to perform safety traceability and risk assessment. The tool uses this file to resolve the parent_id, locating the specific requirement or architecture element needed to derive the failure mode and generate the structured JSON output.

How do I include safety context when calculating RPN for a failure mode?

To include safety context when calculating RPN, you provide an optional safety_context input alongside the parent_id. The tool applies this context to influence the scoring of severity, occurrence, and detection, using it to justify the generated risk metrics.

What is the best way to structure FMEA data for downstream risk audits?

The best way to structure FMEA data for downstream risk audits is to emit a ready-to-consume JSON object. This structured format includes failure mode details, RPN scores, mitigations, and justifications, ensuring traceability and seamless integration with risk assessment workflows.