ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Use this skill when the user wants to curate the SATK library knowledge index for a Simulink project — correct auto-assigned block categories, or improve block descriptions so the model-building agent picks better blocks from custom libraries. Triggered by phrases like "improve block descriptions", "correct block category", "make the agent prefer certain blocks", and from Gate 3 of building-simulink-models.
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.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days