Curates the SATK library knowledge index for Simulink projects by correcting block categories and improving descriptions so the model-building agent selects better blocks from custom libraries.
Ships in model-based-design-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Curate .satk/library-kg/ for better agent block selection. Infer categories and descriptions from block metadata in .satk/library-cache/*.json, then apply the curation through satk.Configuration, which saves .satk/library-curation.json and regenerates the KG.
building-simulink-models Gate 3.building-simulink-modelsbuilding-simulink-modelssatk-libraries.json or .satk/reuse-libraries.json must exist with libraries declaredmetadataQuality: "low" and "medium" blocks across ALL declared libraries. These blocks have no useful information. Write a short intent-focused description for every such block to help with agent block selection. Do not skip blocks because a file is large or because they seem unrelated to the current task."high" quality blocks are encouraged but optional.Determine mode before starting. Do not proceed without mode selection.
If .satk/library-kg/index.md already exists, start at step 1 (review existing state). If not, start at step 2.
.satk/library-kg/custom/<lib>/index.md and satk.Configuration.listPages(Location=projectRoot), summarize current state to user (libraries, block count, categories)..satk/library-cache/*.json files in full. If a file exceeds read limits, read it in chunks until every block has been processed. Apply Curation Rules above — write custom descriptions for blocks, prioritizing low/medium quality. Do NOT proceed to Step 4 until descriptions exist for every low/medium quality block across ALL cache files. Save to descriptions.categories.satk.Configuration.applyCuration(manifest, Location=projectRoot) (regenerates the KG), fix any results rows with action == "error", then run satk.Configuration.lint(Location=projectRoot) and fix until it reports 0 errors. Present the output summary to the user.libConfig = library.LibraryConfig.load(projectRoot);
library.LibraryCatalog.getOrCreate(libConfig, projectRoot);
Read .satk/library-cache/*.json directly. Each file:
{
"libraryName": "MotorLib",
"description": "Motor control library",
"blocks": [
{
"name": "SpeedController",
"maskType": "SpeedCtrl",
"blockType": "SubSystem",
"maskDescription": "Closed-loop speed regulation with anti-windup",
"description": "",
"pathCategory": "Controllers",
"metadataQuality": "high",
"referenceBlock": "MotorLib/Controllers/SpeedController"
}
]
}
projectRoot = prefdir();
manifest.descriptions = [ ...
struct('block', 'Unit Delay', 'description', 'Delay signal by one sample period'), ...
struct('block', '1-D Lookup Table', 'description', 'Interpolate output from breakpoint-value pairs')];
manifest.categories = struct('blocks', {{'DC Current Controller'}}, 'category', 'motor-control', ...
'description', 'Electric motor control loops');
results = satk.Configuration.applyCuration(manifest, Location=projectRoot); % table: block, action, message; fix action == "error" rows
rep = satk.Configuration.lint(Location=projectRoot); % 0 errors when done
Single edits: satk.Configuration.setBlockDescription(block, description, Location=projectRoot) and satk.Configuration.setBlockCategory(blocks, category, Location=projectRoot).
applyCuration also accepts the manifest as a JSON file or JSON text:
{
"descriptions": [
{"block": "Unit Delay", "description": "Delay signal by one sample period"},
{"block": "1-D Lookup Table", "description": "Interpolate output from breakpoint-value pairs"}
],
"categories": [
{"blocks": ["DC Current Controller"], "category": "motor-control", "description": "Electric motor control loops"}
]
}
guides/, types, tags) with the user.id plus page options per entry) and call satk.Configuration.addPages(manifest, Location=projectRoot).satk.Configuration.lint(Location=projectRoot) and fix until it reports 0 errors.| Field | Type | Effect |
|---|---|---|
categories | array of {blocks, category, description?} | Moves blocks to a category (created if new) |
descriptions | array of {block, description} | Per-block custom description (intent) |
Always:
.satk/library-cache/*.json.satk.Configuration.applyCuration(), setBlockDescription() or setBlockCategory(); they regenerate the KG.library.kg.Query.search() for KG lookups.Ask first:
satk.Configuration.applyCuration().Never:
find_system or get_param on library .slx files..satk/library-cache/*.json directly — it is auto-generated. Edit .satk/library-kg/*.md through page CRUD (satk.Configuration.addPage, updatePage, removePage, renamePage).satk.Configuration methods above.Copyright 2026 The MathWorks, Inc.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
simulink, library-curation, block-categories, knowledge-graph
/model-based-design-core:simulink-curating-library-kgfrom model-based-design-core
npx claudepluginhub matlab/simulink-agentic-toolkit --plugin model-based-design-core12 skills in this plugin
/arranging-simulink-layoutsArranges Simulink block diagram layout to improve readability using the model_edit layout engine. Use when the user asks to fix, clean up, tidy, straighten, or rearrange a layout, or to run Simulink's Auto Arrange, when blocks overlap or lines cross, when specific blocks need repositioning, or when grouping blocks into or expanding a subsystem./building-simulink-modelsBuilds and edits Simulink, System Composer, Stateflow, and Simscape models. Use when modifying model structure, parameters, ports, connections, or Stateflow chart internals./filing-bug-reportsGenerate a standalone bug report that another developer can use to reproduce, investigate, and fix an issue. Use when the user says 'file a bug', 'write a bug report', 'report this issue', or asks to document a defect for handoff./generate-requirement-draftsGenerates draft requirements from Simulink models. Use when drafting or updating requirement artifacts from a model. Prefers Requirements Toolbox (.slreqx) when available; falls back to structured YAML./managing-simulink-projectsManages MATLAB projects for Simulink workflows: path management, file registration, labels, source control configuration, and project lifecycle. Use when creating projects, adding models/dictionaries/requirements to projects, configuring labels for automation, fixing broken model references, or setting up source control for Simulink artifacts./setup-custom-librariesRegister, add, or update existing custom Simulink block libraries and configure block policy and knowledge index. Use when a user wants to register, set up, configure, or add existing .slx library files for agent-assisted model building. Do NOT use when the user wants to create or author a new library from scratch — that requires building-simulink-models.Other plugins' skills for the same job