# Manage Safety Analysis

Create, populate, and manage safety analysis spreadsheets (FMEA, FHA, HARA, custom) and...

- Repository: https://github.com/matlab/simulink-agentic-toolkit (1305 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-10-29
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add matlab/simulink-agentic-toolkit --skill manage-safety-analysis -g -a claude-code -y`
Codex: `npx skills add matlab/simulink-agentic-toolkit --skill manage-safety-analysis -g -a codex -y`
Cursor: `npx skills add matlab/simulink-agentic-toolkit --skill manage-safety-analysis -g -a cursor -y`
Gemini CLI: `npx skills add matlab/simulink-agentic-toolkit --skill manage-safety-analysis -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add matlab/simulink-agentic-toolkit`

## Description

Create, populate, and manage safety analysis spreadsheets (FMEA, FHA, HARA, custom) and fault trees (FTA) in Safety Analysis Manager. Use when the user asks to perform FMEA, hazard analysis, fault tree analysis, safety analysis, or work with Safety Analysis Manager documents. Requires Simulink Fault Analyzer.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Safety Analysis Manager

Use `evaluate_matlab_code` with the `safetyAnalysisMgr` package to create, populate, query, and export safety analysis documents. Requires **Simulink Fault Analyzer** (R2023b+).

> **Version enforcement:** APIs are annotated with the MATLAB release they were introduced. Do NOT use an API unless the user's MATLAB release is equal to or newer than the annotated version. If the user's release is unknown, assume R2023b and restrict to R2023b APIs only until confirmed. Check the reference files for per-API version annotations.

Safety Analysis Manager supports two document formats:
- **Spreadsheets**, tabular, row-based analysis (FMEA, FHA, HARA, HAZOP, custom)
- **Trees**, hierarchical, node-based analysis (Fault Tree Analysis, Attack Trees)

## When to Use

### Spreadsheet-based analysis
- Creating FMEA, FHA, HARA, HAZOP, or custom tabular documents
- Populating spreadsheets with failure modes, effects, and risk ratings
- Reviewing existing spreadsheets for consistency, completeness, and correctness
- Editing, searching, or flagging items in an existing spreadsheet
- Adding derived columns, callbacks, or custom logic to a spreadsheet
- Exporting spreadsheet results to Excel
- -> read `references/spreadsheet-api.md` and `references/common-api.md`

### Tree-based analysis (R2026b+)
- Creating Fault Tree Analysis (FTA) documents
- Building fault trees with gates (AND/OR), basic events, and intermediate events
- Computing minimal cut sets and top-event probability
- Importance analysis and quantitative assessment
- -> read `references/tree-api.md` and `references/common-api.md`

### Common operations (both formats)
- Opening, saving, closing `.mldatx` documents
- Adding callbacks (AnalyzeFcn, PreSaveFcn, custom)
- Flagging elements for review (error, warning, check)
- Detecting changes in linked artifacts
- Creating traceability links to model blocks or requirements
- Document attributes and metadata
- -> read `references/common-api.md`

The rest: https://github.com/matlab/simulink-agentic-toolkit/blob/HEAD/skills-catalog/verification-validation-and-test/manage-safety-analysis/SKILL.md
