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

SkillFiles & storage

Your AI can turn an existing MXL spreadsheet document into a JSON definition of that layout. Once this skill is added, give it an MXL file and it will produce an editable description you can read and work with. It is useful when you need to understand or adjust the structure of a layout that already exists.

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

After adding it, share the MXL document you want to convert and ask your AI to decompile its layout into a JSON definition.

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

What your AI can do with it

  • Decompile a 1C table document (MXL)
  • Convert an existing layout into a JSON definition
  • Get an editable description of a layout you already have
  • Read the structure of an existing MXL document in JSON form

What this skill tells your AI

The instructions your AI receives, as published by desko77/claude-code-skills-1c 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 (прочитать через Read tool).

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

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

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

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

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

Signals

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