Agent skill

Inject Faults

by matlab in matlab/simulink-agentic-toolkit

Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation.

Custom licenceAuto-check passed

Install Inject Faults

skills CLI
$ npx skills add matlab/simulink-agentic-toolkit --skill inject-faults -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install matlab/simulink-agentic-toolkit inject-faults --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-catalog/verification-validation-and-test/inject-faults .claude/skills/inject-faults && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
inject-faults
GitHub stars
1.2k
Token cost
~2.3k tokens
SKILL.md length
948 words
Files
8 (incl. references)
Skills in repo
43
Repo updated
First seen
Licence
Custom licence

At a glance

Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation.

  • Works in 6 steps: Faults attach to block PORTS, not… → NEVER directly edit _faultInfo.xml… → Fault names must be valid MATLAB… → …
  • Injecting faults (stuck
  • SKILL.md covers When to Use, When NOT to Use, Probe and Key Concepts, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Inject Faults is an agent skill from matlab/simulink-agentic-toolkit. 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.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `manifest.yaml`, `references/advanced-operations.md` and `references/fault-behaviors.md`).

The repository describes itself as: The Simulink Agentic Toolkit gives your AI agent both the tools and the expertise to work effectively with Simulink and Model-Based Design.

When your agent uses it

  • Injecting faults (stuck
  • Offset) onto block inports/outports
  • Enabling fault simulation
  • Analyzing fault effects

Example prompts

  • “/inject-faults”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Faults attach to block PORTS, not blocks. You must get the port handle via get_param(blockPath, 'PortHandles').
  2. NEVER directly edit _faultInfo.xml files. Always use MATLAB APIs to modify fault definitions.
  3. Fault names must be valid MATLAB identifiers (no spaces, slashes, or special characters). Use camelCase or PascalCase.
  4. The fault behavior model name (first arg to addBehavior) must also be a valid MATLAB identifier.
  5. NEVER use Simulink.fault.deleteAll or Simulink.fault.deleteFault to toggle faults on/off for simulation. Deleting faults destroys fault…
  6. Not supported: Faults inside Stateflow charts, fault models, or observer models.

What it can do on your machine

Read from SKILL.md and the folder at commit c58e6ae. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are matlab).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Inject Faults loads about 2.3k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 107 tokens; SKILL.md has 948 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~107
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 948 words (~2,257 tokens).

“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.”

— opening of SKILL.md by matlab, Custom licence
name
inject-faults
license
https://www.mathworks.com/content/dam/mathworks/license/pmrl/license.md
metadata.version
1.0
metadata.author
MathWorks

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (references) in skills-catalog/verification-validation-and-test/inject-faults of matlab/simulink-agentic-toolkit.

  • SKILL.md
  • manifest.yaml
  • references/advanced-operations.md
  • references/fault-behaviors.md
  • references/preflight-and-adding-faults.md
  • references/simulation-workflows.md
  • references/test-case-integration.md
  • references/triggers-and-conditionals.md

Open the folder on GitHubat commit c58e6ae

Compare with similar skills

Inject Faults next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Inject Faults compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Inject Faults this skillmatlab/simulink-agentic-toolkit1.2k—~2.3kAutomated safety check: PassCustom licence
Agent Harness Fault Injectionsickn33/agentic-awesome-skills47k1 repos~2.9kAutomated safety check: PassMIT
AWS Fault Injection Serviceaws/agent-toolkit-for-aws2.8k—~2.2kAutomated safety check: PassApache-2.0
Configure Channelopenclaw/openclaw392k—~946Automated safety check: PassMIT
Prompt Injection Defensesickn33/agentic-awesome-skills47k2 repos~4.2kAutomated safety check: WarnMIT
ConfigurationBuilderIO/agent-native7.1k—~2.1kAutomated safety check: PassNone

Similar skills

  • Agent Harness Fault Injection

    sickn33/agentic-awesome-skills

    A skill your agent uses when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

    47k GitHub starsUsed in 1 repo~2.9k tokens
    Agent WorkflowsAuto-check passed
  • AWS Fault Injection Service

    aws/agent-toolkit-for-aws

    Official

    Plans, builds, runs, and analyzes fault injection experiments with AWS Fault Injection Service (AWS FIS) to validate application resilience through chaos engineering.

    2.8k GitHub stars~2.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Configure Channel

    openclaw/openclaw

    Configure and prove a chat channel with non-interactive one-liners; secrets only as SecretRefs.

    392k GitHub stars~946 tokensUpdated today
    Auto-check passed
  • Prompt Injection Defense

    sickn33/agentic-awesome-skills

    Defend AI systems against prompt injection and indirect prompt attacks using input controls, tool permissions, output validation, and isolation boundaries.

    47k GitHub starsUsed in 2 repos~4.2k tokens
    SecurityAuto-check: warnings
  • Configuration

    BuilderIO/agent-native

    Where a configuration value belongs — app config schema, agent-native.config.ts, or an environment variable — and how the layers resolve.

    7.1k GitHub stars~2.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Detecting AI Model Prompt Injection Attacks

    mukul975/Anthropic-Cybersecurity-Skills

    Detects prompt injection using regex signature matching, heuristic scoring for structural anomalies, and DeBERTa-based transformer classification, flagging direct injections (system-prompt…

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    SecurityAuto-check: warnings

More from matlab/simulink-agentic-toolkit

All 43 skills in this repo
  • Resolve Design Errors

    matlab/simulink-agentic-toolkit

    A skill your agent uses when asked to run Design Error Detection (quick defect scan), find design errors in a Simulink model, perform root cause analysis on DED findings, fix division-by-zero…

    1.2k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Simscape Write Ssc

    matlab/simulink-agentic-toolkit

    A skill your agent uses when writing or editing Simscape Language (.ssc) source files — components, domains, or functions.

    1.2k GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Simulink Optimizing Embedded Code

    matlab/simulink-agentic-toolkit

    Optimizes Simulink models for Embedded Coder generated code.

    1.2k GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Checking Model Compliance

    matlab/simulink-agentic-toolkit

    A skill your agent uses when the user asks to check Simulink model compliance against a standard (MISRA, MAB, JMAAB, ISO, DO, IEC, EN, CERT C/CWE, AUTOSAR, Simulink Code Inspector (SLCI)), wants to…

    1.2k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Fix Sldv Incompatibility

    matlab/simulink-agentic-toolkit

    A skill your agent uses when a Simulink model is incompatible with Simulink Design Verifier (sldvcompat returns false, or an SLDV analysis errors out on an unsupported construct) and needs to be…

    1.2k GitHub stars~3.8k tokensUpdated yesterday
    Auto-check passed
  • Simulink Collect Metrics

    matlab/simulink-agentic-toolkit

    Collect and assess quality metrics for Simulink models using the metric.Engine API.

    1.2k GitHub stars~4.4k tokensUpdated yesterday
    Auto-check passed

Questions about Inject Faults

What does Inject Faults do?

Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation. Inject Faults is an agent skill from matlab/simulink-agentic-toolkit. Add, configure, and manage faults on Simulink, Simscape, and System Composer model signals for robustness analysis and safety validation.

When should I use Inject Faults?

Inject Faults fits situations like: injecting faults (stuck; offset) onto block inports/outports; enabling fault simulation; analyzing fault effects.

How do I install Inject Faults in Claude Code?

Run `npx skills add matlab/simulink-agentic-toolkit --skill inject-faults -a claude-code`. Or copy the skill folder (skills-catalog/verification-validation-and-test/inject-faults in matlab/simulink-agentic-toolkit) into .claude/skills/inject-faults in your project. Claude Code loads it when a task matches its description.

How do I install Inject Faults in Codex?

Run `npx skills add matlab/simulink-agentic-toolkit --skill inject-faults -a codex`. Or copy the skill folder (skills-catalog/verification-validation-and-test/inject-faults in matlab/simulink-agentic-toolkit) into .agents/skills/inject-faults in your project. Codex loads it when a task matches its description.

Can I use Inject Faults in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add matlab/simulink-agentic-toolkit --skill inject-faults -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/inject-faults, .gemini/skills/inject-faults, .github/skills/inject-faults and .opencode/skills/inject-faults in your project.

What does Inject Faults need to run?

SKILL.md names no scripts, command-line tools or credentials: Inject Faults is instructions for the agent only.

Does Inject Faults access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Inject Faults safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Inject Faults use?

Inject Faults has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Inject Faults use?

About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.6k tokens, read only when the agent opens those files.

What are the alternatives to Inject Faults?

Skills that share tags, products or a category with Inject Faults: Agent Harness Fault Injection (sickn33/agentic-awesome-skills, 47k stars), AWS Fault Injection Service (aws/agent-toolkit-for-aws, 2.8k stars), Configure Channel (openclaw/openclaw, 392k stars) and Prompt Injection Defense (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Inject Faults?

matlab (a GitHub organization) maintains it in matlab/simulink-agentic-toolkit, which has 1,199 GitHub stars. The repository holds 43 skills in this directory. The repository was last updated on October 7, 2026.

Source: matlab/simulink-agentic-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.