inject-faults
Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation. Use when injecting faults (stuck, noise, gain, offset) onto block inports/outports, enabling fault simulation, or analyzing fault effects. Covers sensor failures, signal corruptions, actuator faults, FMEA validation, and robustness testing. Requires Simulink Fault Analyzer.
npx skills add matlab/simulink-agentic-toolkit --skill inject-faults --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Fault Injection Use `evaluate_matlab_code` with the `Simulink.fault` API to programmatically inject faults into Simulink models. Faults override signal values at block ports to simulate hardware failures, sensor faults, and actuator malfunctions. ## When to Use - Injecting sensor stuck-at faults, noise, or bias for safety analysis (Simulink, Simscape, System Composer) - Validating FMEA failure modes through simulation - Testing controller robustness against actuator or sensor failures - Adding fault placeholders (without behavior) for FMEA traceability before defining fault logic - Configuring fault trigger conditions (timed, conditional, always-on) - Creating fault scenarios for automated testing - Comparing nominal vs. faulted behavior - Linking faults to FMEA failure mode cells - Generating fault specification reports - Exporting models with embedded fault behavior for teams without Simulink Fault Analyzer - Registering custom fault behavior libraries - Synchronizing (also called **resync** / **sync** / **synchronize faults** / **update fault references**) fault information from referenced models, subsystems, or linked libraries into a parent model ## When NOT to Use - Creatin
- When to Use
- When NOT to Use
- Probe
- Key Concepts
- Critical Constraints
- Workflow
- Guardrails
- Always
- Never
- Ask First
- Troubleshooting
- Reference Files
What does the inject-faults skill do?
Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation. Use when injecting faults (stuck, noise, gain, offset) onto block inports/outports, enabling fault simulation, or analyzing fault effects. Covers sensor failures, signal corruptions, actuator faults, FMEA validation, and robustness testing. Requires Simulink Fault Analyzer.
How do I install it?
Run `npx skills add matlab/simulink-agentic-toolkit --skill inject-faults --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From matlab/simulink-agentic-toolkit, a repository with 903 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
