Логотип Specifying Mbd Algorithms

Specifying Mbd Algorithms

ОрганизацияПопулярное
matlab
specifying-mbd-algorithms

Specify algorithms for Model-Based Design: system specs, architecture specs, implementation plans, test plans. Use when creating specifications for controllers, signal processing, diagnostics, estimators, or other algorithms authored in Simulink, Stateflow, System Composer, or MATLAB Function blocks.

Обзор

Издательmatlab
Репозиторийsimulink-agentic-toolkit
Название навыкаspecifying-mbd-algorithms
Звёзды
1.2K
Форки
112
Встроенные файлы
9
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 9

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Опубликовано на GitHub: matlab. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Specifying Mbd Algorithms в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/specifying-mbd-algorithms
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matlab/simulink-agentic-toolkit.git /tmp/simulink-agentic-toolkit
mkdir -p .claude/skills
cp -r /tmp/simulink-agentic-toolkit/skills-catalog/model-based-design-core/specifying-mbd-algorithms .claude/skills/specifying-mbd-algorithms
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Specifying Mbd Algorithms в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Specifying Mbd Algorithms, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Specifying Mbd Algorithms не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

MBD Algorithm Specs

Structured specification of algorithms for Model-Based Design. Adapts the specifying-software templates for the MBD algorithm domain.

When to Use

  • Specifying a controller, estimator, signal processor, diagnostic, or supervisory logic algorithm
  • The algorithm will be authored in Simulink, Stateflow, System Composer, or as a MATLAB Function block
  • The algorithm is part of a model-based design workflow (simulation, code generation, or both)
  • Creating, updating, or reviewing algorithm specification documents

When NOT to Use

  • Building the algorithm model → use building-simulink-models
  • Testing an existing model → use testing-simulink-models
  • Plant/environment models → use specifying-plant-models
  • Traditional software (C, C++, Python, standalone MATLAB scripts) → use specifying-software
  • Full closed-loop system → use this skill for the algorithm side, specifying-plant-models for the plant side

Output Conventions

Store specs per algorithm. Prefix every filename with the algorithm name:

docs/specs/algorithms/<algorithm-name>/
├── <algorithm-name>-system.md
├── <algorithm-name>-architecture.md
├── <algorithm-name>-implementation-plan.md
└── <algorithm-name>-test-plan.md

Mode Selection

Is this a single-function algorithm with <3 operating modes, single-rate, and will be built by one person/agent?

  • Yes → Quick spec: 2 documents (system+architecture combined, implementation+test combined)
  • No → Full spec: 4 separate documents

Workflow

Step 1: Establish External Interface

Identify what this algorithm connects to. If an existing system exists, read it with model_overview and model_read. If greenfield, define the boundary from requirements.

Classify every signal crossing the algorithm boundary:

  • Inputs: measurements, commands, bus signals from other subsystems
  • Outputs: actuator commands, processed signals, status/diagnostic flags
  • Parameters: tunable (calibratable) vs. fixed (design-time)

Step 2: Define Algorithm Objectives

Establish what the algorithm must achieve — tracking performance, bandwidth, disturbance rejection, detection thresholds, processing latency, etc. These are the acceptance criteria that drive architecture decisions and test plan design.

Step 3: Domain Verification (if equations, standards, or domain conventions are referenced)

Use web_search to confirm key equations, standards, or conventions referenced in the spec. Record confirmed sources in Appendix B: Research Notes.

Skip when: algorithm is purely logic-based, domain is well-known, or no equations are involved.

Step 4: Write System Spec

Template: assets/system-spec-template.md

Review gate before proceeding — verify:

  • Clear algorithm objectives with quantitative acceptance criteria
  • Complete external interface contract (all inputs, outputs, parameters with units and sign conventions)
  • Operating mode completeness — are all modes defined, including startup, fault, and degraded?
  • Actuator/effector mapping correctness — which output drives which actuator, and is the sign correct?
  • Boundary behavior — what happens at saturation, zero-crossing, enable/disable thresholds?

Step 5: Write Architecture Spec

Template: assets/architecture-spec-template.md

Review gate before finalizing — verify:

  • Dimensional consistency — units match across all interfaces end-to-end
  • Feedback polarity — negative feedback for stabilizing loops, correct sign through the entire loop
  • Anti-windup and reset behavior specified for every integrator
  • Mode transition logic — bumpless transfer, initialization on mode entry, no unguarded transitions
  • Rate transitions — multi-rate interfaces handled correctly
  • Saturation and limiting at actuator outputs and per-channel levels
  • Algebraic loops — every feedback path has an explicit delay element with documented IC and DFT status annotated in the Component Catalog
  • Code generation constraints addressed (data types, scheduling, memory) if applicable

Required: API Verification for any API, function, or block behavior not already used in neighboring code. Test actual signatures and behavior using evaluate_matlab_code, web_search, or existing codebase usage. Record in Appendix B of the architecture spec.

Step 6: Write Implementation Plan + Test Plan

Templates: assets/implementation-plan-template.md, assets/test-plan-template.md

Review gate — Implementation Plan — verify:

  • Phase 0 interface freeze gates all parallel work
  • Build order respects data flow dependencies (leaf components first)
  • Tightly coupled components assigned to same agent or coordinated
  • Each checkpoint has concrete verification steps (model_read, model_query_params, test)
  • Parameter table complete with sources

Review gate — Test Plan — verify:

  • Staged validation: component MIL → integrated MIL → system-in-loop MIL → robustness → SIL/PIL (if code-generated)
  • Every operating mode tested, including startup and fault
  • Mode transition scenarios with bumpless transfer checks
  • Saturation and anti-windup recovery tests
  • Quantitative acceptance criteria with design basis for each test
  • Input signal definitions reusable across stages

Get user approval before implementation begins.

Updating Existing Specs

When updating specs: check affected sections, update them, update "Last Updated" date, review for consistency with other specs.

Guardrails

Always

  • Verify feedback polarity before finalizing any control loop architecture
  • Verify units and sign conventions end-to-end across all interfaces
  • Freeze interfaces (Phase 0) before parallel subsystem work begins

Ask First

  • Adding operating modes not in the system spec
  • Changing interface signals after Phase 0 freeze
  • Deviating from the plant's or system's sample time alignment

Never

  • Implement control without specifying anti-windup / saturation behavior for integrators
  • Hardcode tuning parameters that should be calibratable
  • Skip mode transition specification for multi-mode algorithms
  • Break an algebraic loop with a Memory block in a continuous-time path (use Unit Delay for discrete, Transfer Fcn with small time constant for continuous)

Spec Types

For guidance on when to create optional specs (detailed spec, component spec), see references/spec-types.md. Create a detailed spec when architecture is blocked by: control law definition, state machine definition, or interface contract.

References

  • assets/system-spec-template.md — System spec template (what & why)
  • assets/architecture-spec-template.md — Architecture template (functional decomposition)
  • assets/implementation-plan-template.md — Build sequence template
  • assets/test-plan-template.md — Validation plan template
  • references/algorithm-guidance.md — Optional domain research checklist
  • assets/detailed-spec-template.md — Control law, state machine, or interface contract (use when architecture is blocked)
  • assets/component-spec-template.md — Complex component internals (rarely needed)

Copyright 2026 The MathWorks, Inc.


Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Specifying Mbd Algorithms?

Specify algorithms for Model-Based Design: system specs, architecture specs, implementation plans, test plans. Use when creating specifications for controllers, signal processing, diagnostics, estimators, or other algorithms authored in Simulink, Stateflow, System Composer, or MATLAB Function blocks.

Зачем использовать Specifying Mbd Algorithms в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Specifying Mbd Algorithms — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Specifying Mbd Algorithms в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/matlab/simulink-agentic-toolkit/tree/main/skills-catalog/model-based-design-core/specifying-mbd-algorithms. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Specifying Mbd Algorithms?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Specifying Mbd Algorithms?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Specifying Mbd Algorithms: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Specifying Mbd Algorithms?

Навык опубликован на GitHub автором matlab. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇