Logo di Manage Safety Analysis

Manage Safety Analysis

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

Panoramica

Pubblicato damatlab
Repositorysimulink-agentic-toolkit
Nome della skillmanage-safety-analysis
Stelle
1.2K
Fork
112
File inclusi
5
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 5

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da matlab su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Manage Safety Analysis in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Manage Safety Analysis in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Manage Safety Analysis non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Manage Safety Analysis non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.


File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Manage Safety Analysis su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Manage Safety Analysis è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Manage Safety Analysis in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/verification-validation-and-test/manage-safety-analysis. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Manage Safety Analysis?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Manage Safety Analysis?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Manage Safety Analysis: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Manage Safety Analysis è gratuita?

È pubblicata su GitHub da matlab. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇