/mxl-decompile - Декомпилятор макета в DSL

SkillFiles & storage

This skill converts 1C spreadsheet documents (MXL files) into JSON definitions. Once added, your AI can take an existing layout and produce an editable description of it in JSON form, so the layout's structure can be read and changed as plain text instead of only inside the original editor.

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

Add the skill, then point your AI at an MXL file and ask it to decompile the layout into a JSON definition.

Then ask your AI: use the /mxl-decompile - Декомпилятор макета в DSL skill

What your AI can do with it

  • Decompile MXL table documents into JSON definitions
  • Get an editable description of an existing layout
  • Read the structure of a 1C spreadsheet template as JSON
  • Turn a layout you only have in MXL form into text you can edit

What this skill tells your AI

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

Принимает Template.xml табличного документа 1С и генерирует компактное JSON-определение (DSL). Обратная операция к /mxl-compile.

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

/mxl-decompile <TemplatePath> [OutputPath]

Параметры

ПараметрОбязательныйОписание
TemplatePathдаПуть к Template.xml
OutputPathнетПуть для JSON (если не указан - stdout)

Команда

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

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

Декомпиляция существующего макета для анализа или доработки:

  1. Claude вызывает /mxl-decompile для получения JSON из Template.xml
  2. Claude анализирует или модифицирует JSON (добавляет области, меняет стили)
  3. Claude вызывает /mxl-compile для генерации нового Template.xml
  4. Claude вызывает /mxl-validate для проверки

JSON-схема DSL

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

Генерация имен

Скрипт автоматически генерирует осмысленные имена:

  • Шрифты: default, bold, header, small, italic - или описательные имена по свойствам
  • Стили: bordered, bordered-center, bold-right, border-top и т.д. - по комбинации свойств

Детектирование rowStyle

Если в строке есть пустые ячейки (без параметров/текста) и все они имеют одинаковый формат - этот формат распознается как rowStyle, а пустые ячейки исключаются из вывода.

Signals

GitHub stars
57
Forks
13
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
x-1c-mxl-decompile-desko77
Source
github.com/desko77/cursor-1c-skills