mxl-decompile

Decompile 1C MXL templates into a compact JSON DSL.

413|90|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/comol/cursor_rules_1c --skill mxl-decompile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mxl-decompile
Source: https://github.com/comol/cursor_rules_1c/tree/main/.cursor/source/mxl-decompile
Command: npx skills add https://github.com/comol/cursor_rules_1c --skill mxl-decompile

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Decompiles 1C MXL layout templates into a concise JSON DSL for inspection, modification, and reuse.

Core Features & Use Cases

  • Decompilation to DSL: Convert Template.xml into a structured JSON DSL that captures fonts, merges, formats, and cell data.
  • Workflow compatibility: Output can be fed into /mxl-compile and /mxl-validate steps for end-to-end editing and regeneration.
  • Use Case: Inspect and refactor existing MXL layouts in JSON before rebuilding the Template.xml to ensure correctness and maintainability.

Quick Start

Execute the mxl-decompile command on a Template.xml to emit the JSON DSL to stdout or a specified output file.

Frequently Asked Questions about mxl-decompile

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

FAQPage Schema
How do I convert 1C MXL layout templates to JSON for inspection?

To convert 1C MXL layout templates to JSON, you can decompile Template.xml files into a structured JSON DSL that captures fonts, merges, formats, and cell data for analysis and modification.

What is the best way to extract cell data and formats from a 1C Template.xml file?

The best way to extract cell data and formats from a 1C Template.xml file is to decompile the MXL layout into a concise JSON DSL that accurately translates all structural and formatting details.

Can I modify MXL layout definitions in JSON and rebuild the Template.xml?

Yes, you can modify the decompiled JSON DSL output and feed it into compile and validate steps to regenerate the Template.xml, ensuring correctness and maintainability of the MXL layout.

Does the decompiled JSON DSL support all 1C MXL specification features like merges and fonts?

The decompiled JSON DSL supports the 1C MXL specification by translating fonts, merges, formats, and cell data from the original Template.xml into a structured and compact representation.

Why decompile 1C MXL templates into a JSON DSL instead of editing the XML directly?

Decompiling 1C MXL templates into a JSON DSL provides a compact, structured format that is easier to inspect and refactor before rebuilding the Template.xml, ensuring correctness and maintainability.