/mxl-compile - Компилятор макета из DSL

SkillFiles & storage

Your AI can turn a JSON definition into a finished 1C table document (MXL), the format used for print form layouts. Add this skill when you need to create a print form layout without assembling the file by hand.

Available today. Use it from your connected AI after setup.

After adding the skill, provide the JSON definition of the layout you need and ask your AI to compile it into an MXL table document.

Then ask your AI: use the /mxl-compile - Компилятор макета из DSL skill

What your AI can do with it

  • Compile an MXL table document from a JSON definition
  • Create print form layouts for 1C
  • Regenerate a layout after changing its JSON definition

What this skill tells your AI

The instructions your AI receives, as published by desko77/claude-code-skills-1c in skills/1c-mxl-compile/SKILL.md and read by ahel’s review.

Принимает компактное JSON-определение макета и генерирует корректный Template.xml для табличного документа 1С. Claude описывает что нужно (области, параметры, стили), скрипт обеспечивает корректность XML (палитры, индексы, объединения, namespace).

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

/mxl-compile <JsonPath> <OutputPath>

Параметры

ПараметрОбязательныйОписание
JsonPathдаПуть к JSON-определению макета
OutputPathдаПуть для генерации Template.xml

Команда

powershell.exe -NoProfile -File skills/1c-mxl-compile/scripts/mxl-compile.ps1 -JsonPath "<путь>.json" -OutputPath "<путь>/Template.xml"

Рабочий процесс

  1. Claude пишет JSON-определение (Write tool) → файл .json
  2. Claude вызывает /mxl-compile для генерации Template.xml
  3. Claude вызывает /mxl-validate для проверки корректности
  4. Claude вызывает /mxl-info для верификации структуры

Если макет создается по изображению (скриншот, скан печатной формы) - сначала вызвать /img-grid для наложения сетки, по ней определить границы колонок и пропорции, затем использовать "Nx" ширины + "page" для автоматического расчета размеров.

JSON-схема DSL

Полная спецификация формата: docs/mxl-dsl-spec.md (прочитать через Read tool перед написанием JSON).

Краткая структура:

{ columns, page, defaultWidth, columnWidths,
  fonts: { name: { face, size, bold, italic, underline, strikeout } },
  styles: { name: { font, align, valign, border, borderWidth, wrap, format } },
  areas: [{ name, rows: [{ height, rowStyle, cells: [
    { col, span, rowspan, style, param, detail, text, template }
  ]}]}]
}

Ключевые правила:

  • page - формат страницы ("A4-landscape", "A4-portrait" или число). Автоматически вычисляет defaultWidth из суммы пропорций "Nx"
  • col - 1-based позиция колонки
  • rowStyle - автозаполнение пустот стилем (рамки по всей ширине)
  • Тип заполнения определяется автоматически: param → Parameter, text → Text, template → Template
  • rowspan - объединение строк вниз (rowStyle учитывает занятые ячейки)

Signals

GitHub stars
61
Forks
14
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
x-1c-mxl-compile
Source
github.com/desko77/claude-code-skills-1c