Agent skill

Simulink Test Sequence From Ears

by matlab in matlab/agent-skills-playground

Generate Simulink Test Sequence blocks and harnesses from EARS requirements.

BSD-2-ClauseAuto-check passedTesting & QA

Install Simulink Test Sequence From Ears

skills CLI
$ npx skills add matlab/agent-skills-playground --skill simulink-test-sequence-from-ears -a claude-code

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

GitHub CLI
$ gh skill install matlab/agent-skills-playground simulink-test-sequence-from-ears --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/agent-skills-playground.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/simulink-test-sequence-from-ears .claude/skills/simulink-test-sequence-from-ears && 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
simulink-test-sequence-from-ears
GitHub stars
184
Token cost
~1.4k tokens
SKILL.md length
608 words
Files
21 (incl. scripts, references)
Skills in repo
29
Repo updated
First seen
Licence
BSD-2-Clause

At a glance

Generate Simulink Test Sequence blocks and harnesses from EARS requirements.

  • Works in 2 steps: Review the mappings → Generate and inspect
  • Asked to create a test case from a requirement
  • SKILL.md covers Core rules, Setup and inputs, Phase 1: Review the mappings and Phase 2: Generate and inspect, plus 2 more sections
  • Generate tests from a .slreqx file

What it does

Simulink Test Sequence From Ears is an agent skill from matlab/agent-skills-playground. Generate Simulink Test Sequence blocks and harnesses from EARS requirements. Use when asked to create a test case from a requirement, generate tests from a .slreqx file, or verify a Simulink model with requirement-based tests.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files, including scripts and reference files (for example `LICENSE.md` and `references/workflow-details.md`). Compatibility notes: Requires MATLAB, Simulink, Simulink Test, and Requirements Toolbox. Stateflow is needed for chart discovery and the ModeLogic demo. The supplied example…

It sits in Testing & QA, covering Test generation. The repository describes itself as: A sandbox for prototyping and demonstrating Agent Skills for MATLAB and Simulink work. The licence is BSD-2-Clause.

When your agent uses it

  • Asked to create a test case from a requirement
  • Generate tests from a .slreqx file
  • Verify a Simulink model with requirement-based tests

Example prompts

  • “/simulink-test-sequence-from-ears”

Requirements

  • Compatibility (from SKILL.md): Requires MATLAB, Simulink, Simulink Test, and Requirements Toolbox. Stateflow is needed for chart discovery and the ModeLogic demo. The supplied example targets R2026a or newer.

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Review the mappings
  2. Generate and inspect

What it can do on your machine

Read from SKILL.md and the folder at commit f55f641. 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

    Ships 16 files in scripts/, which the agent can run.

    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.

  • Compatibility

    Requires MATLAB, Simulink, Simulink Test, and Requirements Toolbox. Stateflow is needed for chart discovery and the ModeLogic demo. The supplied example targets R2026a or newer.

    From compatibility in the SKILL.md frontmatter.

Context cost

Simulink Test Sequence From Ears loads about 1.4k tokens when it runs, and up to ~5.3k if it reads all its reference files. Until then it costs about 65 tokens; SKILL.md has 608 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from matlab/agent-skills-playground at commit f55f641, republished under its BSD-2-Clause licence (© matlab). 608 words, ~1,435 tokens.

Download SKILL.mdSave it as .claude/skills/simulink-test-sequence-from-ears/SKILL.md (or your agent's skills folder). This skill also uses 20 other files; get the full folder from GitHub.
name
simulink-test-sequence-from-ears
description
Generate Simulink Test Sequence blocks and harnesses from EARS requirements. Use when asked to create a test case from a requirement, generate tests from a .slreqx file, or verify a Simulink model with requirement-based tests.
compatibility
Requires MATLAB, Simulink, Simulink Test, and Requirements Toolbox. Stateflow is needed for chart discovery and the ModeLogic demo. The supplied example targets R2026a or newer.
license
MathWorks license (see LICENSE.md)
metadata.author
MathWorks
metadata.version
1.0

Map requirement phrases to model signals, review the mappings, and generate Test Sequence harnesses with the bundled MATLAB helpers.

Core rules

  • Start with a YAML mapping review. Use an existing explicit approval when available; do not infer approval from a filename or from a mapping appearing obvious.
  • Scope the review and generation to the requested requirement IDs.
  • Resolve open questions about signals, units, enum values, precondition paths, and timing before generating tests. Include complete initialization, stimulus, and verify() statements.
  • Associated harness creation saves registration metadata on the owner model. Use a writable working copy for demos. Explain this effect when preparing generation against a user's model.
  • Inspect per-requirement warnings and compile results. The generator can continue after a harness fails; the final completion message and presence of a .slx file do not establish success.
  • Compilation is not test execution. Run the generated test when requested, and distinguish a compile check from simulation and assertion results.

Setup and inputs

Identify the model under test, the .slreqx requirement set, and any .sldd dictionaries or enumeration classes. Resolve the folder containing this file as skillRoot, then add fullfile(skillRoot, "scripts") to the MATLAB path.

Run MATLAB from the model artifacts folder (or set the evaluation tool's working-folder option). Discovery scans that folder for dictionaries and enum classes. Verify which("analyzeRequirements") resolves to this installation. The older analizeRequirements spelling remains a compatibility alias.

Phase 1: Review the mappings

Use analyzeRequirements(modelName, reqSetPath) for requirement and model discovery. For a review of selected requirements:

matlab
review = generateMappingReviewFromRequirements( ...
    'ModeLogic', 'HLR_ModeLogic_EARS.slreqx', ...
    'mapping_review_req17.yaml', 'RequirementIds', "17");

Read workflow-details.md when constructing or editing the YAML. Lead with phrase_mappings containing the requirement phrase, model element, and interpretation. Keep generation fields in the same file: init_assignments, precondition_path, stimulus_assignments, and verify_statements.

Record assumptions in test_assumptions, unresolved meanings in open_questions, and approval in status. Show the final review file in the MATLAB Editor when available, unless the user requests otherwise. For headless operation or intermediate files, pass 'OpenInEditor', false.

Present a short mapping summary and request review when approval is missing. After the user approves, set the accepted entries to status: 'approved'. Edits with unresolved questions do not constitute approval.

Show full SKILL.md (257 more words)Show less

Phase 2: Generate and inspect

matlab
result = buildHarnessesFromApprovedYaml( ...
    'ModeLogic', 'mapping_review_req17.yaml');

The default creates externally saved harnesses in test_harnesses/ and registers them on the source model. If the requested output is standalone harness files, the staged alternative is:

matlab
result = buildHarnessesFromApprovedYaml( ...
    'ModeLogic', 'mapping_review_req17.yaml', ...
    'AssociateWithSourceModel', false);

That alternative generates in a temporary workspace and copies harness files back; it does not register them on the source model. Inspect the reported build folder when troubleshooting dictionary or model shadowing.

Open the generated harness and relevant result.test_sequence_blocks when a desktop session is available and the user has not requested headless work. Use the returned paths to inspect the Test Sequence. Do not recreate the bundled helpers.

Supported patterns and limits

EARS patternFormGenerated steps
UbiquitousThe system shall ...Initialize and verify
Event-drivenWhen ..., the system shall ...Establish preconditions, trigger, verify
State-drivenWhile ..., the system shall ...Establish the state and check behavior
Unwanted behaviorIf ..., then the system shall ...Apply the condition and check the response
OptionalWhere ..., the system shall ...Use the event-driven configurator

The parser recognizes these sentence forms; arbitrary natural-language requirements may need clarification. Automated phrase and precondition inference includes ModeLogic-specific heuristics, so review mappings against the actual system. The bundled timing defaults and one scenario per requirement do not establish exhaustive verification.

Requirements Toolbox traceability links must be added separately through Simulink Test Manager. Do not claim certification, standards compliance, or complete requirement coverage from generated harnesses.

Supporting functions

Workflow details includes the YAML schema, a ModeLogic example, the low-level signalMappings struct, and the helper catalog. Use it for custom mappings and multi-step preconditions.

Copyright 2026 The MathWorks, Inc.

© matlab, BSD-2-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 20 other files (scripts, references) in skills/simulink-test-sequence-from-ears of matlab/agent-skills-playground.

  • SKILL.md
  • LICENSE.md
  • references/workflow-details.md
  • scripts/addPreconditionSteps.m
  • scripts/analizeRequirements.m
  • scripts/analyzeRequirements.m
  • scripts/buildHarnessesFromApprovedYaml.m
  • scripts/collectSkillContext.m
  • scripts/compileHarnessModel.m
  • scripts/configureEventDriven.m
  • scripts/configureStateDriven.m
  • scripts/configureTestSequence.m
  • scripts/configureUbiquitous.m
  • scripts/configureUnwantedBehavior.m
  • scripts/generateMappingReviewFromRequirements.m
  • scripts/generateSignalMappingsFromYaml.m
  • scripts/generateTestSequencesFromRequirements.m
  • scripts/parseEARSPattern.m
  • scripts/prepareWritableBuildWorkspace.m
  • … and 2 more

Open the folder on GitHubat commit f55f641

Compare with similar skills

Simulink Test Sequence From Ears 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.

Simulink Test Sequence From Ears compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Simulink Test Sequence From Ears this skillmatlab/agent-skills-playground184—~1.4kAutomated safety check: PassBSD-2-Clause
Emcaklofas/kicad-happy1.4k1 repos~2.8kAutomated safety check: PassMIT
Swig Testswig/swig6.3k—~2.3kAutomated safety check: PassCustom licence
Generate Test Cases342164796/generate-test-cases1201 repos~2.9kAutomated safety check: PassNone
Wioworkersio/skills204—~5.8kAutomated safety check: PassMIT
Verify Cc Safety Netkenryu42/cc-safety-net1.6k—~2kAutomated safety check: PassMIT

Similar skills

  • Emc

    aklofas/kicad-happy

    EMC pre-compliance risk analysis for KiCad PCB designs — 18 check categories, 44 rule IDs covering ground planes, decoupling, I/O filtering, switching harmonics, clock routing, differential pair…

    1.4k GitHub starsUsed in 1 repo~2.8k tokens
    Testing & QAAuto-check passed
  • Swig Test

    swig/swig

    Run SWIG test suite for specific languages. An agent skill from swig/swig.

    6.3k GitHub stars~2.3k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Generate Test Cases

    342164796/generate-test-cases

    自主学习型测试文档生成器。从需求文档(Markdown)生成测试用例 XMind 文件,支持持久化记忆和持续学习。当用户提到"生成测试用例"、"根据需求生成测试"时触发。

    120 GitHub starsUsed in 1 repo~2.9k tokens
    Testing & QAAuto-check passed
  • Wio

    workersio/skills

    Testing workflow skill for finding high-value test candidates, writing focused tests, generating realistic workloads, reviewing test value, and diagnosing test-suite health.

    204 GitHub stars~5.8k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Verify Cc Safety Net

    kenryu42/cc-safety-net

    Launch and drive the real cc-safety-net CLI — the hook decision path, explain, status/doctor, logs, and the local policy GUI — against an isolated home, capturing evidence.

    1.6k GitHub stars~2k tokensUpdated today
    Testing & QAAuto-check passed
  • File Server

    microsoft/WindowsProtocolTestSuites

    Official

    ALWAYS LOAD THIS SKILL when working with FileServer, SMB, SMB2, SMB3, CIFS, file sharing, MS-SMB2, MS-FSCC, MS-FSA, MS-DFSC, MS-FSRVP, MS-RSVD, MS-SQOS, or any file server protocol test…

    567 GitHub stars~4.1k tokensUpdated 25 days ago
    Testing & QAAuto-check passed

More from matlab/agent-skills-playground

All 29 skills in this repo
  • Matlab Uihtml Design

    matlab/agent-skills-playground

    Generate beautiful, distinctive HTML/CSS/JS control panels for MATLAB uihtml components.

    184 GitHub stars~5k tokensUpdated yesterday
    Auto-check passed
  • Embedded AI Deployment

    matlab/agent-skills-playground

    Deploy AI models to embedded hardware using MathWorks tools (MATLAB, Simulink, Embedded Coder).

    184 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Matlab Coach Programming

    matlab/agent-skills-playground

    A skill your agent uses when an AI tutor session concerns MATLAB programming concepts, MATLAB syntax, MATLAB errors, MATLAB code style, MATLAB projects, or MATLAB toolbox workflows.

    184 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Matlab Create AI Policy

    matlab/agent-skills-playground

    A skill your agent uses when an instructor wants to create, interview for, configure, install, update, or review a course AI-use policy for MATLAB AI tutoring.

    184 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Matlab Create Course Activity

    matlab/agent-skills-playground

    Create MATLAB Course Designer MATLAB Exercise learning activities by wrapping the existing matlab-generate-grader-assessments skill, then validating generated solution.m, template.m, and tests.m…

    184 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Matlab Create Mcq Practice

    matlab/agent-skills-playground

    A skill your agent uses when creating, asking, grading, or explaining multiple choice questions for MATLAB programming practice, concept checks, quizzes, or tutoring exercises.

    184 GitHub stars~869 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Simulink Test Sequence From Ears

What does Simulink Test Sequence From Ears do?

Generate Simulink Test Sequence blocks and harnesses from EARS requirements. Simulink Test Sequence From Ears is an agent skill from matlab/agent-skills-playground. Generate Simulink Test Sequence blocks and harnesses from EARS requirements.

When should I use Simulink Test Sequence From Ears?

Simulink Test Sequence From Ears fits situations like: asked to create a test case from a requirement; generate tests from a .slreqx file; verify a Simulink model with requirement-based tests.

How do I install Simulink Test Sequence From Ears in Claude Code?

Run `npx skills add matlab/agent-skills-playground --skill simulink-test-sequence-from-ears -a claude-code`. Or copy the skill folder (skills/simulink-test-sequence-from-ears in matlab/agent-skills-playground) into .claude/skills/simulink-test-sequence-from-ears in your project. Claude Code loads it when a task matches its description.

How do I install Simulink Test Sequence From Ears in Codex?

Run `npx skills add matlab/agent-skills-playground --skill simulink-test-sequence-from-ears -a codex`. Or copy the skill folder (skills/simulink-test-sequence-from-ears in matlab/agent-skills-playground) into .agents/skills/simulink-test-sequence-from-ears in your project. Codex loads it when a task matches its description.

Can I use Simulink Test Sequence From Ears 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/agent-skills-playground --skill simulink-test-sequence-from-ears -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/simulink-test-sequence-from-ears, .gemini/skills/simulink-test-sequence-from-ears, .github/skills/simulink-test-sequence-from-ears and .opencode/skills/simulink-test-sequence-from-ears in your project.

What does Simulink Test Sequence From Ears need to run?

SKILL.md names no scripts, command-line tools or credentials: Simulink Test Sequence From Ears is instructions for the agent only. Compatibility (from SKILL.md): Requires MATLAB, Simulink, Simulink Test, and Requirements Toolbox. Stateflow is needed for chart discovery and the ModeLogic demo. The supplied example targets R2026a or newer..

Does Simulink Test Sequence From Ears 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 Simulink Test Sequence From Ears 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Simulink Test Sequence From Ears use?

Simulink Test Sequence From Ears is published under the BSD-2-Clause licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Simulink Test Sequence From Ears use?

About 1.4k tokens (SKILL.md is roughly 5.7k 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 3.9k tokens, read only when the agent opens those files.

What are the alternatives to Simulink Test Sequence From Ears?

Skills that share tags, products or a category with Simulink Test Sequence From Ears: Emc (aklofas/kicad-happy, 1.4k stars), Swig Test (swig/swig, 6.3k stars), Generate Test Cases (342164796/generate-test-cases, 120 stars) and Wio (workersio/skills, 204 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Simulink Test Sequence From Ears?

matlab (a GitHub organization) maintains it in matlab/agent-skills-playground, which has 184 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 9, 2026.

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