create-widget

Generate Directum RX cover widgets with MTD entries, handlers, and resx keys.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill create-widget-dunaevdmitriys-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-widget
Source: https://github.com/dunaevdmitriys-dev/directum-mcp-server/tree/main/skills/create-widget
Command: npx skills add https://github.com/dunaevdmitriys-dev/directum-mcp-server --skill create-widget-dunaevdmitriys-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Помогает быстро и безопасно создать Widget для обложки модуля Directum RX: от описания в Module.mtd и генерации GUID до написания серверного обработчика и синхронизации resx ключей.

Core Features & Use Cases

  • Production-ready Widget blueprint: шаги по размещению Widget именно в секции Widgets в Module.mtd и привязке к корректным HandledEvents.
  • Server handler implementation guidance: заготовки по созданию частичного handler-класса (partial) и правильных методов Filtering/GetValue для action- и chart-виджетов.
  • Validation and consistency workflow: чек-лист после добавления артефактов с прогоном MCP инструментов для валидации пакета, согласованности MTD/C# и синхронизации ключей resx.

Quick Start

Скажите: "Создай обложечный Widget для модуля Directum RX: WidgetName ActiveLeadsCounter, DisplayName Активные обращения, WidgetType chart, DataSource KPI/серверная функция, параметры Period=текущий месяц и ShowPrevPeriod=true, затем выполни check_package, check_code_consistency и sync_resx_keys."

Frequently Asked Questions about create-widget

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a cover widget for a Directum RX module?

To create a Directum RX cover widget, you need to generate MTD entries in Module.mtd, implement server widget handlers, and synchronize localized resource keys. The process covers both action widgets using Filtering and chart widgets using GetValue.

What is the difference between action and chart widgets in Directum RX?

Action widgets in Directum RX use the Filtering method for server handlers, while chart widgets use the GetValue method. Both require correct WidgetItems $type assignment and placement in the Widgets section of Module.mtd.

How do I add a widget to the Module.mtd file in Directum RX?

Adding a widget to Module.mtd involves placing the entry in the Widgets section, binding it to correct HandledEvents, and generating a unique GUID. The configuration must specify the WidgetItems $type and link to server handlers.

How do I validate Directum RX package consistency and resx keys after adding a widget?

You validate a Directum RX package by running MCP tools to check the package, verify MTD and C# code consistency, and synchronize resx keys. This checklist ensures production alignment after adding widget artifacts.

Do I need platform reference examples to build a Directum RX widget?

Yes, platform reference examples are required to ensure production alignment when building Directum RX widgets. They guide the correct implementation of server handler partial classes and localized resource key synchronization.

Why are my Directum RX server widget handlers not triggering on the module cover?

Server widget handlers fail to trigger when WidgetItems $type is incorrect or HandledEvents are not properly bound in the Module.mtd Widgets section. Running MCP-based validation and consistency checks helps identify these MTD and C# mismatches.