Logo vun Manage Safety Analysis

Manage Safety Analysis

OrganisatiounBeléift
matlab
manage-safety-analysis

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.

Iwwersiicht

Editeurmatlab
Repositorysimulink-agentic-toolkit
Skill-Nummmanage-safety-analysis
Stären
1.2K
Forks
112
Matgeliwwert Fichieren
5
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 5 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum matlab op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Manage Safety Analysis an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit.git /tmp/simulink-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/simulink-agentic-toolkit/skills-catalog/verification-validation-and-test/manage-safety-analysis .claude/skills/manage-safety-analysis
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Manage Safety Analysis an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Manage Safety Analysis automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Manage Safety Analysis net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

When NOT to Use

  • Building or editing Simulink model structure -> use building-simulink-models
  • Running simulations or tests -> use simulating-simulink-models or testing-simulink-models
  • Fault injection and simulation-based fault analysis -> use inject-faults
  • Requirements traceability only -> use generate-requirement-drafts

Workflow

Creating a New Spreadsheet (FMEA/FHA/HARA)

  1. Understand the source. Either:
    • From a model: Always use model_overview to inspect the model structure first. Use model_read for deeper subsystem details. Identify subsystems, signal paths, feedback loops, sensors, and actuators. These become FMEA rows or hazard entries.
    • From requirements: Read the requirements (via Requirements Toolbox or user-provided text) and derive functional elements, failure modes, and hazards from the specified system behavior.
  2. Choose a document structure. Design columns appropriate for the specific system and analysis type. Use a built-in template only if the user explicitly requests one.
  3. Create and populate. Build the spreadsheet programmatically using the API.
  4. Open the manager. Call safetyAnalysisMgr.openManager so the user can see results.
  5. Save. Always save to .mldatx when the user confirms the content.

Creating a Fault Tree (R2026b+)

  1. Identify the top event. The undesired system-level failure (e.g., "Loss of Aircraft Control").
  2. Decompose with gates. Use OR gates for single-point failures, AND gates for redundant systems.
  3. Add basic events. Leaf nodes representing individual component failures or human errors.
  4. Set probabilities. Assign failure probabilities to basic events from reliability data or engineering estimates.
  5. Analyze. Compute minimal cut sets and top-event probability.
  6. Save and review. Save to .mldatx and open the manager for visual inspection.

Reviewing an Existing Document

  1. Open the document. Use safetyAnalysisMgr.openDocument to load the .mldatx file.
  2. Read and analyze content. For spreadsheets, iterate over rows; for trees, traverse nodes. Check for:
    • Grammar and spelling issues in text
    • Inconsistencies between data and the model or requirements
    • Duplicate entries or near-duplicate failure modes
    • Missing information (empty cells, events without probabilities)
    • Calculations that don't match their inputs
  3. Flag issues. Use addFlag to mark problematic elements for user review.
  4. Report findings. Summarize issues found and suggest corrections.

FMEA Generation Conventions

  • One row per failure mode, not per block — a single block can have multiple failure modes.
  • Map model structure to functions: subsystems → functional groups; individual blocks → functions within those groups.
  • Use requirement IDs in the Subsystem/Function column when working from requirements (no model).
  • Detection methods must reference observable signals (model-based) or testable acceptance criteria (requirements-based).
  • Flag entries for review once a model becomes available — model-based analysis may reveal additional failure modes not apparent from requirements alone.

Guardrails

Always

  • Use evaluate_matlab_code with project_path set to the skill's scripts/ folder so MATLAB can find helper scripts (e.g., fileType). Never use addpath.
  • Verify .mldatx files with fileType(filePath) before opening — the extension is shared with other tools. Only proceed if it returns "document" or "template"; if it throws, the file is not a Safety Analysis Manager document.
  • When a model is available, read it with model_overview or model_read before writing failure modes — ground the analysis in actual structure. When working from requirements alone, derive failure modes from the requirements text instead.
  • Always call safetyAnalysisMgr.openManager as the final step after creating, modifying, or reviewing a document — never skip this. The user cannot see results until the manager is open.
  • Remind the user to save (or save programmatically with confirmation) — new documents have no file until explicitly saved

Never

  • Use close(doc, Force=true) or safetyAnalysisMgr.closeAllDocuments(Force=true) without asking — this discards unsaved work
  • Delete rows, columns, or nodes from an existing document without user confirmation

Ask First

  • Before overwriting an existing .mldatx file
  • Before adding flags (addFlag) that mark elements as errors or warnings
  • Before deleting rows, columns, or nodes from an existing document

Review Gates

After Creating/Populating a Spreadsheet

Review this safety analysis spreadsheet for:

  • Rows with empty detection methods, severity, or occurrence ratings
  • Failure modes that don't trace back to a model element or requirement
  • Duplicate or near-duplicate entries (same failure mode, different wording)
  • Column values that are inconsistent with each other (e.g., high severity + no detection + low RPN)
  • Missing common failure modes for the system type (sensors without bias/drift, actuators without stuck)

After Creating a Fault Tree (R2026b+)

Review this fault tree for:

  • Basic events without assigned failure models or with placeholder probabilities
  • Cut sets containing a single basic event (indicates missing redundancy or analysis gap)
  • Common-cause failures not modeled (shared power supply, shared sensor, common software)
  • Gates with only one input (redundant gate — simplify)
  • Circular or illogical decomposition (effect listed as its own cause)

After Reviewing an Existing Document

Verify the review findings for:

  • False positives (flagged items that are actually correct in context)
  • Missed issues in rows/nodes that were not inspected
  • Consistency of flag severity (errors vs warnings vs checks)

Domain-Specific References

  • Spreadsheet operations (rows, columns, cells, formulas, search) -> references/spreadsheet-api.md
  • Tree operations (nodes, gates, cut sets, quantitative analysis) -> references/tree-api.md
  • Common operations (save, callbacks, flags, links, change detection) -> references/common-api.md

Copyright 2026 The MathWorks, Inc.


Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Manage Safety Analysis?

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.

Firwat Manage Safety Analysis op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Manage Safety Analysis besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Manage Safety Analysis an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Manage Safety Analysis benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Manage Safety Analysis benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Manage Safety Analysis domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Manage Safety Analysis gratis?

De Skill gëtt vum matlab op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇