- name
SKILL.md
स्किल फ़ाइल पब्लिशर की रिपॉज़िटरी में ही रहती है।
कॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add matlab/simulink-agentic-toolkit --skill setup-custom-libraries -a cursor -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add matlab/simulink-agentic-toolkit --skill setup-custom-libraries -a claude-code -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add matlab/simulink-agentic-toolkit --skill setup-custom-libraries -a codex -yकॉपी की गई कमांड टर्मिनल में पेस्ट करें। यह इस SKILL.md को उस एजेंट में इंस्टॉल करती है।
npx skills add matlab/simulink-agentic-toolkit --skill setup-custom-libraries -a grok -yकॉपी किया गया संदेश Grok Bot चैट में भेजें। Bot यह SKILL.md GitHub से लाता है और उसे उन स्किल में जोड़ देता है जो आपके सभी Bot साझा करते हैं।
Install this skill: https://github.com/matlab/simulink-agentic-toolkit/tree/HEAD/skills-catalog/model-based-design-core/setup-custom-librariesपब्लिशर से
Register or update custom Simulink block libraries so the agent prefers them over built-in blocks during model building.
.slx files to an existing library configurationbuilding-simulink-models routes here via the policy gate (gatePass: false)found: false — that means no custom libraries are configured and the user hasn't asked for them.slx library file) → use building-simulink-models skill with model_edit directly. This skill only registers existing libraries; it cannot create library content.configuring-block-policysimulink-curating-library-kgDo this FIRST and ALONE — no other tool calls in the same message.
Call library.settingsLookup() — returns a struct with resolved absolute paths:
found — whether a libraries file was located (satk-libraries.json or legacy reuse-libraries.json)enabled — whether custom libraries are configuredgatePass — whether the gate is satisfieddataRoot — absolute path to the directory containing .satk/kgIndexPath, librariesPath, policyPath — absolute paths to data filesInterpret the result:
found: false → no custom libraries configured. Do NOT proceed with setup unless the user explicitly asked. Return control to the calling skill.gatePass: true, found: true → all data files present and KB populated. Offer management menu (below).gatePass: false, found: true → libraries declared but KB needs population. Skip Gate 1 (libraries already exist). Start from Gate 2 below using dataRoot as the target.Follow references/library-setup.md for all gate API details — it is the single source of truth for API calls, examples, and options at each gate.
Gate 1 — Library declaration: Only when the user explicitly asked to set up custom libraries and no libraries file exists yet. STOP and ask the user about reusable libraries. Present two options: Yes (declare libraries) or None (no libraries right now). Do not read reference files, open models, or plan blocks until they respond.
prefdir via library.LibraryConfig.save(prefdir(), libraries).Gate 2 — Block policy: If .satk/block-policy.json is missing, STOP and ask the user about policy setup by following references/library-setup.md. Do not proceed until policy is resolved.
Gate 3 — Library blocks knowledge index: If the KB is empty (index.md contains populated: false) or missing, STOP and ask the user whether to index their library blocks so the agent knows which blocks are available during model building. Offer two options: Automatic (agent infers categories/descriptions autonomously) or Guided setup (interactive curation). Both invoke the simulink-curating-library-kg skill. Follow references/library-setup.md for details. Do not proceed until KG generation completes.
Retrieve and display the user's current configuration status using the APIs in references/library-setup.md § "Status Display (Management Menu)". Show library names/paths, policy mode with fallback, and KG block/category counts. Then offer:
library.LibraryConfig.load(dataRoot), append/remove entries, save via library.LibraryConfig.save(dataRoot, allLibs), then invoke simulink-curating-library-kg skill (automatic mode) to regenerate KG.configuring-block-policy skill.project or legacy. Copy .satk/ folder to prefdir/.satk/ (expand relative paths to absolute). See references/library-setup.md § "Gate 1" for the promote API.simulink-curating-library-kg skill.When satk-libraries.json already exists with declared libraries: read the existing config, append the new library entries, save via library.LibraryConfig.save(), then invoke the simulink-curating-library-kg skill (automatic mode) to infer categories/descriptions for the new blocks and regenerate the knowledge index.
.satk/ JSON manually. Always follow the instructions and APIs in references/library-setup.md for each case.find_system, load_system to discover, validate, or enumerate library contents. All library operations must go through the specified APIs in references/library-setup.md.Copyright 2026 The MathWorks, Inc.
Register, 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 fil
---name: setup-custom-librariesdescription: Register, add, or update existing custom Simulink block libraries and configure block policy and knowledge…---# skills-catalog/model-based-design-core/setup-custom-libraries/SKILL.mdओवरव्यू
Register, 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.
FAQ
पब्लिशर से skills-catalog/model-based-design-core/setup-custom-libraries/SKILL.md डाउनलोड करें, या पाथ कॉपी करके रिपॉज़िटरी खोलें। PlugMCP स्किल को सूचीबद्ध करता है, फ़ाइल होस्ट नहीं करता।
पब्लिशर इसे https://github.com/matlab/simulink-agentic-toolkit पर रखता है।
Claude, Cursor, Codex और Grok Build वह SKILL.md पढ़ सकते हैं जिसे आप पब्लिशर की रिपॉज़िटरी से जोड़ते हैं। जब आप चैट में स्किल के GitHub फ़ोल्डर का लिंक भेजते हैं, तो Grok Bot उसे इंस्टॉल कर देता है।