Logo von Manage Safety Analysis

Manage Safety Analysis

OrganisationBeliebt
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.

Übersicht

Herausgebermatlab
Repositorysimulink-agentic-toolkit
Skill-Namemanage-safety-analysis
Sterne
1.2K
Forks
112
Mitgelieferte Dateien
5
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 5

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von matlab auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Manage Safety Analysis in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Manage Safety Analysis in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Manage Safety Analysis automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Manage Safety Analysis nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.


Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der 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.

Warum Manage Safety Analysis in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Manage Safety Analysis besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Manage Safety Analysis in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Manage Safety Analysis nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Manage Safety Analysis verwenden?

So viele Sie möchten. In TypingMind können Sie Manage Safety Analysis mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Manage Safety Analysis kostenlos?

Der Skill wird von matlab auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇