Skip to content

matlab/agent-skills-playground / demos/course-generation/skills/simulink-create-course-activity

simulink-create-course-activity

Verified

Create MATLAB Course Designer Simulink Exercise learning activities with starter and solution Simulink model files. Use when the user asks to create a Simulink activity, Simulink Exercise, starter model, solution model, model-based learning activity, or Course Designer-ready Simulink artifact. Uses MATLAB MCP Server tool calls and Simulink Agentic Toolkit guidance to create, inspect, edit, simulate, and validate model files.

references/validation-rules.md

View on GitHub
# Validation Rules

Use these rules before declaring a Simulink Exercise ready.

## Required Checks

- Product check: MATLAB, Simulink, and required toolboxes are available or the
  missing products are reported.
- File check: starter and solution `.slx` files exist in the activity folder.
- Open check: both models open or inspect successfully through MCP calls.
- Topology check: `model_read` or `model_overview` confirms the expected model
  structure.
- Starter gap check: starter model contains the intended learner task and is not
  accidentally identical to the solution.
- Dependency check: init scripts, data files, and workspace variables are
  included or documented.
- Simulation check: solution model simulates successfully when simulation is part
  of the activity.

## Behavioral Validation

When expected behavior can be tested automatically:

1. Write a Gherkin validation spec in the activity folder.
2. Run `model_test` against the solution model if the testing workflow is
   available.
3. Record pass/fail status and any traces in `validation-report.md`.

`model_test` requires the component under test to expose at least one Inport.
Self-contained models whose stimulus is an internal source block cannot use it;
for those, write a `matlab.unittest` file that simulates the model and checks
the outputs, run it through `run_matlab_test_file`, and record the substitution
in `validation-report.md`. An automated substitute that passes still counts as
automated validation. Delete any Gherkin spec that cannot run rather than
shipping a test-shaped artifact that does nothing.

If no automated testing is practical, write explicit manual validation criteria
in `instructor-notes.md` and mark the validation status as `partial`.

## Validation Report

`validation-report.md` must include:

- Date generated
- Model file names
- MCP checks performed
- Simulation or behavioral test result
- Starter/solution difference summary
- Required products
- Deferred checks
- Final status: passed, partial, or failed

Never mark validation as passed when model creation, open, topology, or required
dependency checks failed.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall