Skills

Manage Safety Analysis

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

Install

npx skills add matlab/simulink-agentic-toolkit --skill manage-safety-analysis -g -a claude-code -y
Category
Engineering
Updated
6d ago
License
See repository
Context cost
Mediumabout 2,074 tokens
Runs scripts
No, instructions only

What it does

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.

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
Read the whole SKILL.md on GitHub

More in Engineering