1c-mxl-compile

Generate a valid 1C MXL Template.xml from a JSON DSL definition.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automates the generation of a valid 1C MXL Template.xml from a JSON-based DSL definition, enabling consistent spreadsheet layout creation.

Core Features & Use Cases

  • Defines columns, areas, fonts, styles, and merges via a JSON DSL, then outputs a correct Template.xml for 1C spreadsheets.
  • Validates structure and supports optional page formats and column widths to produce ready-to-run templates for MCP-based workflows.
  • Use Case: When you need to generate multiple print layouts from a shared DSL spec, this skill produces the XML templates consistently and reproducibly.

Quick Start

Run the provided PowerShell script to generate Template.xml from a JSON layout definition.

Frequently Asked Questions about 1c-mxl-compile

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

FAQPage Schema
How do I generate a 1C MXL Template.xml from a JSON definition?

To generate a 1C MXL Template.xml from a JSON definition, use a PowerShell script that transforms your DSL-based JSON layout into a valid XML file. This process builds the spreadsheet template by mapping your JSON columns, styles, and merges into the required MXL format.

What is a DSL-based JSON definition for 1C spreadsheet templates?

A DSL-based JSON definition for 1C spreadsheet templates is a structured JSON format specifying columns, fonts, styles, areas, and merges. It acts as a domain-specific language input to consistently generate valid MXL Template.xml files without manual XML editing.

Can I define column widths and page formats in 1C MXL templates via JSON?

Yes, you can define optional page formats and column widths in 1C MXL templates via JSON. The compilation process validates your JSON DSL structure and applies these formatting parameters directly to the generated Template.xml output.

Does the 1C MXL template compiler validate spreadsheet layouts before generating XML?

Yes, the 1C MXL template compiler validates the spreadsheet layout structure during generation. It checks your DSL-based JSON definition for correctness before producing the final Template.xml, ensuring the output is ready for MCP-based workflows.

What is the best way to automate generating multiple 1C print layouts from a shared spec?

The best way to automate generating multiple 1C print layouts from a shared spec is using a JSON DSL definition. By running the compilation script against a shared JSON layout file, you can consistently and reproducibly output multiple Template.xml files.