SuperAPI AI Directory

mxl-expert

General & other

View repository

Updated 10-15 17:18

About this skill

/mxl-expert — MXL layouts and 1C templates

A single skill for all operations with MXL layouts and templates. Choose the required mode:

Mode What it does
compile Create MXL from a JSON DSL definition
decompile Get JSON DSL from an existing MXL
template-add Add a layout to an object (data processor, catalog, document)
template-remove Remove a layout from an object

Mode: compile — creating MXL from JSON

Accepts a compact JSON layout definition and generates a valid Template.xml for a 1C spreadsheet document.

Usage

/mxl-expert compile <JsonPath> <OutputPath>
Parameter Required Description
JsonPath yes Path to the JSON layout definition
OutputPath yes Path for generating Template.xml

Command

powershell.exe -NoProfile -File .claude/skills/mxl-expert/scripts/mxl-compile.ps1 -JsonPath "<JsonPath>" -OutputPath "<OutputPath>"

Claude describes what is needed (areas, parameters, styles), the script ensures correctness of the XML (palettes, indices, merges, namespace).


Mode: decompile — getting JSON from MXL

Accepts Template.xml and generates a compact JSON DSL definition. The reverse operation of compile.

Usage

/mxl-expert decompile <TemplatePath> [OutputPath]
Parameter Required Description
TemplatePath yes Path to Template.xml
OutputPath no Path for JSON (if not specified — stdout)

Command

powershell.exe -NoProfile -File .claude/skills/mxl-expert/scripts/mxl-decompile.ps1 -TemplatePath "<TemplatePath>" [-OutputPath "<OutputPath>"]

Mode: template-add — adding a layout to an object

Creates a layout of the specified type and registers it in the object's root XML.

Usage

/mxl-expert template-add <ObjectName> <TemplateName> <TemplateType> [Synonym] [SrcDir]
Parameter Required Default Description
ObjectName yes — Object name
TemplateName yes — Layout name
TemplateType yes — Type: HTML, Text, SpreadsheetDocument, BinaryData, DataCompositionSchema
Synonym no = TemplateName Layout synonym
SrcDir no src Source directory
--SetMainSKD no — Set MainDataCompositionSchema

Command

powershell.exe -NoProfile -File .claude/skills/mxl-expert/scripts/add-template.ps1 -ObjectName "<ObjectName>" -TemplateName "<TemplateName>" -TemplateType "<TemplateType>" [-Synonym "<Synonym>"] [-SrcDir "<SrcDir>"] [-SetMainSKD]

Type mapping

User writes TemplateType Extension Content
HTML HTMLDocument .html Empty HTML
Text, text TextDocument .txt Empty file
SpreadsheetDocument, MXL, spreadsheet document SpreadsheetDocument .xml Minimal spreadsheet
BinaryData, binary data BinaryData .bin Empty file
DataCompositionSchema, DCS DataCompositionSchema .xml Empty DCS

Mode: template-remove — deleting a template

Deletes the template and removes its registration from the root XML object.

Usage

/mxl-expert template-remove <ObjectName> <TemplateName> [SrcDir]
Parameter Required Default Description
ObjectName yes — Object name
TemplateName yes — Name of the template to delete
SrcDir no src Source directory

Command

powershell.exe -NoProfile -File .claude/skills/mxl-expert/scripts/remove-template.ps1 -ObjectName "<ObjectName>" -TemplateName "<TemplateName>" [-SrcDir "<SrcDir>"]

The operation is irreversible. Script:

  1. Deletes the template XML file and the directory with its contents
  2. Removes <Template> from ChildObjects of the root XML object